vmに入れたUbuntuでLAMP/LAPP構築

サーバーソフトウェアのインストール | 自宅サーバー Debian/Ubuntu
だいたいこれ見てやった
途中で入力求められたりしたけど引っかかる所無かったからコマンドだけ。

$ sudo apt-get install apache2
$ sudo apt-get install mysql-server
$ sudo apt-get install postgresql
$ sudo apt-get install php5
$ sudo apt-get install php5-mysql php5-pgsql
$ sudo /etc/init.d/apache2 restart
$ sudo nano /var/www/info.php

info.phpに各種情報が載ってればとりあえず成功っぽい。