Skip to main content

403 Error When Trying to Use PHP 7.1 or 7.2

Comments

11 comments

  • cPanelMichael
    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.

    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.
    0
  • sbhooley
    Log shows: MIME type [application/x-httpd-php72] for suffix '.php' does not allow serving as static file, access denied!
    0
  • cPanelMichael
    Hello, Could you open a support ticket using the link in my signature so we can take a closer look? Thank you.
    0
  • sbhooley
    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
    0
  • cool_recep
    Same problem here. Any solution?
    0
  • cPanelMichael
    Same problem here. Any solution?

    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.
    0
  • cool_recep
    I have the root access. It's dedicated server but I have no idea on how to view /usr/local/apache/logs/error_log.
    0
  • cool_recep
    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'.
    0
  • cPanelMichael
    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.
    0
  • cool_recep
    I've created a new topic. It is not just XenForo but Wordpress too giving 403.
    0
  • cPanelMichael
    Hello, We will respond to your new thread shortly: Thank you.
    0

Please sign in to leave a comment.