Downloads index php instead of opening - can't login or access website

sanehia

Registered
Aug 26, 2014
2
0
1
cPanel Access Level
Website Owner
Hello, when I try to access my website homepage or login, it tries to download the page instead of opening like normal.
I checked permissions files=644 & folder=755 & rename htaccess .Any ideas?
I'm using WordPress cms

please help me
thanks
 

cPanelMichael

Administrator
Staff member
Apr 11, 2011
47,904
2,218
463
Hello :)

Do you have root access to this server? If not, check for any additional .htaccess files within the account's home directory to see if there are entries causing this behavior. Otherwise, consult with your web hosting provider to see if they can troubleshoot the issue.

Thank you.
 

sanehia

Registered
Aug 26, 2014
2
0
1
cPanel Access Level
Website Owner
Hello,thanks for your reply.
i don't have root access, but i can send ticket to my hosting provider.
.htaccess in home directory:
# Use PHP54 as default
AddHandler application/x-httpd-php54 .php
<IfModule mod_suphp.c>
suPHP_ConfigPath /opt/php54/lib
</IfModule>
.htaccess in public_html directory:
# 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
when i rename htaccess file in home directory , show this error:
Warning: Cannot modify header information - headers already sent by (output started at /home/usermyhost/public_html/wp-config.php:1) in /home/usermyhost/public_html/wp-includes/pluggable.php on line 899

(In addition, this problem occurred after server migration)

Thanks
 

cPanelMichael

Administrator
Staff member
Apr 11, 2011
47,904
2,218
463
I suggest reporting this issue to your hosting provider so they can address the problem from the "root" level. It's likely the new server is configured differently than the previous one, rendering your custom .htaccess entries invalid.

Thank you.