Go Back   HowtoForge Forums | HowtoForge - Linux Howtos and Tutorials > Linux Forums > Server Operation

Do you like HowtoForge? Please consider supporting us by becoming a subscriber.
Thread Tools Display Modes
Old 30th June 2010, 11:36
krissie krissie is offline
Junior Member
Join Date: Jun 2010
Posts: 5
Thanks: 1
Thanked 0 Times in 0 Posts
Default Access forbidden for php files in browser... html files work just fine

I'm about to finish the server install from hell (my first serious linux server), and I come to upgrading PHP to v5.2.13. Before I upgraded, I created a phpinfo file with wide open permissions... I tried to open it from my browser, and I get "access denied"... nothing more and nothing less. just those two words.

I assumed it might be fixed, whatever it was, from the upgrade, so I pressed ahead and upgraded... still "access denied". I created a html file with a small php include in it... I could show that in my browser, but no output from the php... in fact, the browser showed the PHP itself. I set a php mimetype in the htaccess file, and it was no help.

I checked the apache logs - no hint that I could see.

I'm not really sure where to go from here - where to look and what to do!?!?

Any help would be sincerely appreciated.
Reply With Quote
Sponsored Links
Old 30th June 2010, 12:59
till till is offline
Super Moderator
Join Date: Apr 2005
Location: Lüneburg, Germany
Posts: 37,022
Thanks: 840
Thanked 5,655 Times in 4,464 Posts

The permissions of a php file should be 755. Using 777 might cause a permission error as apache might treat this as insecure. Also make sure that the php file is owned by the user and group of the website and that you uploaded it into the "web" directory of the website.
Till Brehm
Get ISPConfig support and the ISPConfig 3 manual from ispconfig.org.

Last edited by till; 30th June 2010 at 13:12. Reason: typos
Reply With Quote
The Following User Says Thank You to till For This Useful Post:
krissie (30th June 2010)
Old 30th June 2010, 13:08
krissie krissie is offline
Junior Member
Join Date: Jun 2010
Posts: 5
Thanks: 1
Thanked 0 Times in 0 Posts

Absolutely right on the money.... perfect. It works.

Thank you ever so much!

Reply With Quote


Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
ffmpeg Video support for ubuntu 7.10 [suphp-ispconfig] amaurib Installation/Configuration 13 16th February 2010 18:26
virtual sites (php doesn't work, html does work!) ipraid Installation/Configuration 1 8th November 2008 15:29
FTP cannot open remote folder!?! andysm849 Server Operation 23 17th October 2008 00:34
Can't start apache Musty Server Operation 12 9th March 2008 14:58
ERROR: The PHP binary coming with ISPConfig does not work properly on your system W1SKCC Installation/Configuration 2 2nd February 2007 14:55

All times are GMT +2. The time now is 02:52.

Powered by vBulletin® Version 3.8.7
Copyright ©2000 - 2014, vBulletin Solutions, Inc.