|
|
|
|
|
11 Oct 2014 04:36:05 pm |
CentOS, install nginx, php (php-fpm), mysql server, phpmyadm |
|
|
1. Yum install nginx,
-Stop httpd (appache server), service httpd stop
-yum remove httpd
-yum install nginx, to add nginx into yum, see this: http://wiki.nginx.org/Install
-When done, check file of /etc/nginx.conf and /etc/nginx/conf.d/default.conf
-得知 page 在/usr/share/nginx/html
more infomation about Virtual Domains, see https://www.linode.com/docs/websites/nginx/basic-nginx-configuration
2.Yum install php-fpm
此间一直实验不出php,报404出错,后来查到此贴才解决问题。
http://stackoverflow.com/questions/17808787/file-not-found-when-running-php-with-nginx
原来默认设置里的这句是错的fastcgi_param SCRIPT_FILENAME /scripts$fastcgi_script_name;
改为正确路径就对了。
3.Install mysql and phpmyadmin:
https://www.digitalocean.com/community/tutorials/how-to-install-and-secure-phpmyadmin-on-a-centos-6-4-vps
其中不要忘记设置mysql的root密码 |
|
| |
Category : Unix&Linux
| Posted By : Eric Shan | Comments [0] | Trackbacks [0] |
|
|
| The URI to TrackBack this entry is : http://blog.tntsoft.com/trackback.php/54 | |
|
|
|
|
|
|
|
|
|
| |