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.

Still got problems with PHPSuexec...

Discussion in 'General Discussion' started by mpierre, May 12, 2003.

  1. mpierre

    mpierre Well-Known Member

    Joined:
    Jun 30, 2002
    Messages:
    196
    Likes Received:
    0
    Trophy Points:
    16
    I Installed PHPSuexec this weekend, and it works great !


    • PHP Scripts can indeed have 0400 permissions which protects them from other users.
    • 0600 is enough for config files... no need to have 0666
    • No more bounced e-mails.
    • A lot more secure...
    • The cron running every minute fixes 98% of the problems
    • 1% is caused by PHP directives in .htaccess

    However, that leaves another 1% not working.

    I tried

    /scripts/fixheaders

    But no luck.

    I get a Premature end of script headers for them...

    nothing more

    What is even weirder, is that I copied a valid working script to another directory in SSH, chowned the files to the proper owner and chmod to 0700 all the files, and yet I still get the error...


    When I execute php file in SSH, I do get the correct output thought...


    What is even weirder, is that on some directories I get a :
    "Forbidden
    You don't have permission to access XXX on this server"

    yet, there are supposed to be accessible...

    Any hints ?
     
  2. mpierre

    mpierre Well-Known Member

    Joined:
    Jun 30, 2002
    Messages:
    196
    Likes Received:
    0
    Trophy Points:
    16
    Ok, I discovered the directory was owned by Root, but I still cannot access the sub-directory !!!

    I still get the problem with the "forbidden"
     
  3. mpierre

    mpierre Well-Known Member

    Joined:
    Jun 30, 2002
    Messages:
    196
    Likes Received:
    0
    Trophy Points:
    16
    The directory was by mistake 0700...

    I changed it to 0755 and it now works !
     
  4. chican0

    chican0 Well-Known Member

    Joined:
    Mar 26, 2003
    Messages:
    59
    Likes Received:
    0
    Trophy Points:
    6
    Location:
    Los Angeles
    Looks like you fixed all of your own problems. Cool deal.

    No more Premature End of Script errors?
     
Loading...

Share This Page