Keep Server Online
If you find the Apache Lounge, the downloads and overall help useful, please express your satisfaction with a donation.
or
A donation makes a contribution towards the costs, the time and effort that's going in this site and building.
Thank You! Steffen
Your donations will help to keep this site alive and well, and continuing building binaries. Apache Lounge is not sponsored.
| |
|
Topic: 403 with PHP install |
|
Author |
|
Triple_Nothing
Joined: 01 Apr 2012 Posts: 39 Location: WI, USA
|
Posted: Sun 08 Apr '12 16:30 Post subject: 403 with PHP install |
|
|
I had php running via the fcgid_module, but couldn't get it to successfully run any exec() commands, so trying to set it up to run via CGI from this how-to page:
http://www.thesitewizard.com/php/install-php-5-apache-windows.shtml
From the Apache error log I receive:
AH01630: client denied by server configuration: C:/Program Files (x86)/PHP/php-cgi.exe
any time I visit a .php page.
My httpd.conf file:
http://www.hellzoneinc.com/httpd.txt
A php file:
http://www.hellzoneinc.com/info.php
I'm sure it's a permission item somewhere being a CGI setup, but all I believe to grant it permission I think I've set. *shrugz*
Any ideas? |
|
Back to top |
|
Triple_Nothing
Joined: 01 Apr 2012 Posts: 39 Location: WI, USA
|
Posted: Tue 10 Apr '12 3:13 Post subject: |
|
|
I found my error, or at least something that would fix it. I had to add "Require all granted" to my PHP's <directory> directive. Final outlook...
Code: | <Directory "c:/Program Files (x86)/PHP">
AllowOverride None
Options None
Order allow,deny
Allow from all
Require all granted
</Directory> |
|
|
Back to top |
|
Steffen Moderator
Joined: 15 Oct 2005 Posts: 3092 Location: Hilversum, NL, EU
|
Posted: Tue 10 Apr '12 13:01 Post subject: |
|
|
In 2.4 you can remove:
Order allow,deny
Allow from all
Steffen |
|
Back to top |
|
Triple_Nothing
Joined: 01 Apr 2012 Posts: 39 Location: WI, USA
|
Posted: Tue 10 Apr '12 13:38 Post subject: |
|
|
In just this section? Or 2.4 doesn't use those settings anymore? |
|
Back to top |
|
Steffen Moderator
Joined: 15 Oct 2005 Posts: 3092 Location: Hilversum, NL, EU
|
Posted: Tue 10 Apr '12 15:19 Post subject: |
|
|
See,
http://httpd.apache.org/docs/2.4/upgrading.html#run-time
Special there:
The old access control idioms should be replaced by the new authentication mechanisms, although for compatibility with old configurations, the new module mod_access_compat is provided.
Steffen |
|
Back to top |
|
glsmith Moderator
Joined: 16 Oct 2007 Posts: 2268 Location: Sun Diego, USA
|
Posted: Tue 10 Apr '12 23:08 Post subject: |
|
|
mod_access_compat,
my experience is to not mix them, use either all new throughout or all old. The majority wins and the minority will 403.
In other words, if you have more sections using the old style than the new, all the ones with the new style will 403 ... and vice-verse. |
|
Back to top |
|
simonarame
Joined: 04 Jun 2012 Posts: 1 Location: Montreal, Qc
|
Posted: Wed 06 Jun '12 2:21 Post subject: Same Problem, different resolution |
|
|
Hi, I was getting 403 for every php file that was in a directory other than the default.
I found that I had to add "ExecCGI" as an option inside this <Directory></Directory> in the configuration file. |
|
Back to top |
|
|
|
|
|
|