Please whitelist cPanel in your adblocker so that you’re able to see our version release promotions, thanks!

The Community Forums

Interact with an entire community of cPanel & WHM users!

Something downloads randomly

Discussion in 'Workarounds and Optimization' started by Johnny Patino, Mar 8, 2019.

  1. Johnny Patino

    Johnny Patino Registered

    Joined:
    Mar 8, 2019
    Messages:
    4
    Likes Received:
    0
    Trophy Points:
    1
    Location:
    Unknown
    cPanel Access Level:
    Website Owner
    Whenever I click something (The login button) it downloads a file. I don't want it to download it but I want it to go to the page.

    [removed]
    (Soon to be) [removed]
     
    #1 Johnny Patino, Mar 8, 2019
    Last edited by a moderator: Mar 8, 2019
  2. cPanelLauren

    cPanelLauren Forums Analyst II Staff Member

    Joined:
    Nov 14, 2017
    Messages:
    6,456
    Likes Received:
    503
    Trophy Points:
    263
    Location:
    Houston
    cPanel Access Level:
    DataCenter Provider
    Which login button are you clicking? Is that something on your site? If when you click login on your domain it goes to a download it's more than likely an incorrect .htaccess entry. Which PHP version are you using and what is shown in the .htaccess?
     
    Stop hovering to collapse... Click to collapse... Hover to expand... Click to expand...
  3. Johnny Patino

    Johnny Patino Registered

    Joined:
    Mar 8, 2019
    Messages:
    4
    Likes Received:
    0
    Trophy Points:
    1
    Location:
    Unknown
    cPanel Access Level:
    Website Owner
    HTACCESS:
    Code:
    # php -- BEGIN cPanel-generated handler, do not edit
    # Set the “ea-php70” package as the default “PHP” programming language.
    <IfModule mime_module>
    AddType application/x-httpd-ea-php70___lsphp .php .php7 .phtml
    </IfModule>
    # php -- END cPanel-generated handler, do not edit
    
    RewriteEngine on
    RewriteCond %{REQUEST_FILENAME} !-d
    RewriteCond %{REQUEST_FILENAME}\.html -f
    RewriteRule ^(.*)$ $1.html [NC,L]
    upload_2019-3-8_17-31-56.png
     
  4. Johnny Patino

    Johnny Patino Registered

    Joined:
    Mar 8, 2019
    Messages:
    4
    Likes Received:
    0
    Trophy Points:
    1
    Location:
    Unknown
    cPanel Access Level:
    Website Owner
    I Click login and it downloads the file
     
  5. cPanelLauren

    cPanelLauren Forums Analyst II Staff Member

    Joined:
    Nov 14, 2017
    Messages:
    6,456
    Likes Received:
    503
    Trophy Points:
    263
    Location:
    Houston
    cPanel Access Level:
    DataCenter Provider
    and on that site are you running php 7.0 using lsphp?

    Code:
    AddType application/x-httpd-ea-php70___lsphp .php .php7 .phtml
     
    Stop hovering to collapse... Click to collapse... Hover to expand... Click to expand...
  6. Johnny Patino

    Johnny Patino Registered

    Joined:
    Mar 8, 2019
    Messages:
    4
    Likes Received:
    0
    Trophy Points:
    1
    Location:
    Unknown
    cPanel Access Level:
    Website Owner
    I don’t know, where can I find out?
     
  7. cPanelLauren

    cPanelLauren Forums Analyst II Staff Member

    Joined:
    Nov 14, 2017
    Messages:
    6,456
    Likes Received:
    503
    Trophy Points:
    263
    Location:
    Houston
    cPanel Access Level:
    DataCenter Provider
    Hi @Johnny Patino

    Depending on what your provider is using you should be able to go to cPanel>>Software>>MultiPHP manager and see the settings or cPanel>>Software>>PHP Selector if your provider is using CloudLinux. They should be able to let you know those things if you're unsure how to move forward.
     
    Stop hovering to collapse... Click to collapse... Hover to expand... Click to expand...
Loading...

Share This Page

  1. This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
    By continuing to use this site, you are consenting to our use of cookies.
    Dismiss Notice