Wordpress Permission issue Ubuntu 16.04

Posted December 7, 2016 3.5k views
WordPressUbuntu 16.04

Hello I recently Moved one of my existing site from the older hosting to the new Droplet at the Digital ocean. When I moved all the files yet I wasn’t able to see the output of the files. It always showcased error 500.
So at the droplet I ran a command sudo chown -R www-data:www-data /var/www/html/<siteFolder>
So my website homepage was live. When I move from any other page It shows Page Not Found

The requested URL /product/millennial-backpack-extended/ was not found on this server.

While I am able to login in my Wordpress admin backend everything is fine there. Also redo the permanant links as well. Still the issue persist. I am unable to access any page other than the homepage of the site.

These answers are provided by our Community. If you find them useful, show some love by clicking the heart. If you run into issues leave a comment, or add your own answer to help others.

Submit an Answer
1 answer

After resetting the permalinks settings the next thing I would check in this case is your Apache configuration file in /etc/apache2/sites-enabled/ Inside a <Directory /var/www/html/> section you will need to make sure that AllowOverride All is set instead of AllowOverride None. This setting allows apache to use directives placed in .htaccess files (the way WordPress does permalink rewrite settings).