Report this

What is the reason for this report?

website showing index.html file code

Posted on November 29, 2019

Hello Team,

I have done setup of wordpress. My website was running fine from last 2 months. Today I tried to enable SSL lets encrypt certificate. My website stopped to work. I tried to solve this issue but now it is showing the code of index.php file <?php /

  • Front to the WordPress application. This file doesn’t do anything, but loads
  • wp-blog-header.php which does and tells WordPress to load the theme.
  • @package WordPress */

/**

  • Tells WordPress to load the WordPress theme and output it.
  • @var bool */ define( ‘WP_USE_THEMES’, true );

/** Loads the WordPress Environment and Template */ require( dirname( FILE ) . ‘/wp-blog-header.php’ ); **

Please help me.



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!

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.

I have done it but it is still giving the same error

Hello, @Web1developer

I will recommend you you to check our tutorial on how to install LE SSL on Ubuntu Apache server:

https://www.digitalocean.com/community/tutorials/how-to-secure-apache-with-let-s-encrypt-on-ubuntu-18-04

Hope this helps, let me know if you have any questions.

Regards, Alex

Hello, @Web1developer

Can you please let me know if you’ve tried changing your theme and also changing the permalinks type?

Let me know how it goes.

Regards, Alex

The developer cloud

Scale up as you grow — whether you're running one virtual machine or ten thousand.

Get started for free

Sign up and get $200 in credit for your first 60 days with DigitalOcean.*

*This promotional offer applies to new accounts only.