How to install or recover the apache script in /etc/init.d/

Hi all,

I would like to know how to obtain the script for apache in the ‘/etc/init.d/’ directory ?

Does it come by default on SUSE 11.1? I just installed my web server and the script is missing.

Thanks!

:|:)

Also regarding the same topic …

Is it possible to install the version of apache that have these two directories in SUSE 11.1:

/sites-available/
/sites-enabled/

somehow my apache installation in SUSE11.1 is missing these directories and also the apache script in /etc/init.d/

Thanks for any help on this issue.

It should be there (and starting can be done with YaST > System > System Services (Runlevels)).

How did you install?

I have Apache running. I have no /sites-available/ or /sites-enabled/ (nor have I directories/files named sites-available or sites-enabled anywhere on my system).

Those directories are a Debian/Ubuntu feature, not an Apache feature.

Thanks for the info!
I was used to Ubuntu and Debian.

Actually the script was there and I executed the following command to make the apache script executable.

sudo chmod 755 /etc/init.d/apache2

Thank you all rotfl!

The original state of the file /etc/init.d/apache2 was already executable. Perhaps you changed it by accident?