Showing posts with label apache. Show all posts
Showing posts with label apache. Show all posts
Wednesday, February 14, 2007
Apache2, PHP, MySql (Gentoo Linux)
I've just installed Apache, Php and MySql in my Gentoo box; I've always used these programs and servers only under Debian since they looked easier to install (or probably they looked harder to install in Gentoo :-). I actually found out that it's quite easy to install them in Gentoo either!
I followed some documents found on the web, but basically the installation procedure was even faster than that found on the web:
I put these lines in /etc/make.conf:
USE="apache2 mysql php pam ssl xml xml2 berkdb innodb jpeg png"
If you want to install also phpmyadmin, then you should also add pcre session unicode:
USE="apache2 mysql php pam ssl xml xml2 berkdb innodb jpeg png pcre session unicode"
then I simply ran:
emerge dev-db/mysql apache php
after few minutes (well... half an hour would be more appropriate) the installation terminated successfully.
I then changed the file /etc/init.d/apache2, in order to enable public_html folders for users (corresponding to the ~ directory), setting -D USERDIR:
APACHE2_OPTS="-D DEFAULT_VHOST -D PHP5 -D USERDIR"
Before starting mysql, you must create (once and for all) the mysql main database, and this can be done simply by running:
/usr/bin/mysql_install_db
then you're ready to start apache and mysql.
Subscribe to:
Posts (Atom)