Jump to content

[SOLVED] start apache permanently


Recommended Posts

I have installed Apache2,php5 and mysql here /usr/local/ because the build-in one is not so flexible for my needs, I need to have apache and my sql working when the pc have just reboot, I am new on SUSE 10.2,  ??? I need help now while I am logged on the system.

 

thanx in advance.

Link to comment
Share on other sites

Im not sure how SUSE handles this but you basically need to make a symlink from the apache init script located in /etc/init.d into the appropriate run level directory, usually /etc/rc.3.

 

Most distro's have specific tools designed to automate this task for you. I'de google for SUSE startup scripts or something simlular before I'de attempt to do it manually, but something like...

 

ln -s /etc/init.d/apache /etc/rc.$(cat /etc/inittab | grep ^id | awk -F: '{print $3}')

 

would probably go close.

Link to comment
Share on other sites

A big thanx,

 

I have solved my problem this way, after being asked to make a simbolic link. well I am not so clear on the above attempt but I made a copy of my apachectl like this:

# cp /usr/local/apache2/bin/apachectl /etc/init.d

# chmod 755 /etc/init.d/apachectl

# chkconfig --add apachectl

# chkconfig --level 35 apachectl on

and stated my apache via /etc/init.d then I reboot my pc, it worked without resistance.

 

thanx to the person who pointed me to the right path.goes by the name Thorpe.

Link to comment
Share on other sites

This thread is more than a year old. Please don't revive it unless you have something important to add.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.