Click to See Complete Forum and Search --> : Apache Server Help


linux1272
01-02-2001, 10:31 PM
Hello out there.

I downloaded apache_1.3.14 today.
I been having trouble all day trying to understand what the hell i'm doing wrong.

well here's what I did

$ ./configure --prefix=/usr/local/apache
$ make
$ make install
$ usr/locale/apache/bin/apachectl start

when I do the command above it works. How do I make the apache server start up when i reboot the system.

someone told me that I should do this command

$chkconfig --add apachectl

when i do this i get a error. Can someone tell me how to make my apache server start up on boot up.

Thanks.

switch

------------------
Good evening Mr. Gates,
I'll be your server today

africanpekin
01-03-2001, 02:40 AM
Originally posted by linux1272:
Hello out there.

I downloaded apache_1.3.14 today.
I been having trouble all day trying to understand what the hell i'm doing wrong.

well here's what I did

$ ./configure --prefix=/usr/local/apache
$ make
$ make install
$ usr/locale/apache/bin/apachectl start

when I do the command above it works. How do I make the apache server start up when i reboot the system.

someone told me that I should do this command

$chkconfig --add apachectl

when i do this i get a error. Can someone tell me how to make my apache server start up on boot up.

Thanks.

switch



Locate your /etc/rc.d/rc.local file and put the httpd command that you would use to start it when you are at the command line.

Something like: httpd -f config-file. config-file is the pathname of your httpd.conf file.

In your case, you would put:

httpd -f usr/locale/apache/bin/apachectl start

I hope that makes sense http://www.linuxnewbie.org/ubb/smile.gif.

Post and let us know how it goes.

africanpekin

[This message has been edited by africanpekin (edited 03 January 2001).]

[This message has been edited by africanpekin (edited 03 January 2001).]

0be1
01-03-2001, 08:19 AM
Depending on what kernel version you are using, and if you semi-rely on a GUI (X) then cheat if you are still kind of new to linux. Also depending on what desktop you are using (I use Gnome), either search for the program on the start menu, or open a x term and type linuxconf. Again, depending on what version of kernel you are using, go to the section where it talks about the control services. On redhat 7 it is under the contol tab, and then the section that says "control service activity". double click on httpd. Make sure that httpd is set to automatic, and click on start. If it starts successfully, you should be able to reboot and apache will be started as well. If not it must be something with a config issue. Also on RH 6.2 it is under the control section to config httpd. I would also recommend checking out the apache section in linuxconfig.

Hope this helps http://www.linuxnewbie.org/ubb/smile.gif

------------------
Linux, is there really any other OS worth using?

Smokey
01-03-2001, 11:59 AM
The way that I start Apache, is that in the end of my /etc/rc.d/rc.local file I added the line:

/usr/local/apache/bin/apachectl start &

Sweede
01-04-2001, 02:54 AM
what? no..

all that is wrong..

link your apachectl file into /etc/rc.d/init.d
ln /path/to/apachectl /etc/rc.d/init.d/httpd

then..
ln -s /etc/rc.d/init.d/httpd /etc/rc.d/rc3.d/S90httpd
ln -s /etc/rc.d/init.d/httpd /etc/rc.d/rc5.d/S90httpd
ln -s /etc/rc.d/init.d/httpd /etc/rc.d/rc1.d/K90httpd
ln -s /etc/rc.d/init.d/httpd /etc/rc.d/rc6.d/K90httpd

THIS is how you do it...