store | blogs | forums | twitter | facebook | wiki | downloads | support portal
Atomic Secure Linux
It is currently Fri Oct 31, 2014 9:00 pm

» Feed - Atomicorp

All times are UTC - 5 hours [ DST ]




Post new topic Reply to topic  [ 4 posts ] 
Author Message
 Post subject: Problem with PHP and MMAP. [SOLVED]
Unread postPosted: Wed Mar 25, 2009 4:04 pm 
Offline
Forum User
Forum User

Joined: Thu Feb 12, 2009 8:53 pm
Posts: 84
Location: Mexico
I am getting:

OSSEC HIDS Notification.
2009 Mar 24 18:05:41

Received From: www->/var/log/httpd/error_log
Rule: 1002 fired (level 2) -> "Unknown problem somewhere in the system."
Portion of the log(s):

[Tue Mar 24 14:52:50 2009] [warn-phpd] mmap cache can't open /var/www/vhosts/xxx.com.mx/subdomains/chat/httpdocs/index.php - Permission denied (pid 14281)

--END OF NOTIFICATION

But I don't know what to do or how to fix it.

Thank you for your help.

_________________
CentOS release 6.5 (Final)
Plesk psa-11.5.30-cos6.build115130819.13
ASL 3.2.18-37
Linux 2.6.32-358.11.1.el6.x86_64


Top
 Profile  
 
 Post subject: Re: Problem with PHP and MMAP.
Unread postPosted: Wed Mar 25, 2009 8:19 pm 
Offline
Atomicorp Staff - Site Admin
Atomicorp Staff - Site Admin
User avatar

Joined: Thu Feb 07, 2008 7:49 pm
Posts: 3661
Location: Chantilly, VA
This is a PHP error that means either the permissions are wrong on your PHP file or the user and/or group ownerships are wrong on the file. Your best bet is to find out what those should be for your application, or in a short term pinch you can try going with 777 (danger danger danged - not for production use), but if you are in safe mode you still need to make sure the ownership is right.

If this just started happening for you look into what changed (upgrade of your application, copying it over from another system, restored backup, etc.) and see if you can roll back to a version from when it was working and compare the permissions, ownership and code to see if anything changed. Finally, you can try turning safe mode off in PHP if you cant sort out the ownership issues to see if that works.

The ideal solution to make sure the permissions and ownership are correct to run PHP in safe mode though.

_________________
Michael Shinn
Atomicorp - Security For Everyone

Co-Author of Troubleshooting Linux Firewalls.


Top
 Profile  
 
 Post subject: Re: Problem with PHP and MMAP.
Unread postPosted: Thu Mar 26, 2009 5:47 pm 
Offline
Forum Regular
Forum Regular

Joined: Mon Oct 29, 2007 6:51 pm
Posts: 645
When ever I see that it means that the world is set to 0 - like 640 or 750 and just needs to change to 644 or 755 to solve the issue.


Top
 Profile  
 
 Post subject: Re: Problem with PHP and MMAP.
Unread postPosted: Fri Mar 27, 2009 6:16 pm 
Offline
Forum User
Forum User

Joined: Thu Feb 12, 2009 8:53 pm
Posts: 84
Location: Mexico
That was it, it is now working.

Thanks for your help.

_________________
CentOS release 6.5 (Final)
Plesk psa-11.5.30-cos6.build115130819.13
ASL 3.2.18-37
Linux 2.6.32-358.11.1.el6.x86_64


Top
 Profile  
 
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 4 posts ] 

» Feed - Atomicorp

All times are UTC - 5 hours [ DST ]


Who is online

Users browsing this forum: Baidu [Spider] and 2 guests


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