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 |
Quote:
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? |
Hello
I did this: (taking from a guide) Quote:
Cheers |
Quote:
but it should say work during boot try service apachectl start [root@localhost carl0ski]# service harddrake stop and delete K85httpd you cant just start it then stop it straight away |
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 |
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. |
Quote:
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. |