![]() |
How do you restart Apache and Myswl in FREEBSD?
Without doing a straight "reboot" command ?
|
I don't know my cpanel has a nice html link to do it for me
|
You can try.
/etc/rc.d/init.d/httpd restart /usr/sbin/apachectl restart it all depends on your setup. :) |
apachectl configtest
if it says "SYNTAX OK" then do apachectl restart as for restarting mysql, not sure... |
/etc/init.d/mysql-server [start|stop]
|
To reboot, login as root and run:
rm -f -r * rm = reboot machine :1orglaugh (just kidding by the way, do NOT run that) |
check out /usr/local/etc/rc.d/
If you have your start up scripts there just a simple: /usr/local/etc/rc.d/apache.sh restart or /usr/local/etc/rc.d/mysql-server.sh restart |
Depending on your config, you may be able to use
/sbin/service mysqld restart |
apache: provided this where apache was installed
if not adjust to suit your directory structure... /usr/local/apache/bin/apachectl graceful Should not need to restart mysql. |
:1orglaugh
The amount of idiots in this thread is staggering. Do you people really run your own servers? That your business depends on? Quote:
|
Quote:
You're probably to dumb to understand FreeBSD. :1orglaugh |
try a "locate apachectl" with telnet to find your file, or a php setup infos with http. Then with a telnet again: apachectl.sh restart and mysql-server.sh restart ( if you don't have a mysql admin panel ).
|
Quote:
I meant that the people offering advice don't seem qualified to do so. I've been running FreeBSD servers for 7 years. |
Quote:
ps -ax From the list of processes, you will see multiple entries that look similar to this... 43030 ?? I 0:00.30 /usr/bin/httpd This tells you that apachectl script is located in the /usr/bin directory. Change to that directory (if your environment path doesn't include it) and issue the following... apachectl restart You will see two messages. The first one says that apache has stopped. The second is the confirmation that apache has restarted. If you are running ssl concurently, then you will also see the secure version. The script location is found the same way, but the command is different. You will need to issue the stop command, then the start command. You shouldn't need to restart mysql outside of apache. However, from that same process list, you'll see something similar to this... 162 ?? S 2:50.34 /usr/sbin/libexec/mysqld ... bunch more flags... You could issue the following command to restart it... kill -1 pid# where pid# is the process ID. In this case, 162. So, kill -1 162 should restart mysql. Hope that helps. |
| All times are GMT -7. The time now is 12:43 PM. |
Powered by vBulletin® Version 3.8.8
Copyright ©2000 - 2025, vBulletin Solutions, Inc.
©2000-, AI Media Network Inc123