letstalk
By:
letstalk

Wordpress Permission issue Ubuntu 16.04

December 7, 2016 348 views
WordPress Ubuntu 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.

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).

Have another answer? Share your knowledge.