Wednesday, September 25, 2013

Wordpress on Debian Wheezy

  1. apt-get install wordpress
  2. apt-get install mysql
  3. apt-get install sendmail
  4. ln -s /usr/share/wordpress /var/www
  5. ln -s /usr/share/wordpress /srv/www
  6. Create & Run script:
    1. cp /usr/.../wordpress/examples/mysql-setup /usr/share/doc/wordpress/examples/mysql-setup2
    2. chmod o+x /usr/.../examples/mysql-setup2
    3. /usr/.../examples/mysql-setup2
  7. Fix permissions: 
    1. chown -R /usr/share/wordpress www-data
    2. chown -R /var/lib/wordpress www-data
  8. Edit /etc/apache2/sites-enabled/000-default
    1. RewriteRule ^/wp-content/plugins/var/lib/(.*)$ /var/lib/$1
    2. RewriteRule ^/wp-content/(.*)$ /var/www/wordpress/wp-content/%{HTTP_HOST}/$1
  9. http://mydomain.name/...
  10. Install recommended plugins:
    1. Clean and simple contact form
    2. Custom meta widget
    3. Easy table
    4. Lightbox gallery
    5. Twenty Eleven Theme Extensions

If plugins don't work check the source from loaded pages to identify incorrect URL's, adjust rewrite rules to fix.

No comments:

Post a Comment