Natog
02-16-2006, 07:30 PM
Great forum, thanks!
I am trying to run a small script which reports my IP address (good for dynamic IP broadband). I am using Gateway IP Monitor to view this script and email the IP address. Program link here:
http://www.netikus.net/software/gatewayipmonitor/index.html
My problem is I cannot get a script to run, either .pl, .php, or .asp. The error I get is
"500 Server Error
A misconfiguration on the server caused a hiccup. Check the server logs, fix the problem, then try again. URL: http://www.leben.com/~mitch/gatewayipmonitor/showip.php"
The control panel error logs show:
[Thu Feb 16 20:24:33 2006] [error] [client 69.22.17.215] getpwnam: invalid username mitch [Thu Feb 16 20:24:33 2006] [error] exec of /home/lebencom/public_html/~mitch/gatewayipmonitor/showip.php failed [Thu Feb 16 20:24:33 2006] [error] [client 69.22.17.215] Premature end of script headers: /home/lebencom/public_html/~mitch/gatewayipmonitor/showip.php
Here is the actual script. I sent it to a friend of mine and it works on his web server. BTW I set permissions on the file to 755.
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<html>
<head>
<title>test</title>
</head>
<?php
print $HTTP_SERVER_VARS["REMOTE_ADDR"];
?>
</body>
</html>
I am trying to run a small script which reports my IP address (good for dynamic IP broadband). I am using Gateway IP Monitor to view this script and email the IP address. Program link here:
http://www.netikus.net/software/gatewayipmonitor/index.html
My problem is I cannot get a script to run, either .pl, .php, or .asp. The error I get is
"500 Server Error
A misconfiguration on the server caused a hiccup. Check the server logs, fix the problem, then try again. URL: http://www.leben.com/~mitch/gatewayipmonitor/showip.php"
The control panel error logs show:
[Thu Feb 16 20:24:33 2006] [error] [client 69.22.17.215] getpwnam: invalid username mitch [Thu Feb 16 20:24:33 2006] [error] exec of /home/lebencom/public_html/~mitch/gatewayipmonitor/showip.php failed [Thu Feb 16 20:24:33 2006] [error] [client 69.22.17.215] Premature end of script headers: /home/lebencom/public_html/~mitch/gatewayipmonitor/showip.php
Here is the actual script. I sent it to a friend of mine and it works on his web server. BTW I set permissions on the file to 755.
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<html>
<head>
<title>test</title>
</head>
<?php
print $HTTP_SERVER_VARS["REMOTE_ADDR"];
?>
</body>
</html>