新vps 探针显示不了内存和负载信息解决办法 国外vps初始配置
作者:fengyn 日期:2009-12-30
新vps 探针显示不了内存和负载信息解决办法
在webserver config里选择suPhp模式就行了 CGI-FCGI方式
其他问题
用lighttpd的时候,根目录权限755就可以写入文件
转成apache后,必须改成777才能写入
问题解决了
在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)
Zend可以在Lxadmin后台的PHPConfig里启用,Apache可以从SwichProgram里选择,建议先选择lighttpd和bind然后再选回apache和djbdns,否则你会看到内存占用量很高。
ps:今天刚买了个国外的vps.正测试。呵呵
在webserver config里选择suPhp模式就行了 CGI-FCGI方式
其他问题
用lighttpd的时候,根目录权限755就可以写入文件
转成apache后,必须改成777才能写入
问题解决了
在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)
Zend可以在Lxadmin后台的PHPConfig里启用,Apache可以从SwichProgram里选择,建议先选择lighttpd和bind然后再选回apache和djbdns,否则你会看到内存占用量很高。
ps:今天刚买了个国外的vps.正测试。呵呵
评论: 0 | 引用: 0 | 查看次数: -
发表评论

上一篇
下一篇

文章来自:
Tags:
相关日志:
