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_cont roller.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??
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
[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??
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"
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
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
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
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
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
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
ASKER
thanks all for investing time and energy