IndexCookbook

Cookbook: Setting up phpMyAdmin

Setting up phpMyAdmin to work with Cherokee is trivial, as Cherokee already provides everything that is needed to work.

According to phpMyAdmin's documentation, the software requirements are just:

This means that you don't need to modify Cherokee at all provided you have PHP with MySQL support and you are using a default Cherokee configuration.

Express setup

The only thing you need to do is make phpMyAdmin accessible by Cherokee and all the script files must have permissions suitable for the user running Cherokee.

Most platforms provide packages with all that you need. For Debian based Linux distributions, You can issue the following commands as root (or through sudo) and the whole installation will take a matter of seconds.

Example: Debian installation
# apt-get install php5-cgi php5-mysql mysql-server-5.0 phpmyadmin
# ln -s /usr/share/phpmyadmin/ /var/www/phpmyadmin

Since Cherokee doesn't appear in the list of web servers provided by the package installation script, select any of them to proceed with phpMyAdmin's configuration.

The commands above asume you are running Cherokee as root and that your web server's document root is /var/www.

If you were to run it as www-data, simply change the script's owner:

Example: Script owner
# chown -R www-data:www-data /usr/share/phpmyadmin

Now point your web browser to http://localhost/phpmyadmin, and use the MySQL user information to access the databases.

phpMyAdmin in action!

Generic setup

If your platform doesn't provide phpMyAdmin, download it from the main download site and follow the Quick Install notes in the phpMyAdmin documentation. As before, you simply need to make the program accessible to your web server, so either install directly under your document root or make a symbolic link.

Considerations

Protected directories