1. APACHE
$ sudo apt-get install apache2
2. MYSQL
$ sudo apt-get install mysql-server mysql-client
3. PHP
$ sudo apt-get install php5 php-common libapache2-mod-php5 php5-mysql
-- vhost 설정 --
$ sudo vi /etc/apache2/sites-enabled/000-default
---------------------------------------------------
<VirtualHost *:80>
ServerAdmin webmaster@localhost
DocumentRoot /home/pi/www
<Directory />
Options FollowSymLinks
AllowOverride None
</Directory>
<Directory /home/pi/www/>
Options Indexes FollowSymLinks MultiViews
AllowOverride None
Order allow,deny
allow from all
</Directory>
-----------------------------------------------------------------
$ sudo /etc/init.d/apache2 restart