首页 文章

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

提问于
浏览
2

好的我是新问题,在stackoverflow上提出问题,但我需要弄明白这一点 . 我安装了运行Ubuntu 12.04 LTS的Apache的VPS . 我下载了一个php脚本,需要php 5.4但我安装了5.3 . 然后我按照位于this link.的说明进行升级时,安装程序告诉我手动更改了我的php.ini文件 . 我相信我这样做是为了在很久以前使用 "display_errors=on" 变量查看屏幕上的错误 . 因此,我选择了KEEP的选项并使用旧版本的php.ini . 安装完成后,apache服务器重新启动 . 我去了我的Chrome浏览器并按了 "refresh" ,令我沮丧的是 "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>

我将用户名隐藏到,将文件夹隐藏到以保持匿名 . 此文件是由ME创建的,通过将其与其他一些示例文件放在一起 . 我不确定这是否正确,我所知道的是,在升级之前,一切都运行良好!

我也 "LL" '是 "Public" 文件夹,这是我找到的:

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

它下面的所有文件夹似乎都具有相同的权限 . 请帮助,如果有任何问题,请随时提出 . 多年来我一直这样做,但绝不会称自己为“专家” .

提前致谢 .

1 回答

相关问题