Solved

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

Posted on 2011-09-14
7
292 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
Forrester Webinar: xMatters Delivers 261% ROI

Guest speaker Dean Davison, Forrester Principal Consultant, explains how a Fortune 500 communication company using xMatters found these results: Achieved a 261% ROI, Experienced $753,280 in net present value benefits over 3 years and Reduced MTTR by 91% for tier 1 incidents.

 
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

Free learning courses: Active Directory Deep Dive

Get a firm grasp on your IT environment when you learn Active Directory best practices with Veeam! Watch all, or choose any amount, of this three-part webinar series to improve your skills. From the basics to virtualization and backup, we got you covered.

Question has a verified solution.

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

Suggested Solutions

Title # Comments Views Activity
parse a file and get data out 11 109
EXCHANGE. LINUX, SYMANTEC MESSAGING GATEWAY 2 51
Disabling security updates Ubuntu 3 46
Certificate Request CentOS/Apache 1 23
If you've heard about htaccess and it sounds like it does what you want, but you're not sure how it works... well, you're in the right place. Read on. Some Basics #1. It's a file and its filename is .htaccess (yes, with a dot in the front). #…
Fine Tune your automatic Updates for Ubuntu / Debian
Learn how to get help with Linux/Unix bash shell commands. Use help to read help documents for built in bash shell commands.: Use man to interface with the online reference manuals for shell commands.: Use man to search man pages for unknown command…
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.

733 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