【发布时间】:2013-04-25 06:50:42
【问题描述】:
ini 参数allow_url_fopen=0 到allow_url_fopen=1 但何时 cpanel 设置自定义 php.ini 创建和 .htacsess 为
<IfModule mod_rewrite.c>
RewriteEngine On
RewriteBase /
RewriteCond %{REQUEST_URI} ^system.*
RewriteRule ^(.*)$ /index.php?/$1 [L]
RewriteCond %{REQUEST_URI} ^application.*
RewriteRule ^(.*)$ /index.php?/$1 [L]
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule ^(.*)$ index.php?/$1 [L]
</IfModule>
<IfModule mod_rewrite.c>
RewriteEngine on
RewriteCond $1 !^(index\.php|images|sitemap.xml|php.ini|robots\.txt|css)
RewriteRule ^(.*)$ ./index.php/$1 [L]
</IfModule>
<IfModule mod_suphp.c>
suPHP_ConfigPath /home/myuser/public_html/
</IfModule>
和 php.ini 到
allow_url_fopen=1
但页面无法加载或错误 500?
【问题讨论】:
-
你检查过 Apache 错误日志吗?
-
Apache 错误日志中的王牌为 500 错误。看到 /etc/httpd/logs/error_log。
标签: php .htaccess codeigniter-2 cpanel