Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Mike Lewis on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Getting Apache to automatically load on boot (Mandrake 10)

Status
Not open for further replies.

spook007

Programmer
May 22, 2002
259
0
0
US
I've tried to add files to my init.d directory and all of my rc#.d directories and with no luck I can't get apache to load on startup. Am I missing something! I manage to find instructions for Red Hat, but they aren't working for mandrake. Any suggestions? Thanks.
 
Do you get an error message if you try to start the script yourself from the init.d directory?
 
My problem might be that I don't know what should be in the script, all I did was.

ln -s /var/local/apache2/bin/apachectl /etc/rc.d/init.d/apache2

This created a shortcut or alias for my script I guess, but when I reboot I get no error message or nothing.
 
Type chkconfig --add httpd

>---------------------------------------Lawrence Feldman
SR. QA. Engineer SNAP Appliance
lfeldman@snapappliance.com

 
apachectl isn't the script you are looking for. it will probably be named 'httpd' or 'httpd2' (depending on the version of apache). look for it in the RPM you installed apache from, or in the source tarball you built apache from. you need that in /etc/init.d/, then symlink it from /etc/rc*.d/.

i'd paste a link to a working copy of just that file, but can't seem to google one up.

----
JBR
 
On Mandrake 10, as root do
Code:
 service httpd start
Or httpd2 depending on the version of apache you installed. This will start apache, and from my experience put all the files in the correct place to start up again after boot.

Cheers
Xaq

---

"I'm just here to regulate funkyness"
 
In windows I would create a .bat file and place it in the start up folder. My problem with Linux is that I don't know what kind of file I'm supposed to create. I think I know now that it's supposed to go in the init.d folder and then symlink in etc/rc*.d folders... with in the script I'm supposed to place service httpd start. My question now is how am I supposed to create this script? What extension, ect.
 
Thinking about it, the Easiest way in Mandrake 10 is to go into Start Menu -> System -> Configuration -> Configure your computer ( under KDE at least! ). Put in your root password. Click on system, Then services. This will bring you up a list of services with the info, start and stop buttons, and a "on boot" tick box. If you are using Gnome, or some other windows manager, or cannot find Configure your computer in the menus, open up a Terminal program, su to root and type
Code:
 mcc &
which will get you to the same place.

After you have done this, you could take a look and see what scripts have been added to /etc/rc*.d folders.


Hope this helps


Cheers
Xaq

---

"I'm just here to regulate funkyness"
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top