hosted by liquidweb


Go Back   Web Hosting Talk : Web Hosting Main Forums : Programming Discussion : HELP ME PLEASE!!! Suexec problem...
Reply

Forum Jump

HELP ME PLEASE!!! Suexec problem...

Reply Post New Thread In Programming Discussion Subscription
 
Send news tip View All Posts Thread Tools Search this Thread Display Modes
  #1  
Old 09-07-2002, 12:05 PM
SentryHost SentryHost is offline
Junior Guru Wannabe
 
Join Date: Apr 2002
Posts: 39

HELP ME PLEASE!!! Suexec problem...


I have been working on this since last night and I am getting very frustrated. Here is my problem. I am trying to use apache/php with suexec. I have my httpd.conf file set-up for a virtualsite and I am using the user and group directives to tell it what uid and gid to run the site as. I also made sure that all of the files are owned by that same uid/gid. In the error_log I get the following:

[notice] suEXEC mechanism enabled (wrapper: /etc/httpd/bin/suexec)
[notice] Accept mutex: sysvsem (Default: sysvsem)

which tells me it is starting, but when I try to access the site I get 403 Forbidden. Of course I go to look in the suexec_log file for information as to why this is happening and the file is not there. So with no information I am having a very hard time troubleshooting this. Any help or suggestions would be appreciated.



Sponsored Links
  #2  
Old 09-07-2002, 12:10 PM
nexcess.net nexcess.net is offline
Junior Guru
 
Join Date: Oct 2001
Location: Ann Arbor, MI U.S.A.
Posts: 217
I'd check your directory permissions. 403's can creep up for a variety of reasons and it sounds like apache can't even get around to running your cgi because of other errors. This would explain why there's nothing in your suexec_log. I'd check your error log, directory perms and allow/deny lists in apache for the problem. Paste the error_log entries here if you need more help.

Chris

__________________
Chris Wells [clwells - at - nexcess.net]
Nexcess - Beyond Hosting
Dearborn, MI DC ● Southfield, MI DC
Wordpress Hosting, Magento Hosting & More!

  #3  
Old 09-07-2002, 12:14 PM
SentryHost SentryHost is offline
Junior Guru Wannabe
 
Join Date: Apr 2002
Posts: 39
Thanks for the quick reply. Its not just a cgi I get it on just / and also on /index.php. There is nothing in the error_log that can help me. Also the httpd.conf file is the standard one, except for the virtualsite I added. Is there anything I should check in the standard httpd.conf that might be causing this? Thanks again.

Sponsored Links
  #4  
Old 09-07-2002, 12:27 PM
nexcess.net nexcess.net is offline
Junior Guru
 
Join Date: Oct 2001
Location: Ann Arbor, MI U.S.A.
Posts: 217
Mike,

There almost has to be something in the error log like "configuration forbids <ip address> on '/'" or something like that. It sounds to me like directory permissions and/or allow/deny list issues in your httpd.conf. Make all of your dirs leading up to your web root 711 and see if that fixes it. Make all of your php content page 644 for now and see if that helps, this will help us in debugging the matter.

btw, you can set your apache log level to a little more verbose level by changing the 'LogLevel' line in the httpd.conf to 'LogLevel debug'.

Chris

__________________
Chris Wells [clwells - at - nexcess.net]
Nexcess - Beyond Hosting
Dearborn, MI DC ● Southfield, MI DC
Wordpress Hosting, Magento Hosting & More!

  #5  
Old 09-07-2002, 01:02 PM
SentryHost SentryHost is offline
Junior Guru Wannabe
 
Join Date: Apr 2002
Posts: 39
I did what you suggested changing the perms did nothing, and changing the log level to debug did not provide anything new either.

  #6  
Old 09-08-2002, 01:53 AM
nexcess.net nexcess.net is offline
Junior Guru
 
Join Date: Oct 2001
Location: Ann Arbor, MI U.S.A.
Posts: 217
Mike,

Apache logs nothing about the request in the error log? Did you restart apache after making the change? With the loglevel I specified you should get at least some output in the logs regarding the failed request.

Chris

__________________
Chris Wells [clwells - at - nexcess.net]
Nexcess - Beyond Hosting
Dearborn, MI DC ● Southfield, MI DC
Wordpress Hosting, Magento Hosting & More!

  #7  
Old 09-08-2002, 05:53 PM
SentryHost SentryHost is offline
Junior Guru Wannabe
 
Join Date: Apr 2002
Posts: 39
It logs the request but that's it. Only helpful information is the return code 403 but I got that info by trying to hit the page.

  #8  
Old 09-08-2002, 05:57 PM
nexcess.net nexcess.net is offline
Junior Guru
 
Join Date: Oct 2001
Location: Ann Arbor, MI U.S.A.
Posts: 217
can you hit the page again and then paste the last 5 entires of both teh access and error logs in a new post.

Thanks,

Chirs

__________________
Chris Wells [clwells - at - nexcess.net]
Nexcess - Beyond Hosting
Dearborn, MI DC ● Southfield, MI DC
Wordpress Hosting, Magento Hosting & More!

  #9  
Old 09-09-2002, 12:32 AM
mind21_98 mind21_98 is offline
Web Hosting Master
 
Join Date: Dec 2000
Location: San Diego, CA
Posts: 1,571
Make sure your home directory is chmodded 711 and your public_html directory is 777. Usually anything else but that will cause problems.

__________________
-Mooneer
Thoughtbug Software: Hosting shouldn't require any thought.
Legitimate host? Support the Code of Ethical Conduct

Reply

Related posts from TheWhir.com
Title Type Date Posted
Nexcess Uncovers Magento Exploit That Allows Hackers to Skim Credit Card Data During Checkout Web Hosting News 2014-07-30 14:10:13
Microsoft Exchange Online Outage of Over 8 Hours Frustrates Customers Web Hosting News 2014-06-25 11:23:55
Lengthy Outages for Hacker News, FastHosts Web Hosting News 2014-01-06 09:56:36
Microsoft Azure Swap Deployment Feature Restored After Global Outage Web Hosting News 2013-10-31 11:16:53
Outbound Spam Causing Sleepless Nights? Blog 2013-05-13 09:52:21


Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes
Postbit Selector

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 Off
HTML code is Off

Forum Jump
Login:
Log in with your username and password
Username:
Password:



Forgot Password?
Advertisement:
Web Hosting News:



 

X

Welcome to WebHostingTalk.com

Create your username to jump into the discussion!

WebHostingTalk.com is the largest, most influentual web hosting community on the Internet. Join us by filling in the form below.


(4 digit year)

Already a member?