PDA

View Full Version : Where to start: Apache, MySql, & PHP



mabhatter
03-13-2003, 08:04 PM
I know that those programs are on the CD--I checked!
How do I get to them? And can they be setup to run directly from the CD?

I've got my trusty O'rielly book that tells how to use them, but the setup is obviously for HD installs--Knoppix is a very special case! I'd like to get them setup to run just from the disc if it's possible. I can keep the data files on the network--I got that figured out. I just can't seem to find anything about turning them on!

thanks

abp
03-13-2003, 10:22 PM
Deamons Control Scripts:
Look in the /etc/init.d/ library for deamon control scripts - and run them as root eg.:

sh /etc/init.d/apache restart
Since it is a script calling different binary-files based on a specific configurationfiles, you can look in the file for the placement of eg. httpd.conf (Configurationfile for Apache)

Start Deamon at Boottime:
To start the deamons at boottime place a symboliclink in /etc/rcS.d to the deamon control script in /etc/init.d/.
Give the link a name starting with a capital S (start) and then a execution number eg:

ln -s ../init.d/apache /etc/rcS.d/S61apache

Hope it helped you in the right direction :wink:

PS: PHP is most likely loaded as a module by Apache (Haven't checked)

mabhatter
03-14-2003, 12:27 AM
I'm workin' right now, but I'll be tryin' it out tonight. I might try before I go home!

Thanks for the help!