【问题标题】:codeigniter php.ini allow_url_fopen=1codeigniter php.ini allow_url_fopen=1
【发布时间】: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


【解决方案1】:

这是您应该使用的正确 php.ini 值...

allow_url_fopen = 开启

希望对你有帮助

【讨论】:

    猜你喜欢
    • 1970-01-01
    • 1970-01-01
    • 2011-03-28
    • 1970-01-01
    • 2013-01-17
    • 2012-02-26
    • 2016-06-16
    • 1970-01-01
    相关资源
    最近更新 更多