Instead of your WordPress homepage, the browser shows lines of code starting with <?php, or offers to download index.php. This means the web server is not processing PHP files in that folder, so it sends them as plain text.
The cause is almost always a missing or damaged PHP handler in the .htaccess file, often after a plugin, migration or manual edit rewrote the file.
Security note: while the problem lasts, visitors may be able to read files such as wp-config.php if they are served as text. Fix it promptly and consider changing your database password afterwards.Fix 1: Re-save your PHP version in StackCP
- Log in to your FimuroHost client area, go to Services, select your hosting plan and click Login to Control Panel / StackCP.
- Open the PHP version setting for the site.
- Select one of the current PHP 8.x versions supported by your plugins and theme, and save.
- Reload your site in a private browser window.
Saving the version rewrites the handler block in .htaccess, which fixes most cases.
Fix 2: Add the handler to .htaccess yourself
- Open the File Manager in StackCP (or connect with SFTP).
- Go to your document root, the folder that contains
wp-config.php(usuallypublic_html). Enable showing hidden files if you cannot see.htaccess. - Download a copy of
.htaccessas a backup. - Edit the file and check the very top. It should start with a PHP version block like this:
Here#+PHPVersion #="phpXX" AddHandler x-httpd-phpXX .php #-PHPVersionXXstands for the PHP version without the dot. Older sites may showphp74(PHP 7.4), which is out of date. - If the block is missing, broken or duplicated further down, put a single correct block at the very top, keep the WordPress rules (
# BEGIN WordPress…# END WordPress) below it, and save.
Tip: the simplest way to get the exact correct block for your chosen version is Fix 1, then compare with your backup copy.
Still not working?
- Clear the CDN cache in StackCP (Edge Caching → Purge Everything) so an old plain-text copy is not being served.
- Check for other
.htaccessfiles in subfolders that set a different handler. - Confirm the file is really named
index.phpand notindex.php.txtor similar.
Need help?
If anything here does not work as described, our team is happy to take a look. Open a support ticket from your FimuroHost client area or message us on WhatsApp at 01818160926.
Categories
Written by
FimuroHost Team
Technical Writer