2016-10-28 26 views
1

にここ"このサーバーで/index.phpにアクセスする権限がありません。" 64 WAMP 3

# Virtual Hosts 
# 

<Directory c:/wamp/www/testdir> 
    Options +Indexes +FollowSymLinks +Multiviews 
    AllowOverride all 
    Require local 
</Directory> 

<VirtualHost *:80> 
    ServerAdmin <emailaddress> 
    DocumentRoot "c:/wamp/www/testdir/" 
    ServerName prerelease.mydomain.com 
    DirectoryIndex index.php 
    ErrorLog "logs/prerelease.mydomain.com-error.log" 
    CustomLog "logs/prerelease.mydomain.com-access.log" common 
</VirtualHost> 
# 

WAMP 3(Apacheの/ 2.4.23(Win64の)PHP/7.0.10 mod_fcgid/localhostのポート80で2.3.9サーバ)を使用して唯一の追加(私のhttpd.confです標準のファイルの末尾にこれらの行は)

LoadModule fcgid_module modules/mod_fcgid.so 

FcgidInitialEnv PHPRC "C:/wamp/bin/php/php7.0.10" 
AddHandler fcgid-script .php 
FcgidWrapper "C:/wamp/bin/php/php7.0.10/php-cgi.exe" .php 

<IfModule fcgid_module> 

    FcgidIOTimeout 1200 
    FcgidConnectTimeout 1200 
    FcgidBusyScanInterval 1200 
    FcgidBusyTimeout 1200 
    FcgidErrorScanInterval 1200 
    FcgidIdleScanInterval 1200 
    FcgidIdleTimeout 1200 

    FcgidProcessLifeTime 3600 
    FcgidZombieScanInterval 1200 
    MaxRequestLen 15728640 
    FcgidMaxRequestLen 15728640 

</IfModule> 

私はここで20以上のスレッドを読んで、無駄に数多くのソリューションを試している必要があります。

上記のすべては、以前のバージョンのWAMP(Apache 2.4.9、PHP 5.5.12、同じmod_fcgid.soファイル)で動作しました。

<Directory c:/wamp/www/testdir> 
    Options +Indexes +FollowSymLinks +Multiviews 
    AllowOverride all 
    Allow from all 
</Directory> 

+0

仮想ホストを 'Allow from all'に変更し、' 'で' Require local'を削除するとどうなりますか? –

+0

今すぐ試してみてください。同じ結果。 –

+0

[このメッセージにアクセスする権限がありません]というエラーメッセージが表示される可能性があります(https://stackoverflow.com/questions/10873295/error-message-forbidden-you-dont-have-permission-このサーバーにアクセスする) –

答えて

0

解決策

変更

<Directory c:/wamp/www/testdir> 
    Options +Indexes +FollowSymLinks +Multiviews 
    AllowOverride all 
    Require local 
</Directory> 

それは一人一人からの接続を許可する必要があります。

その後、APACHEを再起動します。

+0

ちょうどそれを試みた。同じ結果。 –

0

32ビット版をインストールしてみます。私はあなたが技術的に正しいバージョンを使用していることを理解しています、それは私が以前に遭遇した問題です。それは私のために働いた。

+0

私たちは32ビット(古いバージョンのApache 2.4.9、PHP 5.5.12、同じmod_fcgid.soファイル)を使用していますが、64ビットのソリューションが必要です。 –

関連する問題