title: wordpress blank page for permalink redirect on apache2 server
body: <p>I try to migrate my wordpress from old server to new aws server.
  I can visit the homepage, but the permalink page like:</p>
  
  <pre><code>https://ec2-34-218-47-207.us-west-2.compute.amazonaws.com/homepage/
  </code></pre>
  
  <p>which is blank and nothing in there.</p>
  
  <p>I use admin:admin as user and group.</p>
  
  <p>the apache2.conf is:</p>
  
  <pre><code># These need to be set in /etc/apache2/envvars
  #User ${APACHE_RUN_USER}
  #Group ${APACHE_RUN_GROUP}
  User admin
  Group admin
  </code></pre>
  
  <p>I change user and group for it is convinent to use sftp to upload and download the files </p>
  
  <p>The directory is:</p>
  
  <pre><code>drwxr-xr-x  5 admin admin        4096 Aug 14 10:33 .
  drwxr-xr-x  3 admin admin        4096 Jul 30 13:46 ..
  -rw-r--r--  1 admin admin    32673740 Jul 31 00:37 backup
  -rw-r--r--  1 admin admin    33244158 Aug  1 07:40 backup200
  -rw-rw-r--  1 admin www-data     2291 Aug  2 00:24 .htaccess
  -rw-r--r--  1 admin admin         470 Aug  1 14:15 .htaccess.save
  -rw-r--r--  1 admin admin         418 Sep 25  2013 index.php
  -rw-r--r--  1 admin admin     9503425 Jul  5 16:08 latest.zip
  -rw-r--r--  1 admin admin       19935 Jan  6  2018 license.txt
  -rw-r--r--  1 admin admin         181 Jul 25 01:41 phpinfo.php
  -rw-r--r--  1 admin admin        7415 Aug 14 10:08 readme.html
  -rw-r--r--  1 admin admin        5458 May  1 22:10 wp-activate.php
  drwxr-xr-x  9 admin admin        4096 Jul 31 05:07 wp-admin
  -rw-r--r--  1 admin admin         364 Dec 19  2015 wp-blog-header.php
  -rw-r--r--  1 admin admin        1889 May  2 22:11 wp-comments-post.php
  -rw-r--r--  1 admin admin        3111 Aug  2 00:24 wp-config.php
  -rw-r--r--  1 admin admin        2853 Dec 16  2015 wp-config-sample.php
  drwxr-xr-x 14 admin admin        4096 Aug 14 10:08 wp-content
  -rw-r--r--  1 admin admin        3669 Aug 20  2017 wp-cron.php
  drwxr-xr-x 18 admin admin       12288 Jul 31 05:09 wp-includes
  -rw-r--r--  1 admin admin        2422 Nov 21  2016 wp-links-opml.php
  -rw-r--r--  1 admin admin        3306 Aug 22  2017 wp-load.php
  -rw-r--r--  1 admin admin       37794 Aug 14 10:08 wp-login.php
  -rw-r--r--  1 admin admin        8048 Jan 11  2017 wp-mail.php
  -rw-r--r--  1 admin admin       16246 Oct  4  2017 wp-settings.php
  -rw-r--r--  1 admin admin       30091 Apr 29 23:10 wp-signup.php
  -rw-r--r--  1 admin admin        4620 Oct 23  2017 wp-trackback.php
  -rw-r--r--  1 admin admin        3065 Aug 31  2016 xmlrpc.php
  </code></pre>
  
  <p>I have already use command line:</p>
  
  <pre><code> a2enmod rewrite 
  </code></pre>
  
  <p>to enable rewrite page.</p>
  
  <p>The .htaccess is:</p>
  
  <pre><code>&lt;IfModule mod_rewrite.c&gt;
  RewriteEngine On
  RewriteBase /
  RewriteRule ^index\.php$ - [L]
  RewriteCond %{REQUEST_FILENAME} !-f
  RewriteCond %{REQUEST_FILENAME} !-d
  RewriteRule . /index.php [L]
  &lt;/IfModule&gt;
  </code></pre>
  
  <p>where is my configuration error?</p>
  
  <p>I try to change the apache2.conf fellow the 
  Samir Sheikh answer, but I get the errror fellow:</p>
  
  <pre><code>-- Unit apache2.service has begun starting up.
  Aug 14 11:46:48 ip-172-30-0-181 apachectl[16169]: AH00526: Syntax error on line 176 of /etc/apache2/
  Aug 14 11:46:48 ip-172-30-0-181 apachectl[16169]: order takes one argument, 'allow,deny', 'deny,allo
  Aug 14 11:46:48 ip-172-30-0-181 apachectl[16169]: Action 'start' failed.
  Aug 14 11:46:48 ip-172-30-0-181 apachectl[16169]: The Apache error log may have more information.
  Aug 14 11:46:48 ip-172-30-0-181 systemd[1]: apache2.service: Control process exited, code=exited sta
  Aug 14 11:46:48 ip-172-30-0-181 systemd[1]: Failed to start The Apache HTTP Server.
  </code></pre>