Page 1 of 1

PHP Counter Causes Internal Server Error

Posted: Wed Oct 15, 2008 9:05 pm
by AV
Script URL:
Version of script:
Hosting company:
URL of phpinfo.php:
URL of session_test.php:
What terms did you try when SEARCHING for a solution:


Write your message below:

Hi, basically I have succesfully uploaded the counter.php file and another text file called index.txt. I have played around with all combinations of the permission settings however I still cannot get it to work.

when I run my page = http://www.gradapplicationadvice.com/co ... page=index
the following page displays:


Internal Server Error

The server encountered an internal error or misconfiguration and was unable to complete your request.

Please contact the server administrator, webmaster@gradapplicationadvice.com and inform them of the time the error occurred, and anything you might have done that may have caused the error.

More information about this error may be available in the server error log.

Additionally, a 404 Not Found error was encountered while trying to use an ErrorDocument to handle the request.
Apache/2.2.9 (Unix) mod_ssl/2.2.9 OpenSSL/0.9.8b mod_auth_passthrough/2.1 mod_bwlimited/1.4 FrontPage/5.0.2.2635 Server at www.gradapplicationadvice.com Port 80



Please can you help or give me anymore things I could try to sort this out?
Many thanks.

Posted: Thu Oct 16, 2008 6:06 am
by Klemen
Don't set any permissions to PHP files, leave them at default chmod (644 or rw-r--r--). Are you sure your server supports PHP? Post your phpinfo file and we'll work from there.

Posted: Thu Oct 16, 2008 10:47 am
by AV
Hi thanks for your reply.

I got really frustrated last night and have decided that following a database route to store hits would be more efficient especially if I have about 200 pages and lots of people visiting.

My server/host told me that there was something wrong with the code which probably means they don't support php!

Thanks ago for replying.

Posted: Thu Oct 16, 2008 5:47 pm
by Klemen
Sure, it's easy to blame the code even though it works fine for thousands of users :wink:

Posted: Mon Jan 26, 2009 3:57 am
by BriMercer
I'm getting the same error.

My host site has PHP support and permissions are correct. Any ideas?

Posted: Mon Jan 26, 2009 4:26 pm
by Klemen
Did you make any changes to the script?
Did you upload it in ASCII mode?
Have you tried uploading the script without making any changes (not even the settings)?

If you save this code as "test.php", upload it to your counter folder and open in your browser does it work or give an error?

Code: Select all

<?php

echo "Hello!";

?>
Upload the phpinfo file (viewtopic.php?t=79) to your server and post a link here.

Also post the URL of your script.