I've just installed a new Apache 2.4.2 with Php fast cgi build on windows.
Then I modified the httpd.conf adding the following:
LoadModule fcgid_module modules/mod_fcgid.so
FcgidInitialEnv PHPRC "C:/SITE/PHP"
AddHandler fcgid-script .php
FcgidWrapper "C:/SITE/PHP/php-cgi.exe" .php
DocumentRoot "C:/SITE/localhost/www"
<Directory "C:/SITE/localhost/www">
Order allow,deny
Allow from all
</Directory>
However when I try to open my site, it says:
Forbidden You don't have permission to access / on this server.
Any ideas what might be the problem?
http://127.0.0.1/asdasdasd
- the same outcome. – Casilde<Directory>
section is missing at least one crucial directive - you will need anOptions ExecCGI
directive in it. You should also probably add an explicitAllowOverride all
(ornone
) directive. AlsoOrder
andAllow
are deprecated - you should use the newRequire
directives provided by mod_authz_host if you are using 2.4.x – Floydflsshttpd -k install
handles a manual service installation and is not it any way incorrect and won't be causing the problem. Are you running a VC10 build from ApacheLounge? – FloydflssOptions ExecCGI
directive to the<Directory>
section and restart Apache. If that doesn't work we'll take it from there. – FloydflssRequire
directive? – Casilde