Advertisement
Guest User

Untitled

a guest
Oct 19th, 2011
73
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.85 KB | None | 0 0
  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
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement