香港新浪網 MySinaBlog
| 22/03/13, 23:16 | 電腦 | (99 Reads)

| 13/03/13, 16:55 | 電腦 | (100 Reads)
/etc/php5/fpm/php.ini

| 13/03/13, 15:12 | 電腦 | (116 Reads)

sudo apt-get install phpmyadmin

sudo cp -R /usr/share/phpmyadmin/ /var/www/html/.   # 複製phpmyadmin至所欲擺放的位置 

  location /phpmyadmin {
           root /usr/share/;
           index index.php index.html index.htm;
           location ~ ^/phpmyadmin/(.+\.php)$ {
                   try_files $uri =404;
                   root /usr/share/;
                   fastcgi_pass 127.0.0.1:9000;
                   fastcgi_index index.php;
                   fastcgi_param SCRIPT_FILENAME $document_root$fastcgi_script_name;
                   include /etc/nginx/fastcgi_params;
           }
           location ~* ^/phpmyadmin/(.+\.(jpg|jpeg|gif|css|png|js|ico|html|xml|txt))$ {
                   root /usr/share/;
           }
    }