You are not logged in.
Can't seem to get this to work correctly...
I have a working LEMP server after following the beginner's guide and the NGINX setup (https://wiki.archlinux.org/index.php/Nginx) using php-fpm and I'm trying to create a vhost conf for phpmyadmin, which is installed, but the page doesn't load, and doesn't create an entry in either the acces or error log files. The conf is as follows:
server {
server_name phpmyadmin.streamlineyourself.com;
access_log /srv/www/streamlineyourself.com/logs/access.log;
error_log /srv/www/streamlineyourself.com/logs/error.log;
location / {
root /usr/share/webaps/phpmyadmin;
index index.html index.htm index.php;
}
location ~ \.php$ {
root /usr/share/webaps/phpmyadmin;
fastcgi_pass unix:/var/run/php-fpm/php-fpm.sock;
fastcgi_index index.php;
fastcgi_param SCRIPT_FILENAME /usr/share/webaps/phpmyadmin/$fastcgi_script_name;
fastcgi_param PHP_ADMIN_VALUE "open_basedir=//usr/share/webaps/phpmyadmin/:/etc/webaps/phpmyadmin/:/srv/www/streamlineyourself.com/logs/:/srv/www/streamlineyourself.com/tmp/\nupload_tmp_dir=/srv/www/streamlineyourself.com/tmp/";
fastcgi_param PHP_VALUE "allow_url_fopen=off";
include fastcgi_params;
}
}There are directions on how to set up with apache (https://wiki.archlinux.org/index.php/Phpmyadmin) but not for NGINX...any help will be much appreciated!
P.S. Standard troubleshooting has been done (reboot, restart nginx, php-fpm, mysqld, etc...)
Offline
Are you sure that /usr/share/webaps/ is the proper directory?
Offline
Are you sure that /usr/share/webaps/ is the proper directory?
According to the wiki article it is, I wouldn't know where else to look. I'm thinking I may have run in to an open_basedir error however, so I'll update you when I try changing that.
Offline
Looks like what I changed worked...also, I added a sym link from the vhost's root dir to the /usr/share/webapps/phpadmin dir.
Offline