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!

403 Error When Trying to Use PHP 7.1 or 7.2

Discussion in 'EasyApache' started by sbhooley, Jan 25, 2018.

  1. sbhooley

    sbhooley Member

    Joined:
    Jan 18, 2018
    Messages:
    7
    Likes Received:
    1
    Trophy Points:
    3
    Location:
    USA
    cPanel Access Level:
    Root Administrator
    I have used easyapache4 to install php 7.1, and php 7.2.
    I am using litespeed webserver, and I made sure php 7.1, and 7.2 are both configured there as well.

    I can use php 7.0 no problem. If I try to switch php to 7.1 or 7.2 in any way shape or form my website refuses to load, I only get a 403 error. I checked the error logs and did not find anything helpful.

    Looking for a little guidance on how to troubleshoot/proceed. Thanks!
     
  2. cPanelMichael

    cPanelMichael Technical Support Community Manager
    Staff Member

    Joined:
    Apr 11, 2011
    Messages:
    44,802
    Likes Received:
    1,895
    Trophy Points:
    363
    cPanel Access Level:
    Root Administrator
    Twitter:
    Hello,

    Did you check the Apache error log (/usr/local/apache/logs/error_log) to see if anything appeared when you encountered that error code in your browser? If so, feel free to open a support ticket using the link in my signature so we can take a closer look.

    Thank you.
     
    Stop hovering to collapse... Click to collapse... Hover to expand... Click to expand...
  3. sbhooley

    sbhooley Member

    Joined:
    Jan 18, 2018
    Messages:
    7
    Likes Received:
    1
    Trophy Points:
    3
    Location:
    USA
    cPanel Access Level:
    Root Administrator
    Log shows:

    MIME type [application/x-httpd-php72] for suffix '.php' does not allow serving as static file, access denied!
     
  4. cPanelMichael

    cPanelMichael Technical Support Community Manager
    Staff Member

    Joined:
    Apr 11, 2011
    Messages:
    44,802
    Likes Received:
    1,895
    Trophy Points:
    363
    cPanel Access Level:
    Root Administrator
    Twitter:
    Hello,

    Could you open a support ticket using the link in my signature so we can take a closer look?

    Thank you.
     
    Stop hovering to collapse... Click to collapse... Hover to expand... Click to expand...
  5. sbhooley

    sbhooley Member

    Joined:
    Jan 18, 2018
    Messages:
    7
    Likes Received:
    1
    Trophy Points:
    3
    Location:
    USA
    cPanel Access Level:
    Root Administrator
    Looks like it's not a cpanel issue. Its something to do with litespeed. Feel free to close this, I will take it up with them
     
  6. cool_recep

    cool_recep Member

    Joined:
    Apr 10, 2013
    Messages:
    24
    Likes Received:
    1
    Trophy Points:
    3
    cPanel Access Level:
    Website Owner
    Same problem here. Any solution?
     
  7. cPanelMichael

    cPanelMichael Technical Support Community Manager
    Staff Member

    Joined:
    Apr 11, 2011
    Messages:
    44,802
    Likes Received:
    1,895
    Trophy Points:
    363
    cPanel Access Level:
    Root Administrator
    Twitter:
    Hello,

    Do you have root access to this system? If so, did you check the Apache error log (/usr/local/apache/logs/error_log) to see if anything appeared when you encountered that error code in your browser?

    Thank you.
     
    Stop hovering to collapse... Click to collapse... Hover to expand... Click to expand...
  8. cool_recep

    cool_recep Member

    Joined:
    Apr 10, 2013
    Messages:
    24
    Likes Received:
    1
    Trophy Points:
    3
    cPanel Access Level:
    Website Owner
    I have the root access. It's dedicated server but I have no idea on how to view /usr/local/apache/logs/error_log.
     
  9. cool_recep

    cool_recep Member

    Joined:
    Apr 10, 2013
    Messages:
    24
    Likes Received:
    1
    Trophy Points:
    3
    cPanel Access Level:
    Website Owner
    Code:
    2018-03-19 23:23:26.260342 [NOTICE] [/home/technopa/public_html/sosyal/.htaccess:14] Unsupported ErrorDocument URL: default, must start                                                                                                      with '/' or 'http'.
    2018-03-19 23:23:26.260351 [NOTICE] [/home/technopa/public_html/sosyal/.htaccess:15] Unsupported ErrorDocument URL: default, must start                                                                                                      with '/' or 'http'.
    
    
     
  10. cPanelMichael

    cPanelMichael Technical Support Community Manager
    Staff Member

    Joined:
    Apr 11, 2011
    Messages:
    44,802
    Likes Received:
    1,895
    Trophy Points:
    363
    cPanel Access Level:
    Root Administrator
    Twitter:
    Hello,

    The error message suggests you are using an unsupported ErrorDocument entry in the .htaccess file referenced in the log output. You can remove those entries from the .htaccess file, as custom ErrorDocument entries are not required. Instead, you simply upload the custom error pages to the document roots of the websites and they take affect automatically.

    Thank you.
     
    Stop hovering to collapse... Click to collapse... Hover to expand... Click to expand...
  11. cool_recep

    cool_recep Member

    Joined:
    Apr 10, 2013
    Messages:
    24
    Likes Received:
    1
    Trophy Points:
    3
    cPanel Access Level:
    Website Owner
    I've created a new topic. It is not just XenForo but Wordpress too giving 403.
     
  12. cPanelMichael

    cPanelMichael Technical Support Community Manager
    Staff Member

    Joined:
    Apr 11, 2011
    Messages:
    44,802
    Likes Received:
    1,895
    Trophy Points:
    363
    cPanel Access Level:
    Root Administrator
    Twitter:
    Stop hovering to collapse... Click to collapse... Hover to expand... Click to expand...
    cool_recep likes this.
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