1. This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn More.

Internal Server Error after PHP upgrade

Discussion in 'Troubleshooting and Problems' started by D.O.A., Jan 9, 2011.

  1. D.O.A.

    D.O.A. Well-Known Member

    Hi all, I've updated php to 5.3.4 via easyapache and run latest PHP now with apache 2.2, my wordpress sites and old vbulletin forum are okay but xenforo is throwing back 500 internal server error, the only page I can access is index.php?upgrade/ but clicking login returns the error.
    Mod rewrite is okay on the other sites also.

    I have suphp enabled for php5 as the handler but wordpress is running cache folders etc with 777 permissions and I cant see why xenforo would only have the permission issue.

    I've tried rewrite base /, /forum, /public_html/forum etc with no luck.
    Anyone see or thing of a reason this would happen? php.ini or httpd.conf settings?
     
  2. Blandt

    Blandt Well-Known Member

    Do you have access to the backend? if you do turn off the SEO option ... if it fixes it .. then it's your .htaccess
     
  3. D.O.A.

    D.O.A. Well-Known Member

    No access for admin.php, 500 error. It's got to be a server setting but I just cant work it out, as my other domains and subdomains are fine.
     
  4. Brogan

    Brogan XenForo Moderator Staff Member

    Is there anything in the server logs?

    Permissions can sometimes cause this - are all the directories chmodded correctly?
     
  5. D.O.A.

    D.O.A. Well-Known Member

    I can run phpinfo though in a php file, what the heck... only xenforo php files 500 on me :/
     
  6. Blandt

    Blandt Well-Known Member

    hmmm Also do you have any opcode installed ? (APC ..etc.. )
     
    D.O.A. likes this.
  7. D.O.A.

    D.O.A. Well-Known Member


    Nothing changed with folder permissions since the upgrade, at least nt that I know of. It's files 644 and 755/777 folders still.
     
  8. D.O.A.

    D.O.A. Well-Known Member

    ahh yeah I do... uh oh I'm guessing
     
  9. Blandt

    Blandt Well-Known Member

    Would you post your APC settings (either in your php.ini or referenced in it)
     
  10. D.O.A.

    D.O.A. Well-Known Member

    HTML:
    APC Support    enabled
    Version    3.1.4
    

     
  11. D.O.A.

    D.O.A. Well-Known Member

    no probs be right back
     
  12. Blandt

    Blandt Well-Known Member

    Turn it off ... (comment it out) and see if that's the problem
     
  13. D.O.A.

    D.O.A. Well-Known Member

    PHP:
    apc.slam_defense Off
    is the only reference in php.ini I can see
    APC Support enabled Version 3.1.4
    shows in the phpinfo.php file I created on the forum domain, that strangely works.
     
  14. Blandt

    Blandt Well-Known Member

    can you edit the php.ini file?
    (in the phpinfo.php the first box should tell you the path of the loaded php.ini)
     
  15. D.O.A.

    D.O.A. Well-Known Member

    I got it, found APC and diabled it, restarted apache and same 500 error.
    ;extension=apc.so
    ;apc.slam_defense = Off

    would it be possible this is some kind of owner permission at the server level, like something screwed up with easyapache? Funny a phpinfo file will run with the same permissions (644) and user as the xenforo files but erorr out

    error_log tail

    suexec log tail

     
  16. Blandt

    Blandt Well-Known Member

    No .. this is not a server permission issue. permission errors will tell you : hey you are out of line :D get out of here

    Internal error means php went haywire, a corrupted file may give this error... could you reupload the files again? (the upgrade package)
     
  17. D.O.A.

    D.O.A. Well-Known Member

    okay I'll try re-uploading the files now...thank god I made backups of the database as well etc before all this went down :)
     
  18. Blandt

    Blandt Well-Known Member

    Database is not the cause
     
  19. D.O.A.

    D.O.A. Well-Known Member

    Uploaded upgrade files again, no luck. So I created a new subdomain and started the installer with a fresh full version copy uploaded. As it began the actual DB installation it stopped @index.php?install/step/2b, noted a error (but no info) and promptly crashed to a 500 page.

    I've contacted the level 3 tech so hopefully he'll be able to shed some light on this. Basically the easyapache update killed xenforo, there was no file alterations or corrupt files before it began and things worked well. Will keep this posted on the cause/solution as soon as we find it.
     
  20. D.O.A.

    D.O.A. Well-Known Member

    Appears to be user related, should have it worked out when rebuilt next. Permissions :oops: :D

    PHP:
    info [rebuildhttpdconfDomain ownership conflict detected for forum.domain.comusers UserID1UserID2 
     

Share This Page