LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Mandriva (https://www.linuxquestions.org/questions/mandriva-30/)
-   -   Compiled Apache v2.20, but it won't startup automatically (https://www.linuxquestions.org/questions/mandriva-30/compiled-apache-v2-20-but-it-wont-startup-automatically-393996/)

Ziax 12-17-2005 05:21 PM

Compiled Apache v2.20, but it won't startup automatically
 
Hello

Compiled Apache v2.2 with success, and copied the bin/apachectl to /etc/init.d, but it doesn't show in the list with drakconf.

Did the same with support-files/mysql.server and that's working.

Anyone have an idea?

Cheers

carl0ski 12-17-2005 09:07 PM

Quote:

Originally Posted by Ziax
Hello

Compiled Apache v2.2 with success, and copied the bin/apachectl to /etc/init.d, but it doesn't show in the list with drakconf.

Did the same with support-files/mysql.server and that's working.

Anyone have an idea?

Cheers


if you open this folder
/etc/rc.d/rc5.d
you will see lots of symlinks to files in /etc/init.d
Everythin here is loaded when you start you computer and start X , kde etc.



ln -s /etc/init.d/apachectl /etc/rc.d/rc5.d/S60apachectl


S is to start
K is for kill
as you go down to 4 3 2 1 lots of Kills are used to close extra stuff.

the number is the order they are started i think?

Ziax 12-18-2005 07:57 AM

Hello

I did this: (taking from a guide)
Quote:

#cd /etc/rc3.d
#ln -s ../init.d/httpd S85httpd
#ln -s ../init.d/httpd K85httpd
#cd /etc/rc5.d
#ln -s ../init.d/httpd S85httpd
#ln -s ../init.d/httpd K85httpd
But no, It still don't shows in the list in drakconf.

Cheers

carl0ski 12-18-2005 10:40 PM

Quote:

Originally Posted by Ziax
Hello

I did this: (taking from a guide)


But no, It still don't shows in the list in drakconf.

Cheers

it probably wont show in drakconf because there is probably a config file everything in drakconf has a name description etc

but it should say work during boot try

service apachectl start
[root@localhost carl0ski]# service harddrake stop
Stopping harddrake [ OK ]
[root@localhost carl0ski]# service harddrake start
Checking for new hardware [ OK ]
[root@localhost carl0ski]#


and delete
K85httpd

you cant just start it then stop it straight away

Ziax 12-19-2005 04:21 AM

Hello

Hmm, still can't get it to work.

Why did it work so smoothly with MySQL?? I just copied the mysql.server from the support-files to /etc/init.d/, and bang, it shows in the list right away?

Cheers

tkedwards 12-19-2005 04:35 PM

AFAIK apachectl is a binary exectuable, not an init script. If you look in any of the other files in /etc/init.d you'll see that they are shell scripts written in a particular format - ie. the start) stop) restart) etc. sections and the sourcing of /etc/init.d/functions. It's not just drakservices that won't pick it up but probably the system itself and any other programs which manage the SysV init scripts (eg. service, chkconfig).

You need to either find an init script in the apache stuff you downloaded (like you found the mysql.server file) or copy one from a computer where apache was installed using RPM.

carl0ski 12-19-2005 05:36 PM

Quote:

Originally Posted by tkedwards
AFAIK apachectl is a binary exectuable, not an init script. If you look in any of the other files in /etc/init.d you'll see that they are shell scripts written in a particular format - ie. the start) stop) restart) etc. sections and the sourcing of /etc/init.d/functions. It's not just drakservices that won't pick it up but probably the system itself and any other programs which manage the SysV init scripts (eg. service, chkconfig).

You need to either find an init script in the apache stuff you downloaded (like you found the mysql.server file) or copy one from a computer where apache was installed using RPM.



follow this advice i have never used apache so dont know which files are script


All times are GMT -5. The time now is 12:37 PM.