2

Using WAMP 3 (Apache/2.4.23 (Win64) PHP/7.0.10 mod_fcgid/2.3.9 Server at localhost Port 80)

# 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>
#

Here is my httpd.conf (only added these lines at the end of the standard file)

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>

I must have read over 20 threads here and tried numerous solutions to no avail.

All of the above worked in the previous version of WAMP (Apache 2.4.9, PHP 5.5.12, same mod_fcgid.so file).

Ed K
  • 21
  • 1
  • 4
  • What if you change in Virtual Hosts to `Allow from all` and delete `Require local` in `` ? – Karol Gasienica Oct 28 '16 at 17:22
  • Tried that just now. Same result. – Ed K Oct 28 '16 at 17:44
  • Possible duplicate of [Error message "Forbidden You don't have permission to access / on this server"](https://stackoverflow.com/questions/10873295/error-message-forbidden-you-dont-have-permission-to-access-on-this-server) – Marcus Müller Jan 16 '18 at 23:58

3 Answers3

0

Possible solution

Change

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

to

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

It should allow connection from every one.

And after it restart APACHE.

Karol Gasienica
  • 2,479
  • 18
  • 32
0

Try installing the 32 bit version. I understand that you are using the correct version technically, it's just an issue I've run into before. It worked for me.

  • We are using 32bit (older version Apache 2.4.9, PHP 5.5.12, same mod_fcgid.so file) now but we need a 64bit solution. – Ed K Oct 28 '16 at 17:47
0

Addind "ExecCGI" to Options solved issue for me:

<Directory / >
  Options Indexes FollowSymLinks ExecCGI
  # . . . . .
</Directory>
d9k
  • 858
  • 1
  • 9
  • 22