View previous topic :: View next topic |
Author |
Message |
Sarlok Tux's lil' helper
Joined: 03 Jan 2003 Posts: 98
|
Posted: Thu Feb 06, 2003 8:00 am Post subject: Apache2, poratge, and rc-update. |
|
|
Hey.
I did check for anyposts about my problem with search already, but couldn't find anything. So, if somone proves me wrong, my apologies.
Here's the problem, I tried
~ rc-update add apache default
But on startup, i get this error when it tries to start apache:
start-stop-daemon: Unable to start /usr/bin/apache: No such file or dir
But here's where things get interesting. I origionally emerged Apache 1.3 with portage, and then did rc-update with that version. But I unmerged it later because I had to re-install it anyway and add one or two things at compile time to get PHP script support working. So, I just got a tar of Apache2, and went with that rather than emerging it.
Now, i tried rc-update del apache, and then adding it again, but it still gave me that error.
Also, I have to type in the full path to the apachectl binary, rather than just being able to type apachectl.
Apache 2 is installed to /usr/local/apache2, and apache1.3 was in /usr/bin/apache.
Onto the question at hand that this was all inevitably leading to...
How do I arange it so that Apache2 starts when the system does?
Ta. |
|
Back to top |
|
|
mglauche Retired Dev
Joined: 25 Apr 2002 Posts: 564 Location: Germany
|
Posted: Thu Feb 06, 2003 9:10 am Post subject: |
|
|
whith the apache2 ebuild its easy (very nice one, they can be installed with apache1 together without problems), just use rc-update add apache2 default |
|
Back to top |
|
|
Sarlok Tux's lil' helper
Joined: 03 Jan 2003 Posts: 98
|
Posted: Thu Feb 06, 2003 4:59 pm Post subject: |
|
|
I tried that, but it said something about Apache2 not being found.
Any other suggestions? _________________ Four-thousand, six-hundred and ninety-one Irradiated haggis. |
|
Back to top |
|
|
Sven Vermeulen Retired Dev
Joined: 29 Aug 2002 Posts: 1345 Location: Mechelen, Belgium
|
Posted: Fri Feb 07, 2003 1:15 pm Post subject: |
|
|
When you install Apache using sources of apache's main website instead of using Gentoo's Portage, the apache-daemon is called httpd instead of apache.
This means that the initscripts won't work, but also that you will have to create your own initscripts or alter existing ones. |
|
Back to top |
|
|
slott_hansen n00b
Joined: 03 Feb 2003 Posts: 40 Location: Denmark, Copenhagen
|
Posted: Fri Feb 07, 2003 2:03 pm Post subject: installed apache2 but wont start on boot |
|
|
I just emerged apache2 and did a rc-update.... But when I reboot apache2 wont start. When I start it manually it only makes a little complain regarding host name - nothing serous.
Could anyone please tell me where to find the apache2 startup script and from where it is called... _________________ Best regards,
Morten Slott Hansen |
|
Back to top |
|
|
Sarlok Tux's lil' helper
Joined: 03 Jan 2003 Posts: 98
|
Posted: Fri Feb 07, 2003 6:44 pm Post subject: |
|
|
It [i]should[i] be in /usr/local/apache2/conf/
That is, if you installed it to the default directory. The file you're after will be httpd.conf.
change the hostname in there to your PC's name. _________________ Four-thousand, six-hundred and ninety-one Irradiated haggis. |
|
Back to top |
|
|
Sarlok Tux's lil' helper
Joined: 03 Jan 2003 Posts: 98
|
Posted: Sat Feb 08, 2003 12:45 am Post subject: |
|
|
Sven Vermeulen wrote: | When you install Apache using sources of apache's main website instead of using Gentoo's Portage, the apache-daemon is called httpd instead of apache.
This means that the initscripts won't work, but also that you will have to create your own initscripts or alter existing ones. |
Aha.
Any hints as to how to make my own? Or what I have to change in the regular apache script in /etc/init.d/ to get it working?
i wouldn't normally mind starting it on my own, but just in case the power goes out and my UPS dies before it comes back on (if I'm away), I'll want it to start up again. _________________ Four-thousand, six-hundred and ninety-one Irradiated haggis. |
|
Back to top |
|
|
|