Not too bad. But I hate when my eyes skip over details in the instructions. Having to chroot (starting up with the CD) to get the root password to take hold makes sense. Otherwise using passwd means you’re applying it to the CD.
Apache2, PHP5, and MySQL5 are up and running. I tested that everything was working after rebooting by telnetting from the iMac Terminal, and seeing the “It works!” in the browser. I had to go back and use rc-update on several programs. Everything was installed with emerge so no script had to be added to /etc/init.d/. One USE term had to be removed from /etc/make.conf because I’d added a bunch I barely recognized. Emerge politely stopped and pointed out the conflict.
I was a little nervous about adding the line «APACHE2_OPTS=”-D DEFAULT_VHOST -D PHP5 -D USERDIR”» to the file /etc/init.d/apache2 but found a place near the top of the file that looked correct, and it was. (Foo! nervous?! Better to make a mistake now, learn and know what caused it. Then later fixes will go easier.) I remembered to add a root password to MySQL. I’ll have to brush up on my MySQL admin skills to lock it down tighter.
Maybe setting up SSL is next.
I had help from these links:
http://beans.seartipy.com/2006/04/18/apache-php-mysql-on-gentoo/
http://tronprog.blogspot.com/2007/02/apache2-php-mysql-gentoo-linux.html
and to a small degree:
http://gentoo-wiki.com/Apache_Modules_mod_php
CORRECTION:
Based on the comment I see I have the wrong path for the Apache options. They go in /etc/conf.d/apache2 and it’s obvious where they go in the file when you look in the file!
The apache startup options should go into /etc/conf.d/apache2 (not init.d!).
Comment by Donnie Berkholz — September 4, 2008 @ 10:37 pm
Ah! It’s working, but you’re right. One of the links where I got “help” says to use init.d, the other two say conf.d. Of course, putting the personal configs in the conf.d directory makes more sense.
*reads file* Right, and two of my settings are already in there.
I see you’re on the council for gentoo.org. Thanks for dropping by! I’m becoming a fan of the OS.
Comment by diskerror — September 5, 2008 @ 6:12 pm