LAMP

From KevinWiki

(Difference between revisions)
Jump to: navigation, search
m
Line 6: Line 6:
== Install Apache Web Server ==
== Install Apache Web Server ==
<pre>
<pre>
-
$ sudo apt-get install apache2
+
$ sudo apt-get install apache2  
</pre>
</pre>
Line 12: Line 12:
== Install MySQL Database ==
== Install MySQL Database ==
<pre>
<pre>
-
$ sudo apt-get install mysql-server
+
$ sudo apt-get install mysql-server  
</pre>
</pre>
Line 42: Line 42:
== Install PHP module for Apache ==
== Install PHP module for Apache ==
<pre>
<pre>
-
$ sudo apt-get install php5 libapache2-mod-php5
+
$ sudo apt-get install php5 libapache2-mod-php5  
</pre>
</pre>
Line 54: Line 54:
== Install PHPMyAdmin==
== Install PHPMyAdmin==
<pre>
<pre>
-
$ apt-get install phpmyadmin
+
$ apt-get install phpmyadmin  
</pre>
</pre>

Revision as of 08:36, 3 April 2009

APM in web application development normally stands for 'Apache Web Server, PHP and MySQL.'

This instruction is for Ubuntu Linux 8.04 (possibly other versions). It may work for other Linux distributions or may not. This document only has the essential information to install those software packages so for details please see other documents which have the details such as how to configure and use.

Contents

Install Apache Web Server

$ sudo apt-get install apache2 


Install MySQL Database

$ sudo apt-get install mysql-server 

Change Charset

-modify /etc/mysql/my.cnf file (add default-character-set=utf8)

user            = mysql
pid-file        = /var/run/mysqld/mysqld.pid
socket          = /var/run/mysqld/mysqld.sock
port            = 3306
basedir         = /usr
datadir         = /var/lib/mysql
tmpdir          = /tmp
language        = /usr/share/mysql/english
default-character-set=utf8
skip-external-locking

...

[mysql]
#no-auto-rehash # faster start of mysql but no tab completion
default-character-set=utf8




Install PHP module for Apache

$ sudo apt-get install php5 libapache2-mod-php5 


Install GD Graphics Library (Optional)

$ sudo apt-get install php5-gd 


Install PHPMyAdmin

$ apt-get install phpmyadmin 
Personal tools