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.
Reply
 
Thread Tools Display Modes
  #1  
Old 30th June 2010, 10: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
  #2  
Old 30th June 2010, 11:59
till till is offline
Super Moderator
 
Join Date: Apr 2005
Location: Lneburg, Germany
Posts: 36,395
Thanks: 833
Thanked 5,490 Times in 4,322 Posts
Default

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 12:12. Reason: typos
Reply With Quote
The Following User Says Thank You to till For This Useful Post:
krissie (30th June 2010)
  #3  
Old 30th June 2010, 12:08
krissie krissie is offline
Junior Member
 
Join Date: Jun 2010
Posts: 5
Thanks: 1
Thanked 0 Times in 0 Posts
 
Default

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

Thank you ever so much!

xx
Reply With Quote
Reply

Bookmarks

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 17:26
virtual sites (php doesn't work, html does work!) ipraid Installation/Configuration 1 8th November 2008 14:29
FTP cannot open remote folder!?! andysm849 Server Operation 23 16th October 2008 23:34
Can't start apache Musty Server Operation 12 9th March 2008 13:58
ERROR: The PHP binary coming with ISPConfig does not work properly on your system W1SKCC Installation/Configuration 2 2nd February 2007 13:55


All times are GMT +2. The time now is 23:03.


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