Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
phpmyadmin and nginx
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Other Things Gentoo
View previous topic :: View next topic  
Author Message
Seron
Apprentice
Apprentice


Joined: 31 Dec 2002
Posts: 293
Location: Malmö, Sweden

PostPosted: Sun Apr 15, 2012 3:55 pm    Post subject: phpmyadmin and nginx Reply with quote

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
View user's profile Send private message
ultraincognito
Guru
Guru


Joined: 03 Jun 2011
Posts: 346
Location: Ukraine

PostPosted: Mon Apr 16, 2012 5:30 pm    Post subject: Reply with quote

Install the phpmyadmin outside the package manager.
Back to top
View user's profile Send private message
butchie55
n00b
n00b


Joined: 18 Nov 2014
Posts: 2
Location: France

PostPosted: Tue Nov 18, 2014 4:25 pm    Post subject: Reply with quote

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
View user's profile Send private message
Stolz
Moderator
Moderator


Joined: 19 Oct 2003
Posts: 3028
Location: Hong Kong

PostPosted: Wed Nov 26, 2014 10:18 am    Post subject: Reply with quote

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
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Other Things Gentoo All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum