Fast LAMP install with Fedora Core
This is a guide to install LAMP (Linux, Apache, MySQL and PHP) as fast as you can with minimal muscle effort ( waste of fat, which is very expensive to build ).
Install Fedora Core
Install Fedora Core using minimal install. If you need help installing Fedora Core, fedora.redhat.com provides specific instructions for that.
Import Fedora's GPG keys:
[root@nutso root]#rpm --import /usr/share/rhn/RPM-GPG*
Update your freshly installed system using yum:
[root@nutso root]#yum update
Tip! you can change you reposity settings to match nearest mirror. Just edit files:
name=Fedora Core $releasever - $basearch - Base
name=Fedora Core $releasever - $basearch - Released Updates
Install needed packages
Next just install needed packages for LAMP using yum:
Yum is going to take care of needed dependencies and asks you if you choose to install those packages it'll find.
After installation choose which programs will start automatically at start up. You can use
ntsysv to choose which programs will start.
Basically that's it! Or not. You should configure your apache (
/etc/php.ini) and MySQL (
Upgrade MySQL to 4.x
When writing this I didn't get MySQL 5.x to play ball, so I'm using MySQL 4.x.
Download from http://www.mysql.com MySQL server, MySQL client and MySQL dynamic client libraries (including 3.23) and upgrade your MySQL:
[root@nutso root]#rpm -Uvh MySQL*
After upgrading fix privilege tables:
When using MySQL databases via PHP remember to add passwords to database users using OLD_PASSWORD function like:
mysql>SET PASSWORD FOR 'someuser'@'localhost'=OLD_PASSWORD('thepass');