
|
View Full Version : How-to Restart server using SSH
Aboul_YouseF 02-22-2004, 04:25 AM Hi guyz,
lately and after upgrading my Cpanel/WHM to the latest version, some files got corrupted and WHM and Cpanel wont respond now, so i thought i could restart it, and since WHM isnt working, i want someone to help me restart it using the SSH, what is the restart command?
Thanks in advance.
the command is simply restart
zagadka 02-22-2004, 05:28 AM reboot;)
thedavid 02-22-2004, 05:42 AM Or if you like typing...
'shutdown now -r'
:)
But that might not fix it - what error is it giving to you?
Paul-UKWSD 02-22-2004, 06:22 AM did you try restarting cpanel?
dsoft@cal2 02-22-2004, 06:34 AM simply execute the command 'reboot'. If you type 'shutdown now -r' it will shutdown but not restart. In that case you have to give a hard boot (physically boot)
thedavid 02-22-2004, 06:36 AM Originally posted by dsoft@cal2
simply execute the command 'reboot'. If you type 'shutdown now -r' it will shutdown but not restart. In that case you have to give a hard boot (physically boot)
Incorrect - from 'man shutdown' here are the options pertaining to this:
-r Reboot after shutdown.
-h Halt after shutdown.
-David
Aboul_YouseF 02-22-2004, 12:15 PM This is the Error im getting,
Internal Server Error
The server encountered an internal error or misconfiguration and was unable to complete your request.
Please contact the server administrator, webmaster@uaeturbo.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 still didnt try restarting, cause i dont really think that it would solve the issue, and since its the only thing i could try at the moment.
W4 Hosting 02-22-2004, 12:27 PM I think your apache not working..
check httpd.conf, are you trying install any programs?
If you try to install any programs fail, try...
If you have cpanel u can use "Configuration File Rollback" ----> rollback files.
Hope it help...
try SSH to up 2 date for cpanel
/scripts/upcp
-john
Aboul_YouseF 02-22-2004, 01:37 PM I dont think the apache isnt working, since all the webpages load perfectly, as well as the FTP, but when it comes to loging in the Cpanel or WHM i get the error. i updated my cPanel yesterday before it stopped working by about 3 hours, it was working fine for 3 hours from the update, i dont know what seems to be the problem.
flashwebhost 02-22-2004, 01:53 PM Use
http://uaeturbo.com:2082
To access the cpanel
http://uaeturbo.com:2086
For WHM.
Seems the /whm and /cpanel entry is missing.
Aboul_YouseF 02-22-2004, 02:28 PM yea! exactly it is working, i never thought of trying that out, i thought it would be stupid of me to try such a thing, but it does work, at least ill use that as a tempoary way to access my WHM/cPanel.
Thanks A lot guyz, you have been very helpful :D .....
flashwebhost 02-22-2004, 03:34 PM In your /etc/httpd/conf/httpd.conf
check following lines are present, if not add it and restart httpd
ScriptAlias /cpanel /usr/local/cpanel/base/redirect.cgi
ScriptAlias /whm /usr/local/cpanel/base/whmredirect.cgi
ScriptAlias /securewhm /usr/local/cpanel/base/swhmredirect.cgi
ScriptAlias /webmail /usr/local/cpanel/base/wredirect.cgi
Aboul_YouseF 02-22-2004, 04:15 PM ooh no, this time and after adding the lines and restarting the Apache, it never came back online :S ... i reverted to the last Apache file, cause my latest apache seems to be missing a LOT of lines.
|