Wordpress page is getting downloaded instead of displaying

Riyaa

Registered
Mar 5, 2021
3
0
1
Bangalore
cPanel Access Level
Reseller Owner
In C panel, I installed the wordpress and have uploaded necessary information but all it's URL are getting downloaded instead of displaying .. what can be the problem
 

cPRex

Jurassic Moderator
Staff member
Oct 19, 2014
15,139
2,404
363
cPanel Access Level
Root Administrator
Hey there! This is almost always an issue with one of two things - a problem with the .htaccess file on the domain, or an issue with the PHP handler. You'll need to keep the default WordPress data in the .htaccess file, which looks like this, although your PHP version may be different:

Code:
# BEGIN WordPress
<IfModule mod_rewrite.c>
RewriteEngine On
RewriteBase /
RewriteRule ^index\.php$ - [L]
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule . /index.php [L]
</IfModule>

# END WordPress

<Files 403.shtml>
order allow,deny
allow from all
</Files>

# php -- BEGIN cPanel-generated handler, do not edit
# Set the “ea-php56” package as the default “PHP” programming language.
<IfModule mime_module>
  AddHandler application/x-httpd-ea-php56 .php .php5 .phtml
</IfModule>
# php -- END cPanel-generated handler, do not edit
but could you try renaming the .htaccess file temporarily so it can't be read by the system to see if that is the issue?
 

cPRex

Jurassic Moderator
Staff member
Oct 19, 2014
15,139
2,404
363
cPanel Access Level
Root Administrator
I don't see any links included, but we don't allow sites to get posted publicly on the forums for security reasons. If you have root access to the system and you aren't able to track down the problem you're always welcome to open a support ticket with our team so we can check the server directly.
 
  • Like
Reactions: Riyaa

jmorthland

Registered
Mar 7, 2021
1
1
3
98366
cPanel Access Level
Reseller Owner
I had the same issue after making changes to EasyApache, my version of php was removed for some reason and once that was resolved then all worked fine afterwards
 
  • Like
Reactions: cPRex