The Community Forums

Interact with an entire community of cPanel & WHM users!
  1. This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn More.

php does not work at root level after upgrading with EA3

Discussion in 'General Discussion' started by ronjo, May 3, 2016.

  1. ronjo

    ronjo Member

    Joined:
    Jul 4, 2014
    Messages:
    7
    Likes Received:
    0
    Trophy Points:
    1
    cPanel Access Level:
    Website Owner
    I upgraded my php to version 5.5.34 witn EA3.

    On one of my domains php gives error 500, but only at root level. Code in folders works fine.
    Any suggestions what to look for?
     
  2. 24x7server

    24x7server Well-Known Member

    Joined:
    Apr 17, 2013
    Messages:
    1,146
    Likes Received:
    34
    Trophy Points:
    48
    Location:
    India
    cPanel Access Level:
    Root Administrator
    Hello :),

    Have you checked your .htaccess code of your root directory ? let know what exact error are you getting in apache error logs file.
     
  3. cPanelMichael

    cPanelMichael Forums Analyst
    Staff Member

    Joined:
    Apr 11, 2011
    Messages:
    30,854
    Likes Received:
    676
    Trophy Points:
    113
    cPanel Access Level:
    Root Administrator
    Hello,

    Could you let us know the error messages listed under the "Errors" option in cPanel when you see the error in your web browser? This option is documented at:

    Errors - Documentation - cPanel Documentation

    We should be able to help narrow down the problem with the full error message.

    Thank you.
     
  4. ronjo

    ronjo Member

    Joined:
    Jul 4, 2014
    Messages:
    7
    Likes Received:
    0
    Trophy Points:
    1
    cPanel Access Level:
    Website Owner
    1. I have no .htaccess at root level.
    2. The error I get: [05-May-2016 08:35:49 UTC] PHP Fatal error: Directive 'allow_call_time_pass_reference' is no longer available in PHP in Unknown on line 0
     
  5. cPanelMichael

    cPanelMichael Forums Analyst
    Staff Member

    Joined:
    Apr 11, 2011
    Messages:
    30,854
    Likes Received:
    676
    Trophy Points:
    113
    cPanel Access Level:
    Root Administrator
    The "allow_call_time_pass_reference" directive is no longer available in the version of PHP installed on your system. Are you using a custom php.ini file within your account? If so, ensure you rename it to disable it, and then copy the file from /usr/local/lib/php.ini to the account. Or, if you are defining that value in your account's .htaccess file, ensure you remove the entry.

    Thank you.
     
  6. ronjo

    ronjo Member

    Joined:
    Jul 4, 2014
    Messages:
    7
    Likes Received:
    0
    Trophy Points:
    1
    cPanel Access Level:
    Website Owner
    No, I am not using a custom php.ini what I am aware of.
    And even if I did, how does that only cause this error at root level?
    Where should the custom php.ini been placed?
     
  7. cPanelMichael

    cPanelMichael Forums Analyst
    Staff Member

    Joined:
    Apr 11, 2011
    Messages:
    30,854
    Likes Received:
    676
    Trophy Points:
    113
    cPanel Access Level:
    Root Administrator
  8. ronjo

    ronjo Member

    Joined:
    Jul 4, 2014
    Messages:
    7
    Likes Received:
    0
    Trophy Points:
    1
    cPanel Access Level:
    Website Owner
    No, this is not WP. The index.php just contained a header redirect.
    Like <?php header("Location: http://domain.xx/1/"); ?>

    I replaced it with a js redirect. But I have other php scripts in the root that is harder to replace.
    I think it is some server directive that remain from previous installation...
     
  9. cPanelMichael

    cPanelMichael Forums Analyst
    Staff Member

    Joined:
    Apr 11, 2011
    Messages:
    30,854
    Likes Received:
    676
    Trophy Points:
    113
    cPanel Access Level:
    Root Administrator
    Feel free to open a support ticket using the link in my signature so we can take a closer look. You can post the ticket number here so we can update this thread with the outcome.

    Thank you.
     
Loading...

Share This Page