How-To Fedora Linux LAMP installation

This short guide demonstrates how to setup Fedora 18 as a LAMP server containing Apache, PHP, Perl, Python, Ruby and MySQL.

You have to use the shell and be able to use the machine as  root.

Start the terminal and run:

sudo yum install -y httpd php php-mysql php-gd php-imap php-ldap php-odbc php-pear php-xml php-xmlrpc php-magickwand php-mbstring php-mcrypt php-mssql php-shout php-snmp php-soap php-tidy php-mysql php-odbc php-pear php-mhash curl perl-libwww-perl ImageMagick libxml2 php-pecl-apc mysql mysql-server phpmyadmin ruby mod_python perl mod_perl perl-HTML-Parser perl-DBI perl-Net-DNS perl-Digest-SHA1 perl-ExtUtils-AutoInstall perl-NetAddr-IP perl-Archive-Tar

Second step is to enable the Apache Webserver and MySQL Database server;

sudo systemctl enable httpd.service
sudo systemctl start httpd.service
sudo systemctl enable mysqld.service
sudo systemctl start mysqld.service
sudo mysql_secure_installation

How-To Ubuntu LAMP Server

This short guide demonstrates how to install Apache, PHP, MySQL as LAMP server on Ubuntu Linux.

sudo apt-get install mysql-server mysql-client apache2 install php5 libapache2-mod-php5
sudo apt-get install php5-mysql php5-curl php5-gd php5-intl php-pear php5-imagick php5-imap php5-mcrypt php5-memcache php5-ming php5-ps php5-pspell php5-recode php5-snmp php5-sqlite php5-tidy php5-xmlrpc php5-xsl
sudo /etc/init.d/apache2 restart

Tools which can be installed are phpMyAdmin and MySQL Workbench:

sudo add-apt-repository ppa:olivier-berten/misc
sudo apt-get update
sudo apt-get install mysql-workbench-gpl phpmyadmin