raksmart活动促销

分享

写回答

发帖

[提问] 这个该如何调整?——如何设置php.ini

国外虚拟主机 国外虚拟主机 3980 人阅读 | 1 人回复

发表于 2009-2-13 13:38:30 | 显示全部楼层 |阅读模式

We are happy to inform you that over the next two weeks we will upgrade PHP to the latest 4.x version (4.4.9) on the web server your website is currently being hosted on. This upgrade will resolve many security exploits and make services more stable.

As part of this upgrade, we will migrate from an Apache Module to a CGI based installation that gives you more control over many PHP settings. Once implemented, you will have the ability to upload your very own php.ini file into your cgi-bin folder as needed.

After the upgrade, your website may experience a few errors, all of which can be quickly resolved. Most are caused by having PHP directives inside an .htaccess file.

To fix this problem, simply login to your control panel and click on the WebShell icon. The .htaccess file will not be viewable unless you have "show hidden files" checked in your WebShell settings. Open the .htaccess file and remove any lines that start with "php_". If you need to retain these settings, then they must now go into a php.ini file and placed into your cgi-bin folder.

Additionally, we have put together some useful information for you at:
http://www.ixwebhosting.com/index.php/v2/pages.faq_php

If you are running PHP in any of your HTM/HTML files, please add this line to your .htaccess file:
AddHandler php-script .php .php3 .php4 .htm .html .phtml

If you have any questions or concerns about this upgrade, please do not hesitate to contact us 24/7 via live chat, ticket, or phone support and we will be glad to assist.


--------------------------------
这是我站点的.htacess文件内容,前面被添加了下面内容:


Php_flag display_errors On
#please use php.ini for this php_value error_reporting 6143


###        将 RewriteEngine 模式打开
RewriteEngine On

###        修改以下语句中的 /supesite 修改为你的SupeSite目录地址,如果程序放在根目录中,请将 /supesite 修改为 /
RewriteBase /

###        Rewrite 系统规则请勿修改
RewriteRule ^([0-9]+)/spacelist(.+)$ index.php?uid/$1/action/spacelist/type$2 [L]
RewriteRule ^([0-9]+)/viewspace(.+)$ index.php?uid/$1/action/viewspace/itemid$2 [L]
RewriteRule ^([0-9]+)/viewbbs(.+)$ index.php?uid/$1/action/viewbbs/tid$2 [L]
RewriteRule ^([0-9]+)/(.*)$ index.php?uid/$1/$2 [L]
RewriteRule ^([0-9]+)$ index.php?uid/$1 [L]

RewriteRule ^action(.+)$ index.php?action$1 [L]
RewriteRule ^category(.+)$ index.php?action/category/catid$1 [L]
RewriteRule ^viewnews(.+)$ index.php?action/viewnews/itemid$1 [L]
RewriteRule ^viewthread(.+)$ index.php?action/viewthread/tid$1 [L]
RewriteRule ^mygroup(.+)$ index.php?action/mygroup/gid$1 [L]

------------
应该怎样设置?现在站点已经打不开:

500 Error - Internal Server Error
This error was caused due to an unexpected difficulty in fulfilling the user request. The most likely cause of this error is a crashed or error'd CGI script or program. Please verify that the program is properly compiled and/or operational and carry out any necessary debugging.
If you are not responsible for this resource, please send a bug-report to the address listed below describing your problem. Please include in the report the date, time, your e-mail address, the website on which this error occured and what you were attempting to do when this error occured. Your compliance is appreciated.

回答|共 1 个

add.c

发表于 2009-2-13 14:15:23 | 显示全部楼层

让你删除以.htaccess里以"php_"开头的行
您需要登录后才可以回帖 登录 | 注册

本版积分规则