View previous topic :: View next topic |
Author |
Message |
Seron Apprentice
Joined: 31 Dec 2002 Posts: 293 Location: Malmö, Sweden
|
Posted: Sun Apr 15, 2012 3:55 pm Post subject: phpmyadmin and nginx |
|
|
I tried to emerge phpmyadmin but got these error messages: Code: | * Running /usr/sbin/webapp-config -I -h localhost -u root -d /phpmyadmin phpmyadmin 3.4.9
* Fatal error: Your configuration file sets the server type "Apache"
* Fatal error: but the corresponding package does not seem to be installed!
* Fatal error: Please "emerge >=www-servers/apache-1.3" or correct your settings.
* Fatal error(s) - aborting
|
It seems webapp-config doesn't support nginx. There's no setting for nginx in /etc/vhosts/webapp-config. Can this be made to work somehow?
These packages were installed without any USE flags: Code: | webapp-config-1.50.16-r1
virtual/httpd-cgi-0
phpmyadmin-3.4.9 |
_________________ man cannot be brave without being afraid |
|
Back to top |
|
|
ultraincognito Guru
Joined: 03 Jun 2011 Posts: 346 Location: Ukraine
|
Posted: Mon Apr 16, 2012 5:30 pm Post subject: |
|
|
Install the phpmyadmin outside the package manager. |
|
Back to top |
|
|
butchie55 n00b
Joined: 18 Nov 2014 Posts: 2 Location: France
|
Posted: Tue Nov 18, 2014 4:25 pm Post subject: |
|
|
Or you can modify the file /etc/vhosts/webapp-config and replace vhost_server="apache" by vhost_server="nginx".
Then re-emerge phpmyadmin. |
|
Back to top |
|
|
Stolz Moderator
Joined: 19 Oct 2003 Posts: 3028 Location: Hong Kong
|
Posted: Wed Nov 26, 2014 10:18 am Post subject: |
|
|
butchie55 is right. Also, is a good practice to prevent access to the libraries dir of your PMA installation. Add this to your localhost vhost nginx config file
Code: | location ^~ /phpmyadmin/libraries/ {
deny all;
return 404;
} |
|
|
Back to top |
|
|
|