store | blogs | forums | twitter | facebook | wiki | mailing lists | downloads | support portal
Atomic Secure Linux
It is currently Fri May 24, 2013 11:05 am

» Feed - Atomicorp

All times are UTC - 5 hours [ DST ]




Post new topic Reply to topic Share/Bookmark  [ 3 posts ] 
Author Message
 Post subject: PHP/Apache blocked any file called COMMON.PHP [SOLVED]
Unread postPosted: Sat Jan 24, 2009 3:43 am 
Offline
Forum User
Forum User

Joined: Sat Jan 24, 2009 3:37 am
Posts: 6
Hello,

Got a strange problem it seems, been a nightmare to track down.

Running PHP5.2.8

If I create a file called: common.php and enter:

<?
phpinfo()
?>

Then run it, I get in the error_log

"client denied by server configuration"

But if I rename it to say common2.php, it works exactly. It seems PHP (or apache?) is blocking any file called 'common.php' from running.

Have checked the php.ini and httpd.conf files, but neither has changed. Only thing that has changed recently is an upgrade to the latest art php. I have not tried going back to older versions as I'm not 100% sure on syntax to do so without effecting websites or Plesk.

A very odd error, not sure where to go next... anyone seen anything similar ?

Thanks in advance.

Keith


Top
 Profile  
 
 Post subject:
Unread postPosted: Sat Jan 24, 2009 7:43 am 
Offline
Forum User
Forum User

Joined: Sat Jan 24, 2009 3:37 am
Posts: 6
Found the problem to this, very obvious when I figured it out.

There was a file /var/www/vhosts/.htaccess that was blocking it with the deny all statement.

Keith


Top
 Profile  
 
 Post subject:
Unread postPosted: Sat Jan 24, 2009 2:14 pm 
Offline
Atomicorp Staff - Site Admin
Atomicorp Staff - Site Admin

Joined: Wed Dec 31, 1969 8:00 pm
Posts: 7429
Location: earth
thanks for the follow up, its always good to have a solution in a thread, or even just the things youve ruled out. Its bound to help someone else!


Top
 Profile  
 
Display posts from previous:  Sort by  
Post new topic Reply to topic Share/Bookmark  [ 3 posts ] 

» Feed - Atomicorp

All times are UTC - 5 hours [ DST ]


Who is online

Users browsing this forum: Bing [Bot] and 1 guest


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Search for:
Jump to:  
Powered by phpBB © 2000, 2002, 2005, 2007 phpBB Group