PhoneGap中文网
标题:
centos系统,nginx 1.4.4,如何安装MobileCMS?
[打印本页]
作者:
longlybug
时间:
2014-3-11 22:18
标题:
centos系统,nginx 1.4.4,如何安装MobileCMS?
1、目录权限如何设置?
2、nginx里该如何配置?
3、php.ini里面要怎么设置?
nginx的vhost配置文件:
[root@AY131125113816Z vhosts]# cat jzlf3g.conf
log_format jzlf3g '$remote_addr - $remote_user [$time_local] "$request" '
'$status $body_bytes_sent "$http_referer" '
'"$http_user_agent" "$http_x_forwarded_for"';
server {
listen 80;
server_name 3g.jzlf.cn;
index index.html index.htm index.php;
root /alidata/www/jzlf3g;
location ~ .php
{
#fastcgi_pass unix:/tmp/php-cgi.sock;
fastcgi_pass 127.0.0.1:9000;
fastcgi_index index.php;
set $path_info "";
set $real_script_name $fastcgi_script_name;
if ($fastcgi_script_name ~ "^(.+?\.php)(/.+)$") {
set $real_script_name $1;
set $path_info $2;
}
fastcgi_param SCRIPT_FILENAME $document_root$real_script_name;
fastcgi_param SCRIPT_NAME $real_script_name;
fastcgi_param PATH_INFO $path_info;
include fastcgi.conf;
}
location ~ .*\.(gif|jpg|jpeg|png|bmp|swf)$
{
expires 30d;
}
location ~ .*\.(js|css)?$
{
expires 1h;
}
#伪静态规则
include /alidata/server/nginx/conf/rewrite/jzlf3g.conf;
access_log /alidata/log/nginx/access/jzlf3g.log;
}
rewrite配置如下
location / {
if (!-e $request_filename){
rewrite ^/(.*)$ /index.php?s=$1 last;
rewrite ^/admin/(.*)$ /admin/index.php?s=$1 last;
rewrite ^/index/(.*)$ /index/index.php?s=$1 last;
rewrite ^/install/(.*)$ /install/index.php?s=$1 last;
rewrite ^/core/(.*)$ /core/index.php?s=$1 last;
}
}
目前的现象是安装点同意之后,进入
http://3g.jzlf.cn/Index/install.php
403错误
作者:
admin
时间:
2014-3-11 22:47
找找thinkphp的配置 支持thinkphp的话就支持我们的系统
作者:
longlybug
时间:
2014-3-12 14:59
现在有所进展,在安装过程中,地址会变成
http://3g.jzlf.cn/.php/setconf
这种格式的,手动改成
http://3g.jzlf.cn/install.php/setconf
,可以进行下去,这样每一步都手动修改把mobilecms安装上了,现在的情况是打开3g.jzlf.cn可以看到界面,但点进入后台管理,变成
http://3g.jzlf.cn/.php?s=/Public/login
都是少了前面的admin ,手动改成
http://3g.jzlf.cn/admin.php?s=/Public/login
后可以访问,但验证码图片显示不出来,验证码的链接地址也是少了admin
'URL_MODEL' => 2
rewrite规则如下
location / {
if (!-e $request_filename)
{
rewrite ^/(.*)$ /index.php?s=$1 last;
}
}
欢迎光临 PhoneGap中文网 (http://bbs.phonegap100.com/)
Powered by Discuz! X3.2