Saturday, November 7, 2009

LAMP and WordPress Installation and Configuration

Linux and Apache and MySQL and PHP and WordPress

  • sudo apt-get install apache2
  • sudo apt-get install php
  • sudo apt-get install libapache2-mod-php5
  • sudo /etc/init.d/apache2 restart (The previous four steps is for installing the Apache and PHP)
  • sudo apt-get install mysql-server
  • sudo apt-get install libapache2-mod-auth-mysql
  • sudo apt-get install php5-mysql
  • sudo /etc/init.d/apache2 restart(These four steps are for installing the MySQL)
  • sudo ls /etc/apache2/mods-enabled (make sure that there are files php5.conf and php5.load, if not, sudo a2enmod php5)
  • Now you can install the wordpress now, but we can inatll the phpMyAdmin which would make your admin work more easier.
  • Download the phpMyAdmin package from its site, and unpackage it under the /var/www as /var/www/phpMyAdmin
  • sudo cp /var/www/phpmyadmin/config.sample.inc.php /var/www/phpmyadmin/config.inc.php
  • Edit this file ./var/www/phpmyadmin/config.inc.php
  • Find the "blowfish_sercet" and fill any charater after it.
  • Edit the file /etc/php5/apache2/php.ini
    • Add extension=php5-mcrypt.so
  • sudo chmod -R 777 /var/www/
  • Install the wordpress, Upackage under the /var/www as /var/www/wordpress
  • mysql -u youraccount -p in the shell
  • create database yourdatabasename ;
  • GRANT ALL PRIVILEGES ON wordpress.* TO hello@localhost IDENTIFIED BY ‘666666′
  • FLUSH PRIVILEGES
  • exit
  • Now you can access the http://localhost/wordpress, then you would be guided to config.

No comments:

Post a Comment