apache2 mysql php in gentoo

USE=”apache2 -perl innodb mysql gd imap curl flash gd-external -gdbm jpeg pdflib png truetype xml2 ncurses memlimit” emerge apache mysql php mod_php phpmyadmin

Let us modify /etc/conf.d/apache2 to make hang an account PHP and SSL.
Add this line there:


# openssl req -new > new.cert.csr
# openssl rsa -in privkey.pem -out new.cert.key
# openssl x509 -in new.cert.csr -out new.cert.cert -req -signkey new.cert.key -days 365
# cp new.cert.cert /etc/apache2/conf/ssl
# cp new.cert.key /etc/apache2/conf/ssl
# nano -w /etc/apache2/conf/vhosts/vhosts.conf
# /etc/init.d/apache2 start
rc-update add apache2 default

ebuild /var/db/pkg/dev-db/mysql-x.y.z[-rN]/mysql-x.y.z[-rN].ebuild config
# /etc/init.d/mysql start
# mysqladmin – U root password ‘ new-word-of-passe’
# /etc/init.d/mysql restart
rc-update add mysql default

# etc-update

ebuild /var/db/pkg/dev-php/mod_php-x.y.z[-rN]/mod_php-x.y.z[-rN].ebuild config
# ebuild /var/db/pkg/dev-db/phpmyadmin-2.5.6/phpmyadmin-2.5.6.ebuild config
# nano -w /var/www/localhost/htdocs/phpmyadmin/config.inc.php
// ?ndra rad 47 till ‘true’.

Leave a Reply

Your email address will not be published. Required fields are marked *

This site uses Akismet to reduce spam. Learn how your comment data is processed.