升级到php5.5后出现403错误

好的,我是在stackoverflow上提出问题的新手,但我需要弄清楚这一点。 我安装了Apache的VPS运行Ubuntu 12.04 LTS。 我下载了一个php脚本,它需要php 5.4+,但我安装了5.3。 然后我按照此链接中的说明操作。 在进行升级时,安装程​​序告诉我,我的php.ini文件是手动更改的。 我相信我这么做是为了很久以前用“display_errors = on”变量查看屏幕上的错误。 因此,我选择了保留和使用旧版本php.ini的选项。 一旦安装完成并且apache服务器重新启动。 我去了我的Chrome浏览器,并按下“刷新” ,令我沮丧的是, “403 Forbidden”

这是虚拟服务器的conf文件:

<VirtualHost *:80>
    ServerAdmin webmaster@localhost

    DocumentRoot /home/{usr}/Public/
    # Indexes + Directory Root.
    DirectoryIndex  index.html index.shtml index.php
    <Directory />
        Options Indexes FollowSymLinks MultiViews
        AllowOverride All
        Order allow,deny
        allow from all
    </Directory>
    <Directory /home/{usr}/Public/>
        Options Indexes FollowSymLinks MultiViews
        AllowOverride All
        Order allow,deny
        allow from all
    </Directory>

    ScriptAlias /cgi-bin/ /usr/lib/cgi-bin/
    <Directory "/usr/lib/cgi-bin">
        AllowOverride None
        Options +ExecCGI -MultiViews +SymLinksIfOwnerMatch
        Order allow,deny
        Allow from all
    </Directory>

    ErrorLog /home/{usr}/Public/log/{server}/error.log

    # Possible values include: debug, info, notice, warn, error, crit,
    # alert, emerg.
    LogLevel warn

    CustomLog /home/{usr}/Public/log/{server}/access.log combined

     Alias /doc/ "/usr/share/doc/"
    <Directory "/usr/share/doc/">
        Options Indexes MultiViews FollowSymLinks
        AllowOverride None
        Order deny,allow
        Deny from all
        Allow from 127.0.0.0/255.0.0.0 ::1/128
    </Directory>

</VirtualHost>

我将用户名屏蔽到{usr},并将该文件夹隐藏到{server}以保持匿名。 这个文件是由我创建的,将它与其他一些示例文件放在一起。 我不确定这是否正确,我所知道的是在升级之前,一切正常!

我也是“LL”“公共”文件夹,这里是我发现的:

drwxrwxrwx 28 {usr} {usr}   4096 Sep  4 01:09 Public/

似乎它下面的所有文件夹都具有相同的权限。 请帮忙,如果有任何问题,请随时询问。 我已经这么做了很多年,但决不会称自己为“专家”。

提前致谢。


你还升级了Apache 2吗? Apache 2.4有一个新的用户权限策略系统:http://httpd.apache.org/docs/2.4/upgrading.html#run-time

链接地址: http://www.djcxy.com/p/57689.html

上一篇: Getting a 403 error after upgrading to php5.5

下一篇: PHP 5.4.12 Mac OSX imagecreate* functions not working