You are not logged in.

#1 2010-11-07 15:06:44

sjnims
Member
From: Atlanta, GA
Registered: 2010-11-07
Posts: 9
Website

LEMP + phpmyadmin how?

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

#2 2010-11-07 19:41:02

orlandu63
Member
Registered: 2010-03-29
Posts: 29

Re: LEMP + phpmyadmin how?

Are you sure that /usr/share/webaps/ is the proper directory?

Offline

#3 2010-11-08 03:26:05

sjnims
Member
From: Atlanta, GA
Registered: 2010-11-07
Posts: 9
Website

Re: LEMP + phpmyadmin how?

orlandu63 wrote:

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

#4 2010-11-08 04:41:51

sjnims
Member
From: Atlanta, GA
Registered: 2010-11-07
Posts: 9
Website

Re: LEMP + phpmyadmin how?

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

Board footer

Powered by FluxBB