Phpmyadmin assembly nginx configuration cookie configuration

Source: Internet
Author: User
Phpmyadmin install nginx configure cookie configuration here phpmyadmin uses apt-get to install the default installation path under/usr/share/phpmyadmin? # Serverforphpmyadminse 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
?

?

?

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.