I would like to know if there is a php application able to browse any database supported by PDO. Something like phpmysqladmin but for PDO.
I have tried google and I didnt found any, checked http://alternativeto.net/software/phpmyadmin/ too, and nothing found...
I just want to browse a firebird/odbc database using a webbrowser, and I though that a pdo browser would be the best option for that.
You can install an php administration tool like Firebird Web Admin
sudo apt-get install php5-interbase git-core
sudo /etc/init.d/apache2 restart
git clone git://github.com/mariuz/firebirdwebadmin.git
mv firebirdwebadmin /var/www/firebirdwebadmin
load in the browser
localhost/firebirdwebadmin
Related
I am currently updating our docker image in Azure.From this image appsvcorg/alpine-php-mysql:0.3 to this leonzhang77/alpine-php-mysql:0.31.
After pasting and save it on container,restart app, when I browse my site (linux.rapidvisa.com , Wordpress 4.9.7,PHP7) that error appeared.MySQL also cannot connect to var/run/mysqld/mysqld.sock.
I tried to fix it. I can see on my phpinfo.php that MySQL/MySQLi is not there or not running.
I am new in this Docker and Azure environment although I managed to enter into SSH and do some tweaking but no luck.
I tried to type sudo apt-get install blah..but command not found.Whenever I typed major commands always -ash: command not found. Can somebody advise me what to do?
i dont know what the exact problem is with your docker construct but your second one is the alpine distribution.
in alpine linux there is an other package manager system.
you have to use apk.
like: apk update or apk add htop
I host a Phabricator instance on a Ubuntu machine.
How do I uninstall Phabricator totally, including all config files and settings.
I already removed all three folders cloned from git, and uninstalled mysql-server using
sudo apt-get purge --auto-remove mysql-server.
However, when I run install_ubuntu.sh to install back again, the old admin account, the log for Daemons logs, and the site settings are still there in website.
How can I remove all configuration and data completely?
The problem most likely is that uninstalling the MySQL server does not delete databases. You have a couple of options.
Probably the best way to delete the data would be to run Phabricator's bin/storage destroy command. This is the best approach, because it does not make any assumptions about how Phabricator stores its data (MySQL, files etc.). Install Phabricator, MySQL and all other dependencies again, and look for bin/storage in Phabricator installation directory.
Another way would be to install mysql-server and mysql-client, launching the mysql command line client and dropping all databases starting with phabricator_.
If you really want to mess with database files directly, you can find them in /var/lib/mysql.
I am trying to install PHP5 using the instructions available here.
However, when I perform: nohup ${OPENSHIFT_REPO_DIR}/misc/make.sh &, I get a:
nohup: failed to run command .../make.sh: Permission denied message on top of nohup: ignoring input and appending output to nohup.out.
I have tried sudo, but I don't have access as sudo (of course).
Does anyone have clear, complete and operational instructions to install PHP5 on Openshift?
Seems that you are using Windows, or you just lost the permission information.
Choose one solution:
Try fetching files by git clone.
I just updated this repo. Try it out! It's easier now! (Follow the new README instructions)
Okay so I need to have a server with a databse for a smartphone applications I'm working on, and there are a few requirements.
-SQL database
-Returns queries with JSON
So i had this old Raspberry Pi laying around and i wanted to set it up for it. But theres something im uncertain of, and google haven't helped me yet.
I planned on use SQLite on the Pi, and wanted to interact with it in PHP. Then use the PHP to convert into JSON, which would then be retrieved by the smartphone.
The thing is i don't know what service i can use on the PI to make this .PHP file able to be found from another device
You can install nodejs by running:
sudo apt-get install nodejs nodejs-legacy npm
For SQL database you can run
sudo apt-get install mariadb-server mariadb-client
Install your nodejs mysql module by:
sudo npm install -g node-mysql
That should get you started.
me and my hair-brained ideas again...
i am building a mailserver install script and i have hit on something i want to ask before i do just to cover my bases. i know how to use php with the shell_exec command and proc_open commands to run shell commands like sudo and apt-get but what i do not know is how do i do an install that asks for user input? my example is part of the installation calls for mysql server and when you install it via the command line it asks for the password of the admin user for mysql to be set. i have my script get that info from the user in a form and can pass the data along to other pages but how do i do pass it to the shell?
What i know how to do:
$mySql_password = $_POST['mysql_password'];
$output = shell_exec("apt-get -y install <package-id>");
or even:
$mySql_password = $_POST['mysql_password'];
$output = shell_exec("apt-get --force-yes install <package-id>");
how would i go about passing the password to it after i have it set as a variable?
keep in mind that this script is going to be run from the desktop of the server(if they have a desktop) or via a web browser and the script will have a self destruct mode at the end to erase the install script to prevent someone from forgetting about it. ssl is also going to be recommended as pre-install checklist.
After looking around a bit (google "Unattended MySQL Install" or something among these lines), something that should help you is DEBIAN_FRONTEND=noninteractive.
Try this to install without password and set it afterwards :
<?php
shell_exec('echo '.$rootPassword.' | DEBIAN_FRONTEND=noninteractive sudo -S aptitude install -q -y mysql;
mysql -uroot -e "UPDATE mysql.user SET password=PASSWORD("'.$mysqlPassword.'") WHERE user='root'; FLUSH PRIVILEGES;');
?>
Alternatively, debconf-set-selections should allow you to set a default password so mysql is directly installed with it.