簡體   English   中英

升級到php5.5后出現403錯誤

[英]Getting a 403 error after upgrading to php5.5

好的我是新問題,在stackoverflow上提出問題,但我需要弄明白這一點。 我安裝了運行Ubuntu 12.04 LTS的Apache的VPS。 我下載了一個php腳本,需要php 5.4+但我安裝了5.3。 然后我按照此鏈接中的說明進行操作 在進行升級時,安裝程​​序告訴我手動更改了我的php.ini文件。 我相信我這樣做是為了很久以前使用“display_errors = on”變量查看屏幕上的錯誤。 因此,我選擇了KEEP的選項並使用舊版本的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}以保持匿名。 此文件是由ME創建的,通過將其與其他一些示例文件放在一起。 我不確定這是否正確,我所知道的是,在升級之前,一切正常!

我也是“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

暫無
暫無

聲明:本站的技術帖子網頁,遵循CC BY-SA 4.0協議,如果您需要轉載,請注明本站網址或者原文地址。任何問題請咨詢:yoyou2525@163.com.

 
粵ICP備18138465號  © 2020-2024 STACKOOM.COM