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:

File: /etc/yum.repos.d/fedora.repo

[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

 

File: /etc/yum.repos.d/fedora-updates.repo

[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

Install needed packages

Next just install needed packages for LAMP using yum:

[root@nutso root]#yum install httpd mysql mysql-server php php-gd php-imap php-ldap php-mbstring php-mysql php-ncurses php-pear php-xmlrpc php-domxml

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).

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:

[root@nutso root]#/usr/bin/mysql_fix_privilege_tables

When using MySQL databases via PHP remember to add passwords to database users using OLD_PASSWORD function like:

mysql>GRANT SELECT,INSERT,UPDATE,DELETE,INDEX,ALTER,CREATE,DROP on somedb.* TO 'someuser'@'localhost';
mysql>SET PASSWORD FOR 'someuser'@'localhost'=OLD_PASSWORD('thepass');
mysql>flush privileges;

 

 

 

Musikhaus Thomann Linkpartner

Get some warm and cozy feeling inside and donate ;-). It helps to keep this website running.