Phpmyadmin install nginx configure cookie configuration here phpmyadmin uses apt-get to install the default installation path under usr?phpmyadmin? # Serverforphpmyadminserver {listen80; server_namewww.yo phpmyadmin install nginx to configure cookie
Phpmyadmin is installed with apt-get by default. the installation path is under/usr/share/phpmyadmin.
?
# server for phpmyadmin server{ listen 80; server_name www.yours.com; location /phpmyadmin { index index.html index.php;root /usr/share; } location ~ ^/phpmyadmin.+\.php$ { root /usr/share; fastcgi_pass 127.0.0.1:9000; fastcgi_index index.php; fastcgi_param SCRIPT_FILENAME $document_root$fastcgi_script_name; include /websites/nginx/conf/fastcgi_params;# fastcgi_param HTTPS on; } location /phpMyAdmin { rewrite ^/* /phpmyadmin last; }
Notes
To change the readable permission of files under/etc/phpmyadmin/
?
Change/etc/phpmyadmin/config. inc. php
If (! Empty ($ dbname) {/* Authentication type */$ cfg ['servers'] [$ I] ['auth _ type'] = 'cooker '; // If you cannot log on, add the following $ cfg ['blowfish _ secret'] = 'cooker '; // adding the following can save you a lot of trouble. // $ cfg ['servers'] [$ I] ['user'] = 'username '; // $ cfg ['servers'] [$ I] ['password'] = 'pwd '; // use here your password // $ cfg ['servers'] [$ I] ['auth _ type'] = 'config ';
? InConfig. inc. php, Try to leave the $ cfg ['pmaabsoluteuri '] directive empty.
?
Reference link:
Http://www.ruby-forum.com/topic/183232
Http://www.howtoforge.com/lemp_nginx_mysql_php_ubuntu_debian
?
?
Several other configuration files
Spawn-fcgi is generated during lighttpd compilation.
Wget http://www.lighttpd.net/download/lighttpd-1.4.18.tar.bz2tar-xvjf lighttpd-1.4.18.tar.bz2cd lighttpd-1.4.18./configuremakecp src/spawn-fcgi/usr/bin/spawn-fcgi note: lighttpd is not installed, just take out the spawn-fcgi inside. (Make without install)
?
?
?
Php-fastcgi
/websites/nginx/sbin/spawn-fcgi -a 127.0.0.1 -p 9000 -u www-data -f /websites/php/bin/php-cgi
?
?
?
?
Init-fastcgi
#!/bin/bashPHP_SCRIPT=/websites/nginx/sbin/php-fastcgiRETVAL=0case "$1" instart)$PHP_SCRIPTRETVAL=$?;;stop)killall -9 php-cgiRETVAL=$?;;restart)killall -9 php-cgi$PHP_SCRIPTRETVAL=$?;;*)echo "Usage: php-fastcgi {start|stop|restart}"exit 1;;esacexit $RETVAL
?
?
?