How do I configure phpMyAdmin to work with Passenger, Rails and Apache2 on Ubuntu 14.04?
I followed the tutorials “How to Install Rails, Apache, and MySQL on Ubuntu with Passenger” and “How to Install and Secure phpMyAdmin on Ubuntu 14.04” but attempts to access phpMyAdmin via “www.mysitename.com/phpmyadmin” result in a Rails routing error (404 Not Found.)
I followed the procedure suggested at [http://kiran.gnufied.org/2010/12/23/rails-passenger-and-phpmyadmin-issue/](http://) to disable passenger while attempting to access phpMyAdmin by adding the following to my site’s apache2 config file (at /etc/sites-available/mysitename.conf):
<LocationMatch “^/phpmyadmin/.+”> PassengerEnabled off AllowOverride All </LocationMatch> Alias /phpmyadmin “/usr/share/phpmyadmin” <Directory “/usr/share/phpmyadmin”> PassengerEnabled off AllowOverride All </Directory>
but this results in a 403 Forbidden error.
Does anyone know if this is the proper procedure to enable phpMyAdmin to work on a Rails site and if so how to get around the 403 error?
These answers are provided by our Community. If you find them useful, show some love by clicking the heart. If you run into issues leave a comment, or add your own answer to help others.