Link to home
Start Free TrialLog in
Avatar of pvinodp
pvinodp

asked on

getting "500 Internal server error" on a particular system only

i execute a url : http://IP-ADDR/myApp on the browser.
I get the error on this system only.
# ) tail /var/log/httpd/error_log:
[Wed Sep 14 11:52:38 2011] [client 172.28.0.252] (13)Permission denied: exec of '/usr/lib/ipa/xms-web/html/page_controller.pl' failed
[Wed Sep 14 11:52:38 2011] [client 172.28.0.252] Premature end of script headers: page_controller.pl

But this url works fine for servers installed on other computers.

#) output of apachectl status:
Not Found
The requested URL /server-status was not found on this server.
--------------------------------------------------------------------------
Apache/2.2.3 (CentOS) Server at localhost Port 80

#) The normal url execution works fine http://IP-ADDR/, this shows the normal apache 2 test page.
However i get error in error_logs as
[Wed Sep 14 12:01:46 2011] [client 172.28.0.252] Directory index forbidden by Options directive: /var/www/html/

Is there any problem with teh apache installation itself??
Avatar of Paul Smart
Paul Smart
Flag of United Kingdom of Great Britain and Northern Ireland image

Permission problem Ii would imagine.
hi provide 755 rights to the page

chmod -R 755 /usr/lib/ipa/xms-web/html/*

and check the owner of the file and change the owner by using "chown"
even if the problem does not get solved
do this part too in ur conf file
http://www.stabeler.com/blog/515/AllowOverride_in_Virtual_Host_using_Directory_Block/
http://www.unix-girl.com/geeknotes/apache_virtual_host_conf.html
it would be more than enough
please note to provide right path
Avatar of maxchow
maxchow

Is your system a redhat or Centos? will be selinux problem, try to setenforce 0 and restart httpd to check, if yes, there are 2 solutions
Avatar of Linux Guru
Normally this can be caused by several things:

1. Make sure to correct the permission / ownership of page_controller.pl
2. You have a .htaccess file in the web root directory which has a rule in it to prevent directory index browsing.
3. Your Apache configuration file (httpd.conf) has rules set to disallow directory index browsing.
4. You have no index.html file in that directory and thus it thinks it needs to attempt directory index browsing.
5. Your server doesn't have a rule to use index.php if no index.html file is found
ASKER CERTIFIED SOLUTION
Avatar of pvinodp
pvinodp

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
Avatar of pvinodp

ASKER

thanks all for investing time and energy