Want more features on Pastebin? Sign Up, it's FREE!
Guest

Untitled

By: a guest on Oct 19th, 2011  |  syntax: None  |  size: 0.85 KB  |  views: 48  |  expires: Never
download  |  raw  |  embed  |  report abuse  |  print
Text below is selected. Please press Ctrl+C to copy to your clipboard. (⌘+C on Mac)
  1. # Download WordPress
  2. cd /tmp
  3. wget http://wordpress.org/latest.tar.gz
  4.  
  5. # Extract your WordPress archieve into your server directory
  6. tar zxvf latest.tar.gz
  7. mv wordpress/ /var/www
  8.  
  9. # Create MySQL Database for WordPress
  10. mysql -u root -p
  11. #Enter password:
  12.  
  13. # Enter the following in mysql> Prompt
  14. CREATE DATABASE wordpress;
  15. CREATE USER wordpress;
  16. SET PASSWORD FOR wordpress = PASSWORD(“wordpresspassword”);
  17. GRANT ALL PRIVILEGES ON wordpress.* TO “wordpress”@”localhost” IDENTIFIED BY “wordpresspassword”;
  18. flush privileges;
  19. EXIT
  20.  
  21. # Configure WordPress Setting
  22. cd /var/www/wordpress/
  23. cp wp-config-sample.php wp-config.php
  24. vim wp-config.php
  25.  
  26. # Install WordPress
  27. # the folder (/var/www/wordpress) and all its files and subfolders must be owned by www-data
  28. chown -R www-data /var/www/wordpress
  29. # Open the browser to “http://localhost/wordpress” to install it
clone this paste RAW Paste Data