Wordpress Only homepage works

I recently configured LAMP on Ubuntu 14.04 x32 but only the homepage works:

I enabled mod_rewrite in apache and created .htaccess file but it doesn’t seem to be working.

Any help would be appreciated.

Submit an answer

This textbox defaults to using Markdown to format your answer.

You can type !ref in this text area to quickly search our full set of tutorials, documentation & marketplace offerings and insert the link!

Sign In or Sign Up to Answer

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.

Want to learn more? Join the DigitalOcean Community!

Join our DigitalOcean community of over a million developers for free! Get help and share knowledge in Q&A, subscribe to topics of interest, and get courses and tools that will help you grow as a developer and scale your project or business.

Kamal, thanks for your your help! <br> <br>I finally fixed the issue following this answers: <br> <br>

Thanks Kamal, after adding the lines above this is the error I am getting: <br> <br> <br>Notice: Constant WP_DEBUG already defined in /var/www/html/wp-config.php on line 93 <br> <br>Parse error: syntax error, unexpected end of file in /var/www/html/wp-content/themes/caminadog/index.php on line 1179 <br> <br>– <br>What could be causing the unexpected end of file? <br> <br>Thanks! <br> <br>@Marinos Sianios: Thanks, but I had the same issue with the domain name, that’s why I had to use only IP.

Looks like a php error. Try adding the following lines to <code>wp-config.php</code> (after the first line, <code><?php</code>) and then reloading the page – do you see any errors?<pre>@ini_set( ‘log_errors’, ‘Off’ ); <br>ini_set( ‘display_errors’, ‘On’ ); <br>ini_set( ‘error_reporting’, E_ALL ); <br>define( ‘WP_DEBUG’, true ); <br>define( ‘WP_DEBUG_LOG’, false ); <br>define( ‘WP_DEBUG_DISPLAY’, true );</pre>Make sure to delete them once you’re done as it’s considered a security risk.