Script URL: http://www.sckyudo.com/phpgcount/graphcount.php
Version of script: 1.0
Hosting company: lunarpages
URL of phpinfo.php: http://www.sckyudo.com/phpgcount/phpinfo.php
URL of session_test.php:
What terms did you try when SEARCHING for a solution:
Read through many of the Other forum
Write your message below:
I believe I've followed the steps correctly, but I am not seeing the counter at the bottom of my test page. (http://www.sckyudo.com/newindex.htm)
I ran the pgpinfo script and it shows the correct table with php version 4.4.4.
I ran the graphcount script directly http://www.sckyudo.com/phpgcount/graphc ... ?page=test (also tried page=newindex) but received the following error:
------
Internal Server Error
The server encountered an internal error or misconfiguration and was unable to complete your request.
Please contact the server administrator, webmaster@sckyudo.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.
------
I've just been asked to maintain this site and haven't done much with php scripts. Any help would be much appreciated.
Thanks,
jlitzie
Unable to get the hit counter working
The 500 errors are very rare with PHP scripts, must be a server setting (they're a daily thing for the Perl programmer though).
The problem is these errors are not descriptive at all, a lot of things can be wrong and I can't really be sure which one. Since the phpinfo works fine this means PHP indeed works on the server.
Check this:
1. do you have a folder called "logs" in your "phpgcount" folder?
2. is the "logs" folder writable (CHMOD to 777 (rwxrwxrwx))?
3. see if any error files were created in the "phpgcount" folder. Also if your host has some kind of control panel see if it allows you to see anything like "errors" or "error log", might be more details there.
The problem is these errors are not descriptive at all, a lot of things can be wrong and I can't really be sure which one. Since the phpinfo works fine this means PHP indeed works on the server.
Check this:
1. do you have a folder called "logs" in your "phpgcount" folder?
2. is the "logs" folder writable (CHMOD to 777 (rwxrwxrwx))?
3. see if any error files were created in the "phpgcount" folder. Also if your host has some kind of control panel see if it allows you to see anything like "errors" or "error log", might be more details there.
Klemen, creator of HESK and PHPJunkyardWas this helpful? You can buy me a drink here 
You should follow me on Twitter here
Help desk software | Cloud help desk | Guestbook | Link manager | Click counter | more PHP Scripts ...
Also browse for php hosting companies, read php books, find php resources and use webmaster tools


Help desk software | Cloud help desk | Guestbook | Link manager | Click counter | more PHP Scripts ...
Also browse for php hosting companies, read php books, find php resources and use webmaster tools
Klemin,
Thanks for the reply.
Yes, there is a logs directory in phpgcount and it's 777. I'm a developer on a unix box so I understand that concept:>)
-rwxrwxrwx 1 sckyudo2 sckyudo2 3854 Sep 16 13:11 graphcount.php
drwxrwxrwx 2 sckyudo2 sckyudo2 4096 Sep 16 14:00 logs
-rw-r--r-- 1 sckyudo2 sckyudo2 110 Sep 16 14:14 phpinfo.php
drwxr-xr-x 16 sckyudo2 sckyudo2 4096 Sep 16 12:38 styles
There is no log file in the logs directory
Following your suggestion on host logs, I logged into the control panel and found these after attempting the test page again. The entries are in reverse order, the script header entry is first.
[Tue Sep 18 14:32:51 2007] [error] [client 71.12.221.32] File does not exist: /home/sckyudo2/public_html/500.shtml
[Tue Sep 18 14:32:51 2007] [error] [client 71.12.221.32] Premature end of script headers: /home/sckyudo2/public_html/phpgcount/graphcount.php
Hopefully that might give you an idea of what is happening.
Thanks,
Jim
Thanks for the reply.
Yes, there is a logs directory in phpgcount and it's 777. I'm a developer on a unix box so I understand that concept:>)
-rwxrwxrwx 1 sckyudo2 sckyudo2 3854 Sep 16 13:11 graphcount.php
drwxrwxrwx 2 sckyudo2 sckyudo2 4096 Sep 16 14:00 logs
-rw-r--r-- 1 sckyudo2 sckyudo2 110 Sep 16 14:14 phpinfo.php
drwxr-xr-x 16 sckyudo2 sckyudo2 4096 Sep 16 12:38 styles
There is no log file in the logs directory
Following your suggestion on host logs, I logged into the control panel and found these after attempting the test page again. The entries are in reverse order, the script header entry is first.
[Tue Sep 18 14:32:51 2007] [error] [client 71.12.221.32] File does not exist: /home/sckyudo2/public_html/500.shtml
[Tue Sep 18 14:32:51 2007] [error] [client 71.12.221.32] Premature end of script headers: /home/sckyudo2/public_html/phpgcount/graphcount.php
Hopefully that might give you an idea of what is happening.
Thanks,
Jim
Try CHMOD-ing graphcount.php the same as you have phpinfo.php (-rw-r--r--). Or even better - delete graphcount.php and upload it again, make 100% sure you are transferring in ASCII. Once uploaded don't change CHMOD of this file, leave it as the server sets it.
Klemen, creator of HESK and PHPJunkyardWas this helpful? You can buy me a drink here 
You should follow me on Twitter here
Help desk software | Cloud help desk | Guestbook | Link manager | Click counter | more PHP Scripts ...
Also browse for php hosting companies, read php books, find php resources and use webmaster tools


Help desk software | Cloud help desk | Guestbook | Link manager | Click counter | more PHP Scripts ...
Also browse for php hosting companies, read php books, find php resources and use webmaster tools