1 頁 (共 1 頁)

ixwebhosting php.ini

發表於 : 2010-08-08 11:34:46
yehlu
http://bbs.idcspy.com/thread-40202-1-1.html

一般IX默认是没有php.ini和.htaccess的
需要自己创建,我通过客服帮我修改上传附件的大小发现了他在cgi-bin目录下放进去了两个文件,分别是:php.ini和php5-custom- ini.cgi,然后在根目录的.htaccess中加入了两行:AddHandler phpini-cgi .php .htm
Action phpini-cgi /cgi-bin/php5-custom-ini.cgi

.htaccess

代碼: 選擇全部

AddHandler phpini-cgi .php .htm
Action phpini-cgi /cgi-bin/php5-custom-ini.cgi
php5-custom- ini.cgi

代碼: 選擇全部

#!/bin/sh
export PHP_FCGI_CHILDREN=3
exec /hsphere/shared/php5/bin/php-cgi -c /hsphere/local/home/user_name/ccc.com.tw/cgi-bin/php.ini
php.ini

代碼: 選擇全部

[PHP]
register_globals = Off

Re: ixwebhosting php.ini

發表於 : 2010-08-09 21:25:57
yehlu
php.ini 及 php5-custom-ini.cgi 權限要改為 755
否則會出現錯誤

Error 500: Internal Server Error

The server encountered an unexpected condition which prevented it from fulfilling the request.

The problem is on the server side, not with your browser or the address. Most probably, a certain service (e.g., Tomcat engine) is down. Please contact your webmaster.