Welcome to the GoFuckYourself.com - Adult Webmaster Forum forums.

You are currently viewing our boards as a guest which gives you limited access to view most discussions and access our other features. By joining our free community you will have access to post topics, communicate privately with other members (PM), respond to polls, upload content and access many other special features. Registration is fast, simple and absolutely free so please, join our community today!

If you have any problems with the registration process or your account login, please contact us.

Post New Thread Reply

Register GFY Rules Calendar Mark Forums Read
Go Back   GoFuckYourself.com - Adult Webmaster Forum > >
Discuss what's fucking going on, and which programs are best and worst. One-time "program" announcements from "established" webmasters are allowed.

 
Thread Tools
Old 04-02-2004, 11:09 AM   #1
Juicy D. Links
So Fucking Banned
 
Industry Role:
Join Date: Apr 2001
Location: N.Y. -Long Island --
Posts: 122,992
How do you restart Apache and Myswl in FREEBSD?

Without doing a straight "reboot" command ?
Juicy D. Links is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote
Old 04-02-2004, 11:15 AM   #2
piker
Confirmed User
 
Join Date: Feb 2004
Posts: 597
:tongue

I don't know my cpanel has a nice html link to do it for me
__________________
IcooCash - DVD Content for your TGP
Cheap FreeBSD Virtual Hosting
ICQ me at 605104 for Custom PHP/MySQL Programming
piker is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote
Old 04-02-2004, 11:28 AM   #3
genomega
Confirmed User
 
Join Date: Feb 2002
Location: NW Florida
Posts: 1,190
You can try.
/etc/rc.d/init.d/httpd restart
/usr/sbin/apachectl restart

it all depends on your setup.

genomega is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote
Old 04-02-2004, 11:32 AM   #4
TheJimmy
ICQ- five seven 0 2 5 5 0
 
Join Date: Jan 2001
Posts: 10,747
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.
TheJimmy is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote
Old 04-02-2004, 11:33 AM   #5
V_RocKs
Damn Right I Kiss Ass!
 
Industry Role:
Join Date: Dec 2003
Location: Cowtown, USA
Posts: 32,422
/etc/init.d/mysql-server [start|stop]

Last edited by V_RocKs; 04-02-2004 at 11:36 AM..
V_RocKs is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote
Old 04-02-2004, 11:34 AM   #6
woj
<&(©¿©)&>
 
woj's Avatar
 
Industry Role:
Join Date: Jul 2002
Location: Chicago
Posts: 47,882
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 Manager
woj is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote
Old 04-02-2004, 11:35 AM   #7
liquidmoe
Confirmed User
 
Join Date: Mar 2002
Location: NY
Posts: 4,994
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
__________________

Take Luck!
liquidmoe is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote
Old 04-02-2004, 11:36 AM   #8
Babaganoosh
♥♥♥ Likes Hugs ♥♥♥
 
Babaganoosh's Avatar
 
Industry Role:
Join Date: Nov 2001
Location: /home
Posts: 15,841
Depending on your config, you may be able to use
/sbin/service mysqld restart
__________________
I like pie.
Babaganoosh is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote
Old 04-02-2004, 11:36 AM   #9
JT
My mother was an EMU
 
JT's Avatar
 
Join Date: Jan 1999
Location: In a Van Down by the River
Posts: 202
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.
JT is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote
Old 04-02-2004, 12:41 PM   #10
fuzebox
making it rain
 
fuzebox's Avatar
 
Industry Role:
Join Date: Oct 2003
Location: seattle
Posts: 22,141


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.
fuzebox is online now   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote
Old 04-02-2004, 01:03 PM   #11
AnalProbe
pain in the Ass
 
AnalProbe's Avatar
 
Industry Role:
Join Date: Jan 2004
Posts: 3,727
Quote:
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?
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.

AnalProbe is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote
Old 04-02-2004, 02:09 PM   #12
Sneka
Confirmed User
 
Join Date: Jan 2003
Posts: 413
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 ).
Sneka is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote
Old 04-02-2004, 02:13 PM   #13
fuzebox
making it rain
 
fuzebox's Avatar
 
Industry Role:
Join Date: Oct 2003
Location: seattle
Posts: 22,141
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.

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.
fuzebox is online now   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote
Old 04-02-2004, 02:33 PM   #14
Coyote
Drinker of Scotch
 
Industry Role:
Join Date: May 2003
Location: Texas
Posts: 242
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.
Coyote is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote
Post New Thread Reply
Go Back   GoFuckYourself.com - Adult Webmaster Forum > >

Bookmarks
Thread Tools



Advertising inquiries - marketing at gfy dot com

Contact Admin - Advertise - GFY Rules - Top

©2000-, AI Media Network Inc



Powered by vBulletin
Copyright © 2000- Jelsoft Enterprises Limited.