raksmart活动促销

分享

写回答

发帖

刚买fsckvps,用apache模式,探针显示不了内存和负载信息?

国外VPS云主机 国外VPS云主机 2092 人阅读 | 6 人回复

发表于 2009-3-19 09:17:55 | 显示全部楼层 |阅读模式

还有php的运行方式怎么和虚拟主机的不一样哦,怎么改一下
apache.jpg

回答|共 6 个

kingto

发表于 2009-3-19 10:02:46 | 显示全部楼层

奇怪

gg82805252

发表于 2009-3-19 12:36:53 | 显示全部楼层

不清楚,我用的是lighttpd

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 编辑 ]
phpinfo.PNG

gypworks526

发表于 2009-3-20 09:19:32 | 显示全部楼层

您需要登录后才可以回帖 登录 | 注册

本版积分规则