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.

URGENT: sites doesnt load properly with PHPSuexec

Discussion in 'General Discussion' started by hmm, Feb 16, 2006.

  1. hmm

    hmm Well-Known Member

    Joined:
    Jan 11, 2006
    Messages:
    56
    Likes Received:
    0
    Trophy Points:
    6
    Location:
    India
    Hi,
    I just recomplied apache with PHPSuexec option enabled. But now the issue is, sites are not loading properly. i.e. it does not load the images, css files etc...

    I have already ran the script /scripts/chownpublichtmls but nothing works..

    Can anyone just give me some pointers?

    Deep

    P.S. I tried to recomplie apache without phpsuexec option but after doing that apache fails and nothing works at all.
     
  2. TSJasonH

    TSJasonH Active Member
    PartnerNOC

    Joined:
    Nov 25, 2003
    Messages:
    34
    Likes Received:
    0
    Trophy Points:
    6
    Location:
    Chicago, IL
    Chances are that your php app doesn't support php in cgi mode. First check to make sure that you chmod 755 to your php script because now they will be executed as your user instead of being called and parsed via libphp in apache.

    If you want to disable phpsuexec you should be able to edit your httpd.conf and reactivate (remove the leading '#') the LoadModule and AddModule lines for libphp, and restart apache.

    If you changed your php version while running easyapache + phpsuexec you should run it again without phpsuexec to make sure that the libphp.so get's updated to the same version of your binary.
     
  3. hmm

    hmm Well-Known Member

    Joined:
    Jan 11, 2006
    Messages:
    56
    Likes Received:
    0
    Trophy Points:
    6
    Location:
    India
    Hi,
    Thanks for the help but I just got it fixed by paying servertune.com (Andy)

    He fixed the issue.

    Thanks again for the help.

    Regards,
    Deep
     
  4. budway

    budway Well-Known Member

    Joined:
    Apr 16, 2003
    Messages:
    186
    Likes Received:
    0
    Trophy Points:
    16
    What was the issue?
     
  5. hmm

    hmm Well-Known Member

    Joined:
    Jan 11, 2006
    Messages:
    56
    Likes Received:
    0
    Trophy Points:
    6
    Location:
    India
    Hi,
    The issue was with corrupt syntax in some conf file. Andy checked it and fixed it.

    Deep
     
Loading...

Share This Page