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 using minimal install. If you need help installing Fedora Core, fedora.redhat.com provides specific instructions for that.
Import Fedora's GPG keys:
Update your freshly installed system using yum:
Tip! you can change you reposity settings to match nearest mirror. Just edit files:
[base] name=Fedora Core $releasever - $basearch - Base baseurl=http://<yourmirrorsite>/pub/fedora/linux/core/$releasever/$basearch/os/ #mirrorlist=http://fedora.redhat.com/download/mirrors/fedora-core-$releasever enabled=1 gpgcheck=1
[updates-released] name=Fedora Core $releasever - $basearch - Released Updates baseurl=http://<yourmirrorsite>/pub/fedora/linux/core/updates/$releasever/$basearch/ #mirrorlist=http://fedora.redhat.com/download/mirrors/updates-released-fc$releasever enabled=1 gpgcheck=1
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/httpd/conf/httd.conf
),
php(/etc/php.ini
) and MySQL (/etc/my.cnf
).
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:
After upgrading fix privilege tables:
When using MySQL databases via PHP remember to add passwords to database users using OLD_PASSWORD function like: