logo
Apache Lounge
Webmasters

 

About Forum Index Downloads Search Register Log in RSS X


Keep Server Online

If you find the Apache Lounge, the downloads and overall help useful, please express your satisfaction with a donation.

or

Bitcoin

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.
Post new topic   Forum Index -> Other Software View previous topic :: View next topic
Reply to topic   Topic: 403 with PHP install
Author
Triple_Nothing



Joined: 01 Apr 2012
Posts: 39
Location: WI, USA

PostPosted: Sun 08 Apr '12 16:30    Post subject: 403 with PHP install Reply with quote

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

PostPosted: Tue 10 Apr '12 3:13    Post subject: Reply with quote

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

PostPosted: Tue 10 Apr '12 13:01    Post subject: Reply with quote

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

PostPosted: Tue 10 Apr '12 13:38    Post subject: Reply with quote

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

PostPosted: Tue 10 Apr '12 15:19    Post subject: Reply with quote

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

PostPosted: Tue 10 Apr '12 23:08    Post subject: Reply with quote

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

PostPosted: Wed 06 Jun '12 2:21    Post subject: Same Problem, different resolution Reply with quote

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


Reply to topic   Topic: 403 with PHP install View previous topic :: View next topic
Post new topic   Forum Index -> Other Software