How to fix file getting download issue while opening website?

Follow the beelow mentioned steps to fix the issue.

Step::1 Login to cPanel.

Step::2 Click on File Manager in FILES section.

Step::3 Go to public_html.

Step::4 Edit .htaccess file.

Step::5 Remove the lines given below from .htaccess file.

<If Module mime_module>
AddHandler application/x-httpd-alt-php54 .php .php7 .phtml 
</If Module>

Step::6 Save the file and close the editor.

That's It !
Check out the video tutorial to get in detailed procedure. You may refer to the blog as well.
  • How to Fix-application/x/httpd-php file getting download issue w, How to fix save file dialog box appear while opening a website, how to fix file (application/x/httpd-php) getting download issue, How to fix file getting download issue while opening website, PHP files downloading instead of executing, AddType in htaccess causes page to download
  • 0 Users Found This Useful
Was this answer helpful?

Related Articles

How to Install WordPress in Sub-Directory?

Login to cPanel. Select Softaculous Apps Installer from Software section. Select WordPress...

How to Restore Backups Using JetBackup 4 in cPanel?

Login to cPanel and get inside JetBackups section. Here, you will find multiple features which...

How to Suspend Outgoing Emails of a cPanel Account as WHM Reseller?

To manage the bulk mailing that occurred from a cPanel account hosted within your WHM Reseller,...

How Can You Create/Install WordPress On Sub-Domains?

#1. Create a subdomain of your main domain Log into your cPanel and go to the Subdomains...

How to disallow a particular directory from being crawled by Google?

Login to your cPanel Go inside File Manager Click on public_html Create a robots.txt file....