wordpress backup problems with rewrite

I set up my new word press to my new Silent Server, after I moved the database and the ftp folder I had some troubles with the permalinks, this shows how to solve them.

Set Rights

navigate to your www folder, my one is at “/var/www”, then set the rigthts, user and the group:

chmod -R 755 ./
chown -R www-data:www-data ./

Set rewrite

now I check if rewrite is enabled:

a2enmod rewrite

now open apache2.conf with:

nano /etc/apache2/apache2.conf

and add this line:

LoadModule rewrite_module /usr/lib/apache2/modules/mod_rewrite.so

now open sites-available/default with:

nano /etc/apache2/sites-available/default

and change this:

        <Directory /var/www/>
                Options Indexes FollowSymLinks MultiViews
                AllowOverride None
                Order allow,deny
                allow from all
        </Directory>

to this:

        <Directory /var/www/>
                Options Indexes FollowSymLinks MultiViews
                AllowOverride All
                Order allow,deny
                allow from all
        </Directory>

 

After you made your changes restart your web server:

service apache2 restart

3 thoughts on “wordpress backup problems with rewrite”

  1. This article and many other on your website are very interesting.
    You should show your content to wider audience.

  2. whoah this weblog is wonderful i really like reading your articles.
    Keep up the good work! You know, lots of individuals are looking around for this info,
    you can help them greatly.

Leave a Reply

Your email address will not be published.

12 + twenty =