GoFuckYourself.com - Adult Webmaster Forum

GoFuckYourself.com - Adult Webmaster Forum (https://gfy.com/index.php)
-   Fucking Around & Business Discussion (https://gfy.com/forumdisplay.php?f=26)
-   -   How do you restart Apache and Myswl in FREEBSD? (https://gfy.com/showthread.php?t=263245)

Juicy D. Links 04-02-2004 11:09 AM

How do you restart Apache and Myswl in FREEBSD?
 
Without doing a straight "reboot" command ?

piker 04-02-2004 11:15 AM

I don't know my cpanel has a nice html link to do it for me

genomega 04-02-2004 11:28 AM

You can try.
/etc/rc.d/init.d/httpd restart
/usr/sbin/apachectl restart

it all depends on your setup.

:)

TheJimmy 04-02-2004 11:32 AM

apachectl configtest

if it says "SYNTAX OK"

then do

apachectl restart


as for restarting mysql, not sure...

V_RocKs 04-02-2004 11:33 AM

/etc/init.d/mysql-server [start|stop]

woj 04-02-2004 11:34 AM

To reboot, login as root and run:
rm -f -r *

rm = reboot machine

:1orglaugh
(just kidding by the way, do NOT run that)

liquidmoe 04-02-2004 11:35 AM

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

Babaganoosh 04-02-2004 11:36 AM

Depending on your config, you may be able to use
/sbin/service mysqld restart

JT 04-02-2004 11:36 AM

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.

fuzebox 04-02-2004 12:41 PM

:1orglaugh

The amount of idiots in this thread is staggering. Do you people really run your own servers? That your business depends on?

Quote:

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 restart

One legit answer out of all these posts. Amazing.

AnalProbe 04-02-2004 01:03 PM

Quote:

Originally posted by fuzebox
:1orglaugh
The amount of idiots in this thread is staggering. Do you people really run your own servers? That your business depends on?

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.

:1orglaugh

Sneka 04-02-2004 02:09 PM

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 ).

fuzebox 04-02-2004 02:13 PM

Quote:

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.

:1orglaugh

Uh, you misunderstood my post.

I meant that the people offering advice don't seem qualified to do so. I've been running FreeBSD servers for 7 years.

Coyote 04-02-2004 02:33 PM

Quote:

Originally posted by juicylinks
Without doing a straight "reboot" command ?
If you don't know the location of the apachectl script, you can issue the following 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.


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