?
Solved

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

Posted on 2011-09-14
7
Medium Priority
?
294 Views
Last Modified: 2012-05-12
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??
0
Comment
Question by:pvinodp
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
7 Comments
 
LVL 5

Expert Comment

by:Paul Smart
ID: 36535725
Permission problem Ii would imagine.
0
 
LVL 15

Expert Comment

by:Insoftservice
ID: 36535732
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"
0
 
LVL 15

Expert Comment

by:Insoftservice
ID: 36535759
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
0
Technology Partners: We Want Your Opinion!

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

 
LVL 3

Expert Comment

by:maxchow
ID: 36536340
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
0
 
LVL 13

Expert Comment

by:LinuxGuru
ID: 36544569
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
0
 

Accepted Solution

by:
pvinodp earned 0 total points
ID: 36813008
The selinux was set as enforcing .. this was the cause.
0
 

Author Closing Comment

by:pvinodp
ID: 36902322
thanks all for investing time and energy
0

Featured Post

VIDEO: THE CONCERTO CLOUD FOR HEALTHCARE

Modern healthcare requires a modern cloud. View this brief video to understand how the Concerto Cloud for Healthcare can help your organization.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Linux users are sometimes dumbfounded by the severe lack of documentation on a topic. Sometimes, the documentation is copious, but other times, you end up with some obscure "it varies depending on your distribution" over and over when searching for …
There are many situations when we need to display the data in sorted order. For example: Student details by name or by rank or by total marks etc. If you are working on data driven based projects then you will use sorting techniques very frequently.…
Learn how to navigate the file tree with the shell. Use pwd to print the current working directory: Use ls to list a directory's contents: Use cd to change to a new directory: Use wildcards instead of typing out long directory names: Use ../ to move…
How to Install VMware Tools in Red Hat Enterprise Linux 6.4 (RHEL 6.4) Step-by-Step Tutorial
Suggested Courses

771 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question