|
|
|||||||||
|
|||||||||
| |||||||||
|
|
|
| |||||||||
![]() |
|
|
«
Previous Thread
|
Next Thread
»
|
Thread Tools | Search this Thread | Rate Thread | Display Modes |
|
#1
|
|||
|
|||
|
apachectl script, not there by default?
I just installed RH 7.1 on a box and then added the following RPM:
apache 1.3.19-5.i386.rpm it seemed to install things a little differently than on the 6.2 server we bought from VA Linux a ways back... ie, main differences being that there is no /usr/local/apache path on the 7.1 folder and everything seems to be centered around httpd as opposed to apache or apachectl. Anyways, I have apacheconf running in gnome and all seems well, except i don't have my apachectl script so i can't find a good way to start | restart | stop the server (I've heard doing httpd stop | start is bad). what can i do to get this script in there? incidentally, i'm not opposed to reinstalling the whole RPM or another apache RPM that will give me what i consider to be the standard /usr/local/apache paths and apachectl all by default. thanks for your help! |
|
#2
|
|||
|
|||
|
When it comes to installing Apache, RPM is a piece of **** that doesn't give you flexibility or configurability.
>> except i don't have my apachectl script Because Redhat invented their own start/stop script at /etc/rc.d/init.d/httpd or equivalent. >> I've heard doing httpd stop | start is bad Yes and you probably heard it from me. When you install Apache via RPM, the directory where Apache binary (httpd) resides will be in your $PATH. When you run httpd stop without the path, the httpd daemon will be invoked instead of the startup script at /etc/rc.d/init.d/httpd. If Redhat is still using the same startup script name as httpd, what a shame. Keep in mind, apachectl is just a simple script (written by my former co-worker). If you perfer it, just do a search in google.com and replace your Redhat default one. If you wish to stick with the default one, just create a symlink from your /etc/rc.d/init.d/httpd to another location like /usr/local/sbin (make sure it's in your $PATH). |
|
#3
|
|||
|
|||
|
Hey,
Thanks for the info. I'm pretty uncomfortably with this new configuration of how RH dumped all their stuff all over the place... if I remove it, where's a good place to get one of those tar.gz archives that extracts an installable binary (still working on Linux lingo, forgive me if that didn't make sense)? |
|
#4
|
|||
|
|||
|
>> of how RH dumped all their stuff all over the place
Then it's time to look for RH's alternative such as Slackware or even ditch Linux altogether and migrate to BSD like FreeBSD. Read the entire thread of Differences in the *BSDs in BSD forum to find out more. >> place to get one of those tar.gz Go to http://httpd.apache.org/dist/ >> http://httpd.apache.org/dist/ Then go freshmeat. Those tar.gz are not installable but compilable. As I said, precompiled binary sucks and you will lose configurability such as where to install things with your own preference. The install paths are basically based on an individual perference (the binary maker). |
|
#5
|
||||
|
||||
|
re:apachectl
If you want to keep redhat 7.x, there are two choices:
1. Compile apache, php and mysql from source. This will need some work but it can be done(I did). 2. Go to amazon and buy the book "Redhat server 7" by Kabir which explains evrything about redhat 7.x and how to set up server with apache the rpm way. I do agree with the other post that rpms messed up a lot of things when it comes to setup server. For playing desktop, games and for beginners, however, rpms do make learning easier. Last edited by blackbird : November 8th, 2001 at 10:44 AM. |
![]() |
| Viewing: Dev Shed Forums > System Administration > Apache Development > apachectl script, not there by default? |
| Thread Tools | Search this Thread |
| Display Modes | Rate This Thread |
|
|
|
|