I am very new to Linux Environment. But for my client I've designed the website which uses php and mysql. Now I want to install the site on his RHEL 5.0 server. He already have httpd installed on it.

So My problem now is: I've installed apachectl to be able to listen php function calls in :


and php in:


with mysqld:


Now to start the website I use:

 service httpd stop
/usr/local/apache2/bin/apachectl start

And it works fine. But My client want no change in his server setup.
He wants

  • to run both php and mysql using only httpd No apachectl and also
  • if apachectl is to be used then he want to start it automatically when OS boots up after a power failure
  • Is it possible to configure php and mysql to work with httpd(No apachectl) ?
I know how to do this in windows OS(using control panel) but can anyone help me in Linux?

Thanking you in anticipation.

  • Your client wants an ancient version of Linux and wants you to replace all the system packages instead of just using something more up-to-date to begin with? Run away. – Michael Hampton Oct 12 '13 at 18:33
  • @Michael_Hampton♦ I really want to run away :) :D. But I can't. Can you help me in this. – Vedant Terkar Oct 12 '13 at 18:38
  • Will editing httpd.conf work? – Vedant Terkar Oct 12 '13 at 18:49

I'm kind of confused with your question, correct me if I'm wrong, but if you only want httpd and mysql to start at boot you need to look at xinetd.

To get what you want should be something like this:

/usr/sbin/update-rc.d [service-name] defaults

check this link for further information

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.