刚买fsckvps,用apache模式,探针显示不了内存和负载信息?
|
|
还有php的运行方式怎么和虚拟主机的不一样哦,怎么改一下 |
|
|
|
|
|
|
|
|
|
|
kingto
发表于 2009-3-19 10:02:46
|
显示全部楼层
奇怪 |
|
|
|
|
|
|
|
|
|
|
gg82805252
发表于 2009-3-19 12:36:53
|
显示全部楼层
|
|
|
|
|
|
|
|
|
|
gypworks526
发表于 2009-3-19 13:59:07
|
显示全部楼层
等高人吧!! |
|
|
|
|
|
|
|
|
|
|
lenghost
发表于 2009-3-19 14:12:28
|
显示全部楼层
还发现个问题
用lighttpd的时候,根目录权限755就可以写入文件
转成apache后,必须改成777才能写入 |
|
|
|
|
|
|
|
|
|
|
lenghost
发表于 2009-3-20 09:16:31
|
显示全部楼层
问题解决了
在webserver config里选择suPhp模式就行了
现在变成CGI-FCGI了
Google了一下区别:明白了为什么要改777了,而且SuPHP模式下根目录777会出现500错误
SuPHP
Pros:
PHP runs as your user/group
PHP files can have perms of 640 (hiding things like passwords from other accounts)
Files/folders written by PHP are written as user/group (no apache or other global user)
Custom php.ini file per site (can add/remove security options)
Can run php4 and php5 at the same time (on even the same site!)
Cons:
Slower
many PHP .htaccess options do not work (since you can have your own php.ini file this make this point moot)
apache/mod_php
Pros:
Faster (about 25-30%)
Cons
PHP safe mode isn’t safe
files written by PHP are saved as the apache process (usually apache/apache user/group)
[ 本帖最后由 lenghost 于 2009-3-20 09:22 AM 编辑 ] |
|
|
|
|
|
|
|
|
|
|
gypworks526
发表于 2009-3-20 09:19:32
|
显示全部楼层
|
|
|
|
|
|
|
|