HOWTO LAMP with Apache2, PHP5 and MySQL 4.1.x

From Gentoo Linux Wiki

Jump to: navigation, search



This article is still a Stub. You can help Gentoo-Wiki by expanding it.

Ok so here's my first attempt at writing a HOWTO. I've been using this configuration for some time so have some experience in setting it up and getting it running :)

Firstly, we'll start by emerging MySQL with the ~x86 USE flag (Portage takes a while to update to the latest releases of php and MySQL), for this we'll require the following in /etc/portage/package.keywords

File: /etc/portage/package.keywords
dev-db/mysql                    ~x86
dev-perl/DBD-mysql              ~x86

and in the /etc/portage/package.unmask

File: /etc/portage/package.unmask
dev-db/mysql

Check the options you want to enable with emerge -va mysql. If you do not wish to add anything other than the default use flags then continue using y, otherwise add the flags to /etc/portage/package.use then dev-db/mysql -utf8 for example.

When MySQL has finished emerging we'll need to install Apache. At the time of this writing, apache-2.0.54-r31 is masked as stable. Make sure your /etc/make.conf has the apache2 use flag set. If so, emerge apache.

Finally, we will require php,

echo "dev-lang/php ~x86" >> /etc/portage/package.keywords
echo "app-admin/php-toolkit ~x86" >> /etc/portage/package.keywords
emerge -va dev-lang/php

Change the use flags to suit by editing the /etc/portage/package.use and adding

dev-lang/php bzip2 calendar cli -recode etc etc.

Then,

emerge -va dev-lang/php

Hope that helps. It's as brief as can be and since I already have this installed on my system, I'm not sure if there's dependencies that I already have. Please give feedback to the su account for the domain 1stgeek.co.uk.

Cheers <math>Formel hier einfügen</math>

Personal tools