• Resolved jonas-e

    (@jonas-e)


    I’m hosting a wordpress 3.9.3 on a web server (one.com) and decided to create sandbox on my localhost which is Linux Mint 17.1 Mate 64 bit.

    I did the following:
    1. Installed apache 2.4.7, mysql (Client API version => 5.5.41) and php 5.5.9-1ubuntu4.6.
    2. Got a database dump and wp-content files.
    3. Restored the database locally and put the wp-content files in place.
    3b. Edited wp0_options where option_name is siteurl and home to fit the local url (http://prod.wp.ellevator.local).
    4. Got my local site up and running locally – it works fine with settings-permalink set to default
    5. However, the permalinks with “post name” don’t work the way they did on the original host.
    6. I granted everyone write acces to the virtual host directory, and wordpress created an .htaccess file with the code below.
    7. I restarted the apache2 service.
    8. The problem persists.
    9. I figured out that mod_rewrite was not enabled and did this as root:
    a2enmod rewrite
    /etc/init.d/apache2 restart
    10. The problem persists.

    .htaccess file content:

    # BEGIN WordPress
    <IfModule mod_rewrite.c>
    RewriteEngine On
    RewriteBase /
    RewriteRule ^index\.php$ - [L]
    RewriteCond %{REQUEST_FILENAME} !-f
    RewriteCond %{REQUEST_FILENAME} !-d
    RewriteRule . /index.php [L]
    </IfModule>
    # END WordPress

    Any suggestions?

Viewing 2 replies - 1 through 2 (of 2 total)
  • Thread Starter jonas-e

    (@jonas-e)

    Here is what my apache virtual host looks like:

    <VirtualHost *:80>
    	DocumentRoot /mnt/jbod_01/jonas/sites/ellevator.net/apache/prod.wp.ellevator.local
    	ServerName prod.wp.ellevator.local
    	#ServerAlias prod.wp.ellevator.local
    </VirtualHost>

    And my apache2.conf:

    <Directory /mnt/jbod_01/jonas/sites/ellevator.net/apache/>
    	Options Indexes FollowSymLinks
    	AllowOverride None
    	Require all granted
    </Directory>

    Thread Starter jonas-e

    (@jonas-e)

    Yo, it seems I figured it out! Added directory to my virtualhost with allowoverride all option:

    <VirtualHost *:80>
    	DocumentRoot /mnt/jbod_01/jonas/sites/ellevator.net/apache/prod.wp.ellevator.local
    	ServerName prod.wp.ellevator.local
    	<Directory /mnt/jbod_01/jonas/sites/ellevator.net/apache/prod.wp.ellevator.local>
    		Options FollowSymLinks
    		AllowOverride All
    	</Directory>
    </VirtualHost>

    – and restarted the apache2 deamon.

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘permalink not working after migration to localhost’ is closed to new replies.