wuyichao36 发表于 2012-11-23 11:58:14

vps没有安装配置apache。有php和mysql..怎么ci做的项目用不了...

vps没有安装配置apache。有php和mysql..怎么ci做的项目用不了啊。

为什么啊。。其实项目在我本机可以,很正常。在别人的空间都可以啊,为什么就在我的vps不行啊。

太尉天上飞 发表于 2012-11-23 13:40:17

web服务器都没有,怎么跑?

wanganlin21 发表于 2012-11-26 23:47:00

呵呵,目录权限问题吧。根目录的权限要和上级目录一致

ichou 发表于 2012-11-27 20:34:39

我只能表示很不理解 VPS为什么会跑不了CI呢 LZ?
难道没有web服务器;P

longjianghu 发表于 2012-11-28 08:53:43

web服务器都没有怎么玩?

phoenixg 发表于 2012-11-28 09:54:16

哈哈 都有vps了 还不会建apache 我勒个去

=-= 发表于 2012-12-1 03:19:10

可能是nginx吧, 配置有点不同, 所以跑不起来, vhost要写好

wanganlin21 发表于 2012-12-3 14:19:36

=-= 发表于 2012-12-1 03:19 static/image/common/back.gif
可能是nginx吧, 配置有点不同, 所以跑不起来, vhost要写好

nginx的pathinfo 如何配置?
使用lnmp安装之后 默认不支持pathinfo,如何配置?

=-= 发表于 2012-12-5 15:52:51

wanganlin21 发表于 2012-12-3 14:19 static/image/common/back.gif
nginx的pathinfo 如何配置?
使用lnmp安装之后 默认不支持pathinfo,如何配置? ...

这是我用的nginx vhost

server {
server_name your.domain.com;
root /your/webroot;
index index.html index.php index.htm;

location ~* \.(ico|css|js|gif|jpe?g|png)(\?+)?$ {
expires max;
log_not_found off;
}

location / {
try_files $uri $uri/ /index.php;
}
location ~* \.php$ {
fastcgi_pass unix:/tmp/php-cgi.sock;
fastcgi_index index.php;
fastcgi_split_path_info ^(.+\.php)(.*)$;
include fastcgi_params;
fastcgi_param SCRIPT_FILENAME $document_root$fastcgi_script_name;
}
}
页: [1]
查看完整版本: vps没有安装配置apache。有php和mysql..怎么ci做的项目用不了...