PDA

View Full Version : public server status?


Canon
02-22-2006, 05:24 PM
Does anyone know any code that would display the server status on a webpage, like that of cpanel? (checking html, mysql, mainly)

thanks :)

2notch
02-22-2006, 07:15 PM
Here's a simple one:

PHP server status checker
http://www.hotscripts.com/Detailed/40007.html

I tried it on my bluehost site and it worked ok. The script is a couple of years old so you may want to protect it with .htaccess.

Canon
02-22-2006, 08:23 PM
hrm, you said it worked ok? I can't seem to get it to work...

The only thing i changed was this

$hostname = "www.keshavjee.net";

then i uploadd all the files.

I even tried adding http:// and removing www.

hrmm..

2notch
02-22-2006, 08:30 PM
You may have to chmod 755 the index.php and image.php files.

Canon
02-22-2006, 08:44 PM
changed that, still does not work :(

2notch
02-22-2006, 09:00 PM
Sorry, I think I pointed you to the wrong script!

Get this one:
http://www.danielsgrp.net/status.zip

Canon
02-22-2006, 09:13 PM
very strange, does not work at all. even if i dont modify the files by placing in my domain name.

hrmm..

2notch
02-22-2006, 09:23 PM
Did you upload in ASCII?

Here's the very same script on my site:
http://danielsgrp.net/stat/

Anyway, here's the link to a ton of them at Hotscripts:
http://www.hotscripts.com/PHP/Scripts_and_Programs/Server_Management/index.html

Some of them are for server admins, so they wouldn't work for us since we do not have root access to the server.

Canon
02-22-2006, 09:46 PM
oh my, i think im going to go crazy! no idea why it won't work!

http://www.keshavjee.net/status/

the other scripts ive seen dont have exactly what I need, but i will keep looking.

thanks for the hlep, if you / anyone else has any insight / suggestions?

JoeP
02-23-2006, 08:04 AM
The script is a couple of years old so you may want to protect it with .htaccess.

Please forgive my ignorance, but what do you mean by "protect it with .htaccess"?
What needs protection?
How do you use .htaccess to protect it?
Will using the cpanel index manager do the same thing?

Thanks,
joe

Canon
02-23-2006, 09:40 AM
yea, i think the cpanel protect directory thingy is teh same thing as .htaccess.

That cpanel thing makes it alot easier for newbs like me :P