Portal Home > Knowledgebase > Articles Database > cpanel, apache, and includes


cpanel, apache, and includes




Posted by jseymour, 11-29-2008, 10:12 AM
cpanel, apache, and includes I have a problem I am tracing on a single virtual host on a dedicated server running whm/cpanel and apache 2.2.9. I am tracking down a 500 internal server error on a group of cgi scripts (that works on another virtual host on the same server). Apache was installed with easy apache included with whm. My problem has been narrowed to the cgi-bin itself. To test I created a simple hello world script that runs in the web directory of this certain virtual host, but gives a 500 error when run in the cgi-bin. Looking at the configs for apache, boy is this a mess, I have a group of configs in /etc/httpd/conf and another group in /usr/local/apache/conf. When I restarted apache it seems to be reading the /usr/local/apache ones (even though they both look the same in /etc/httpd also. On the httpd.conf file, the virtual hosts are listed there with all the paths I need. But above each one it gives a warning: DO NOT EDIT. AUTOMATICALLY GENERATED. IF YOU NEED TO MAKE A CHANGE PLEASE USE THE INCLUDE FILES. The include is listed on the virtual host as: Include "/usr/local/apache/conf/userdata/domain/domain.com/*.conf" on the one that works. And in the following format: Include "/usr/local/apache/conf/userdata/std/2/domain2/domain2.com/*.conf" on the one that doesn't. The funny thing is that /usr/local/apache/conf/userdata does not exist. This makes me truly appreciate my DirectAdmin server. Anyone have ideas where to look for adjusting apache server settings on this type of setup? And is this complicated setup due to easy apache or cPanel itself? __________________WebServerMastersProactive Support for Sites and ServersOffsite Backup/Support Subscriptions

Posted by Steve_Arm, 11-29-2008, 10:17 AM
You'll just have to find the error_log file for the specific domain. The error will be there. __________________ PHP Code Repository | Worst Wide Web, now PR2

Posted by jseymour, 11-29-2008, 11:29 AM
Thanks, Been going through error logs. That is how I determined what I reported so far. But it is fixed now. For some odd reason the suexec ownerships and permissions got screwed up. __________________WebServerMastersProactive Support for Sites and ServersOffsite Backup/Support Subscriptions



Was this answer helpful?

Add to Favourites Add to Favourites    Print this Article Print this Article

Also Read
Help needed (Views: 629)
citynethost down (Views: 710)
How to open Port 43? (Views: 657)
your experiences (Views: 1005)

Language: