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
386 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
  • 3
  • 3
7 Comments
 

Author Comment

by:jkurant
Comment Utility
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 82

Expert Comment

by:Dave Baldwin
Comment Utility
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
Comment Utility
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
How your wiki can always stay up-to-date

Quip doubles as a “living” wiki and a project management tool that evolves with your organization. As you finish projects in Quip, the work remains, easily accessible to all team members, new and old.
- Increase transparency
- Onboard new hires faster
- Access from mobile/offline

 

Author Comment

by:jkurant
Comment Utility
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 82

Accepted Solution

by:
Dave Baldwin earned 500 total points
Comment Utility
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 82

Expert Comment

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

Author Closing Comment

by:jkurant
Comment Utility
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

What is SQL Server and how does it work?

The purpose of this paper is to provide you background on SQL Server. It’s your self-study guide for learning fundamentals. It includes both the history of SQL and its technical basics. Concepts and definitions will form the solid foundation of your future DBA expertise.

Join & Write a Comment

If you are running a LAMP infrastructure, this little code snippet is very helpful if you are serving lots of HTML, JavaScript and CSS-related information. The mod_deflate module, which is part of the Apache 2.2 application, provides the DEFLATE…
It is possible to boost certain documents at query time in Solr. Query time boosting can be a powerful resource for finding the most relevant and "best" content. Of course the more information you index, the more fields you will be able to use for y…
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.
When you create an app prototype with Adobe XD, you can insert system screens -- sharing or Control Center, for example -- with just a few clicks. This video shows you how. You can take the full course on Experts Exchange at http://bit.ly/XDcourse.

763 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

9 Experts available now in Live!

Get 1:1 Help Now