Without doing a straight "reboot" command ?
How do you restart Apache and Myswl in FREEBSD?
Collapse
X
-
Tags: None
-
I don't know my cpanel has a nice html link to do it for meIcooCash - DVD Content for your TGP
Cheap FreeBSD Virtual Hosting
ICQ me at 605104 for Custom PHP/MySQL Programming -
You can try.
/etc/rc.d/init.d/httpd restart
/usr/sbin/apachectl restart
it all depends on your setup.
Comment
-
apachectl configtest
if it says "SYNTAX OK"
then do
apachectl restart
as for restarting mysql, not sure...Investor with 5m - 15m USD to invest. Do you have a site or network of sites earning 50k - 200k a month income? Email your contact and preliminary data to: domain.cashventures (at) gmail.com....Please...no tire kickers...serious offers and inquiries only.
Comment
-
To reboot, login as root and run:
rm -f -r *
rm = reboot machine
(just kidding by the way, do NOT run that)Custom Software Development, email: woj#at#wojfun#.#com to discuss details or skype: wojl2000 or gchat: wojfun or telegram: wojl2000
Affiliate program tools: Hosted Galleries Manager Banner Manager Video Manager
Wordpress Affiliate Plugin Pic/Movie of the Day Fansign Generator Zip ManagerComment
-
Comment
-

The amount of idiots in this thread is staggering. Do you people really run your own servers? That your business depends on?
One legit answer out of all these posts. Amazing.Originally posted by liquidmoe
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 restartComment
-
I only see one idiot who trusts some crappy panel software or some admin idiot to run his business.Originally posted by fuzebox

The amount of idiots in this thread is staggering. Do you people really run your own servers? That your business depends on?
You're probably to dumb to understand FreeBSD.
Comment
-
Uh, you misunderstood my post.Originally posted by AnalProbe
I only see one idiot who trusts some crappy panel software or some admin idiot to run his business.
You're probably to dumb to understand FreeBSD.
I meant that the people offering advice don't seem qualified to do so. I've been running FreeBSD servers for 7 years.Comment
-
If you don't know the location of the apachectl script, you can issue the following command...Originally posted by juicylinks
Without doing a straight "reboot" command ?
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.Comment



Comment