# pkgs in the -Testing repo are not gpg signed
[kbs-CentOS-Testing]
name=CentOS.Karan.Org-EL$releasever – Testing
gpgcheck=0
gpgkey=http://centos.karan.org/RPM-GPG-KEY-karan.org.txt
enabled=1
baseurl=http://centos.karan.org/el$releasever/extras/testing/$basearch/RPMS/
之后,我们可以安装nginx的如下:
yum install nginx
然后,我们创建系统启动nginx的链接并启动它:
chkconfig --levels 235 nginx on
/etc/init.d/nginx start
浏览器输入您的Web服务器IP地址或主机名(如类型),你应该看到一个空白页,说明网站已经工作 此空白主页地址(/usr/share/nginx/html/index.html,可以自己修改一下看看):
安装PHP5
yum install lighttpd-fastcgi php-cli php-mysql php-gd php-imap php-ldap php-odbc php-pear php-xml php-xmlrpc php-mbstring php-mcrypt php-mssql php-snmp php-soap php-tidy
打开/etc/php.ini配置cgi.fix_pathinfo = 1:
vi /etc/php.ini
cgi.fix_pathinfo = 1
lighttpd的FastCGI包附带的可执行文件/usr/bin/spawn-fcgi,可以看帮助:
spawn-fcgi --help