LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - General (https://www.linuxquestions.org/questions/linux-general-1/)
-   -   Starting apache and mysql as service on boot :: (https://www.linuxquestions.org/questions/linux-general-1/starting-apache-and-mysql-as-service-on-boot-39796/)

buddy 12-30-2002 02:26 PM

Starting apache and mysql as service on boot ::
 
Hey folks,

Me again, as you can see from my other postings - I have my main stuff working again...

Unfortunately they are not working as I wish 100%. How des one have apache and php/mysql start on boot. I've attempted this in the past with results that were... well just not working. So I've now turned to you guys - which have helped me today a great deal.

Any ideas on steps to take to get these things running as services or on boot? Being a webserver if we ever went down and needed a reboot - I would need these to be automatic... For that matter I would also need to get VNC running as a service too.


Cheers mates

SlickWilly 12-30-2002 02:47 PM

I'm not familiar with the mdk9 distribution, but failing all else if you posess an rc.local in your /etc/rc.d directory you can simply add the command to start apache in that.

/path-to-apache/bin/apachectl start &

Otherwise I'd recomment a man chkconfig.

Slick.


Slick.

nxny 12-30-2002 02:51 PM

Dunno much about MDK, but if it is as similar to RH as I hear..

/sbin/chkconfig --level 35 httpd on
/sbin/chkconfig --level 35 mysqld on


Also try running 'serviceconf' from within X to see if you have the graphical utility to administer services.


All times are GMT -5. The time now is 03:22 AM.