我们知道Debian 6已经正式发布,下面老李就讲一下如何在Debian 6安装Cherokee+PHP5+MySQL。Cherokee是web服务器,可以和Nginx相媲美。
首先安装MySQL5数据库
apt-get install mysql-server mysql-client
安装Cherokee
apt-get install cherokee
现在在浏览器输入你的服务器IP,应该可以看到如下界面:
![]() Debian 6安装Cherokee+PHP5+MySQL
Cherokee服务器提供了WEB界面进行控制台操作,怎么进行操作呢?
在SSH终端命令下输入:cherokee-admin -b
将会显示如下信息:
Login:
User: admin
One-time Password: 1Kkcc58atG8DNIM7
Web Interface:
URL: http://localhost:9090/
安装PHP5 apt-get install php5-cgi
然后必须修改php.ini文件cgi.fix_pathinfo=1
vi /etc/php5/cgi/php.ini
[...]
; cgi.fix_pathinfo provides *real* PATH_INFO/PATH_TRANSLATED support for CGI. PHP’s
; previous behaviour was to set PATH_TRANSLATED to SCRIPT_FILENAME, and to not grok
; what PATH_INFO is. For more information on PATH_INFO, see the cgi specs. Setting
; this to 1 will cause PHP CGI to fix its paths to conform to the spec. A setting
; of zero causes PHP to behave as before. Default is 1. You should fix your scripts
; to use SCRIPT_FILENAME rather than PATH_TRANSLATED.
; http://php.net/cgi.fix-pathinfo
cgi.fix_pathinfo=1
[...]
重启Cherokee即可:
/etc/init.d/cherokee restart
|