zentaoPHP框架是基于php5版本的oop特性开发的,不兼容php4版本。所以在您使用zentaoPHP框架之前,请确认您的环境满足下面的要求:
1. web server最好是
apache。因为它和php集成使用是稳定,功能也是齐全的一套组合。
2. PHP低版本是5.2版本。
3. 数据库目前只支持MySQL,版本4.x以上。
现在amp组合的安装比以前已经简单多了。windows下面的用户可以考虑使用 xammp。linux下面的用户直接使用包管理进行安装就好了。比如debian下面的apt,红帽下面的rpm, yum。FreeBSD的用户可以直接使用ports安装,也是非常方便的。
server {
listen 80;
rewrite_log on;
server_name www.lchandao.com;
location / {
root /home/devops/workspace/chandao/zentaopro/www;
index index.php;
try_files $uri $uri/ /index.php?$args;
}
error_page 500 502 503 504 /50x.html;
location = /50x.html {
root html;
}
location ~ \.php$ {
root /home/devops/workspace/chandao/zentaopro/www;
fastcgi_pass 127.0.0.1:9000;
fastcgi_index index.php;
fastcgi_param SCRIPT_FILENAME /scripts$fastcgi_script_name;
fastcgi_param SCRIPT_FILENAME $document_root$fastcgi_script_name;
fastcgi_param PATH_INFO $request_uri;
include fastcgi_params;
}
}
应该是:1. web server最好是apache