Amazon Linux AMI as LAMP setup

Aside

The following guide demonstrates how to install Apache Webserver 2.2, PHP 5.3, MySQL Server 5.1 (Community Edition) and Perl (without mod_perl).

sudo yum install -y httpd php php-pear mysql mysql-server perl php-common php-dba php-pdo php-mysql php-xml php-xmlrpc

Then start Apache HTTPD and MySQL Server:

sudo /etc/init.d/mysqld start
sudo /etc/init.d/httpd start

And make sure it`s always loaded on startup:
sudo chkconfig --level 2345 httpd on
sudo chkconfig --level 2345 mysqld on

OpenSuSE 11.4 LAMP installation guide

Aside

The following guide demonstrates how to install Apache 2.2, PHP 5.3 and MySQL 5.1 in OpenSuSE linux version 11.4.

I will not guide you through the installationsteps, so I start  after booting the machine and logging in.

You have to be logged in as root (using the sudo command).

By entering the following code into the commandline you install MySQL, Apache, PHP and the basic/required third party modules.

sudo
yast2 -i mysql mysql-community-server mysql-client perl-DBD-mysql perl-DBI perl-Data-ShowTable
chkconfig --add mysql
/etc/init.d/mysql start
yast2 -i apache2 apache2-devel apache2-mod_perl apache2-mod_php5 apache2-prefork perl-HTML-Parser perl-URI perl-libwww-perl php5 php5-devel zlib zlib-devel
yast2 -i ImageMagick curl
yast2 -i php5-bcmath php5-bz2 php5-calendar php5-ctype php5-curl php5-dom php5-ftp php5-gd php5-gettext php5-gmp php5-iconv php5-imap php5-ldap php5-mbstring php5-mcrypt php5-mysql php5-odbc php5-openssl php5-pcntl php5-pgsql php5-posix php5-shmop php5-snmp php5-soap php5-sockets php5-sqlite php5-sysvsem php5-tokenizer php5-wddx php5-xmlrpc php5-xsl php5-zlib php5-exif php5-fastcgi php5-pear php5-sysvmsg php5-sysvshm
chkconfig --add apache2
/etc/init.d/apache2 start

Solaris 11 Express SAMP installation guide (update)

Aside

This  article is an improved version of Solaris 11 Express SAMP installation guide. The improvement contains a graphical management panel.

To install Apache 2.2, PHP, MySQL 5.1, Perl 5.8 on Solaris 11 Express just follow these steps:

  1. Install Solaris 11 Express (I won`t provide help with this step)
  2. Start Solaris and login as the main user
  3. Start the terminal, if not done already
  4. su
    pkg refresh
  5. pkg install amp
  6. pkg install panel-apache
  7. svcadm restart gdm
  8. svcadm enable apache22
  9. svcadm enable mysql
  10. cd /var/apache2/2.2/htdocs
  11. rm index.html

All PHP files etc can be placed in /var/apache2/2.2/htdocs

If you want to learn how to  install SSL (for HTTPS) for Apache, I recommend that you will read http://blogs.sun.com/observatory/entry/apache_ssl

Solaris 11 Express SAMP installation guide

Aside

To install Apache 2.2, PHP 5, MySQL 5.1, Perl 5.8 on Solaris 11 Express just follow these steps:

  1. Install Solaris 11 Express (I won`t provide help with this step)
  2. Start Solaris and login as the main user
  3. Start the terminal, if not done already
  4. su
    (and change the password)
  5. pkg refresh
  6. pkg install amp
  7. svcadm enable apache22
  8. svcadm enable mysql
  9. cd /var/apache2/2.2/htdocs
  10. rm index.html

All PHP files etc can be placed in /var/apache2/2.2/htdocs

How-to setup Fedora 13 as LAMP server

Aside

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

yum install httpd
yum install php php-devel php-gd php-imap php-ldap php-mysql php-odbc php-pear php-xml php-xmlrpc php-eaccelerator php-magickwand php-magpierss php-mapserver php-mbstring php-mcrypt php-mhash php-mssql php-shout php-snmp php-soap php-tidy curl curl-devel perl-libwww-perl ImageMagick libxml2 libxml2-devel
yum install mysql mysql-devel mysql-server
yum install httpd-devel ruby ruby-devel
yum install mod_python
yum install mod_perl
yum install perl-HTML-Parser perl-DBI perl-Net-DNS perl-Digest-SHA1 perl-ExtUtils-AutoInstall perl-NetAddr-IP perl-Archive-Tar
/etc/init.d/httpd restart

Now you have got everything installed except for mod_ruby;

cd /tmp
wget http://modruby.net/archive/mod_ruby-1.3.0.tar.gz
tar zxvf mod_ruby-1.3.0.tar.gz
cd mod_ruby-1.3.0/
./configure.rb --with-apr-includes=/usr/include/apr-1
make
make install

/etc/init.d/httpd restart

You have to add mod_ruby by hand in /etc/httpd/conf.d/ruby.conf
By adding

LoadModule ruby_module modules/mod_ruby.so