Deploying LAMP on Ubuntu Linux from apt-get

by Forrest Sheng Bao http://fsbao.net

Validated on Ubuntu 8.04.

  1. sudo apt-get install apache2 php5 libapache2-mod-php5 php5-mysql mysql-server php5-gd opensshd
  2. edit /etc/apache2/sites-available/default
  3. sudo a2enmod rewrite
  4. vim /etc/apache2/sites-available/default and set AllowOverride all
  5. restart Apache: sudo apachectl -k graceful
  6. test
  7. mysql -u root -p
  8. mysql> create database drupal character set utf8 collate utf8_general_ci ;
    Query OK, 1 row affected (0.00 sec)
  9. mysql> use drupal
  10. mysql> grant all on drupal.* to 'xxx'@'localhost' identified by 'YYYYYYYY';

 

No comments: