Still celebrating National IT Professionals Day with 3 months of free Premium Membership. Use Code ITDAY17

x
?
Solved

How do I include information about the error on the 500.shtml page on an apache server so I can see what the error is?

Posted on 2010-09-09
7
Medium Priority
?
393 Views
Last Modified: 2012-05-10
I have a cgi script that has vbeen running just fine on my client's apache server. I am a developer working on the scripts. today the script is erroring out with a standard error page and I can't tell why. I restored a formerly working backup copy, and it does not work. I then delteted everything except Print "Hello World", and that doesn't work!\

So, something is going on with the server, I guess, or I triggered some anti-malware code and all my scripts are disabled. I don't know.

What i would like is to know what the error actually is. When I access the error log in cPanel, I get nothing. Well, this is what I get:L

[Thu Sep 09 20:37:56 2010] [client 74.76.45.211] File does not exist: /home/healsrev/public_html/500.shtml, referer: http://www.healsreview.com/NewAuthTest.html

I think the file that didn't exist was 500.shtml. But now that I have created that file, I get that page when I run the script, as expected.

So, my question is: How do I get the error page to include the error information? Is this possible? What other error log could I look at?
0
Comment
Question by:jkurant
[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
  • 3
  • 3
7 Comments
 

Author Comment

by:jkurant
ID: 33643181
I now know that the file that didn't exist, as shown in the error log, was a file linked on the error page. with that fixed, the scripts still do not run and do not write anything to the log. i think my scripts are just disabled somehow, but i can't find anything in cPanel to change that might fix it.
0
 
LVL 84

Expert Comment

by:Dave Baldwin
ID: 33643606
I don't think it's possible.  I went looking all thru the Apache docs online today for another question and all they say about errors is that you can change the error message page.  I don't have a site with Cpanel right now so I can't check.  Are you able to set or check permissions for the 'cgi' directory from cpanel?
0
 
LVL 6

Expert Comment

by:DalHorinek
ID: 33645155
Check how your LogLevel is set, it should be at least

LogLevel error

If it won't do anything, try the debug one
http://httpd.apache.org/docs/2.2/mod/core.html#loglevel
0
Building an interactive eFuture classroom

Watch and learn how ATEN provided a total control system solution including seamless switching matrix switch, HDBaseT extenders, PDU, lighting control to build an interactive eFuture classroom.

 

Author Comment

by:jkurant
ID: 33646574
I was afraid it might not be possible, DaveBaldwin. The only access I have to the server is via cPanel.

In fact, I have found out what was the problem. The scrips lost their execute permissions and I had to have the server admins use "chmod 755" the scripts. The problem is that I am using Microsoft Visual Studio 2010 or even FrontPage to edit the website and these tools don't seem to know anything about file permissions. I cannot set the execute permission, as with chmod, from these tools.

Does anyone know of a good tool for editing files on an apache server with the ability to set the unix permissions? Really, all I need is to be able to set the permissions of the files on the server when they somehow get changed. I wonder if I could ftp into the server and change the permissions using WinFTP? (I am running Windows 7). Does anyone know how to set these permissions using cPanel or any other way?
0
 
LVL 84

Accepted Solution

by:
Dave Baldwin earned 2000 total points
ID: 33647867
I not surprised that VS and FP can't change permissions since you can't do that 'remotely' on Microsoft IIS.  I use CuteFTP for file transfer and setting permissions on Linux/Unix servers.  Some Control Panels have a File Manager or Web-based FTP in them.
0
 
LVL 84

Expert Comment

by:Dave Baldwin
ID: 33647896
Sorry, that should have been CoreFTP.  Filezilla is another popular FTP program.
0
 

Author Closing Comment

by:jkurant
ID: 33647904
Ah ha! So that's what cPanel means: Control Panel.  I will get CuteFTP and use that to change the permissions. Thanks.
0

Featured Post

Enroll in September's Course of the Month

This month’s featured course covers 16 hours of training in installation, management, and deployment of VMware vSphere virtualization environments. It's free for Premium Members, Team Accounts, and Qualified Experts!

Question has a verified solution.

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

As Wikipedia explains 'robots.txt' as -- the robot exclusion standard, also known as the Robots Exclusion Protocol or robots.txt protocol, is a convention to prevent cooperating web spiders and other web robots from accessing all or part of a websit…
Over the last year I have answered a couple of basic URL rewriting questions several times so I thought I might as well have a stab at: explaining the basics, providing a few useful links and consolidating some of the most common queries into a sing…
Do you want to know how to make a graph with Microsoft Access? First, create a query with the data for the chart. Then make a blank form and add a chart control. This video also shows how to change what data is displayed on the graph as well as form…
Want to learn how to record your desktop screen without having to use an outside camera. Click on this video and learn how to use the cool google extension called "Screencastify"! Step 1: Open a new google tab Step 2: Go to the left hand upper corn…
Suggested Courses

721 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