Solved

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

Posted on 2011-09-14
7
287 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
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
How to run any project with ease

Manage projects of all sizes how you want. Great for personal to-do lists, project milestones, team priorities and launch plans.
- Combine task lists, docs, spreadsheets, and chat in one
- View and edit from mobile/offline
- Cut down on emails

 
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

Top 6 Sources for Identifying Threat Actor TTPs

Understanding your enemy is essential. These six sources will help you identify the most popular threat actor tactics, techniques, and procedures (TTPs).

Join & Write a Comment

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 …
I. Introduction There's an interesting discussion going on now in an Experts Exchange Group — Attachments with no extension (http://www.experts-exchange.com/discussions/210281/Attachments-with-no-extension.html). This reminded me of questions tha…
Learn several ways to interact with files and get file information from the bash shell. ls lists the contents of a directory: Using the -a flag displays hidden files: Using the -l flag formats the output in a long list: The file command gives us mor…
This demo shows you how to set up the containerized NetScaler CPX with NetScaler Management and Analytics System in a non-routable Mesos/Marathon environment for use with Micro-Services applications.

744 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

Need Help in Real-Time?

Connect with top rated Experts

12 Experts available now in Live!

Get 1:1 Help Now