热烈推荐本博客子网站:免费代码网 | →美丽生活网 | →极品笑话网 | →服务器安全



服务器安全维护

新vps 探针显示不了内存和负载信息解决办法 国外vps初始配置

新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.正测试。呵呵

文章来自: 本站原创
引用通告: 查看所有引用 | 我要引用此文章
Tags:
相关日志:
评论: 0 | 引用: 0 | 查看次数: -
发表评论
昵 称:
密 码: 游客发言不需要密码.
内 容:
验证码: 验证码
选 项:
虽然发表评论不用注册,但是为了保护您的发言权,建议您注册帐号.

Freeb资源论坛----寻找免费资源的路上,我们陪你一路通行!