【问题标题】:No input file specified plesk server4you没有指定输入文件 plesk server4you
【发布时间】:2014-01-27 10:32:21
【问题描述】:

我将我的网站转移到一个新的专用服务器,它是 CENTOS 和带有 PLESK 的 PHP 版本 5.3.3。

我的问题是这样的,我在每个页面期望主页中都收到“没有指定输入文件”错误。首先,我认为这是一个 chmod 问题,而不是我将 httpdocs 中的所有文件夹和文件设置为 755

第二次谷歌搜索并找到关于 .htaccess 的解决方案

我的 .htaccess 是:

SetOutputFilter DEFLATE
AddDefaultCharset UTF-8
DefaultLanguage tr-TR
RewriteEngine On
RewriteBase /
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule ^(.*)$ index.php/$1 [L]

我变了

RewriteRule ^(.*)$ index.php?/$1 [L]

通过这种变化,网站开始以不同的方式工作。没有任何错误,但在每个页面中我都重定向到主页。

Hovewer when i write index.php into the url as guncebektas.com/index.php/yaptiklarim

我可以到达我想要的页面

然后,我更改了 php.ini,cgi.fix_pathinfo=0 没什么变化,最后我决定写在这里,谢谢你的帮助。

Site : guncebektas.com/  
A page : guncebektas.com/yaptiklarim  
I can reach : guncebektas.com/index.php/yaptiklarim  

【问题讨论】:

    标签: php apache .htaccess


    【解决方案1】:

    我看到这是关于 fastcgi 的问题,我从 plesk 控制面板将其更改为 apache 模块 - PHP 支持(将 PHP 作为 apache 模块运行)

    现在可以了

    【讨论】:

      【解决方案2】:

      遇到了同样的问题,我不能选择使用 mod_php 而不是 fast-cgi。

      只需使用以下方法修复权限:

      find ./ -type d -exec chmod 0755 '{}' \;
      find ./ -type f -exec chmod 0644 '{}' \;
      

      之后一切都很顺利。

      【讨论】:

        猜你喜欢
        • 2011-09-01
        • 2018-02-12
        • 1970-01-01
        • 1970-01-01
        • 1970-01-01
        • 2020-03-09
        • 1970-01-01
        • 1970-01-01
        • 1970-01-01
        相关资源
        最近更新 更多