Results 1 to 4 of 4
  1. #1
    Join Date
    Nov 2006
    Posts
    459

    will cgi、suphp affect the code running?

    HI,

    i have a server with whm/cpanel,

    i use the "Apache Update" to compile the php4、php5 of the server,

    and i set the "PHP 5 Handler" as cgi,

    some account tell me his php script can not login any more,

    i want to ask,if i changing to cgi will affect it?


    if yes, how can i solve it?



    thanks

  2. #2
    Join Date
    Sep 2002
    Location
    Top Secret
    Posts
    11,687
    Suphp will, in fact, affect user scripts. I've seen it many, many times. From poor permissions (sometimes you need them, sadly, as developers aren't always thinking about security).

    Personally, I'd say remove suphp and use suhosin instead. Fewer affects, and the script seems to hold it's own as far as security is related.
    WHMCS Guru - WHMCS addons, management, support and more.
    WHMCS Notifications Extended - Add slack, hipchat, SMS, pushover to WHMCS !!
    Always looking for Linux, WHMCS, Support Desk work. PM for details

  3. #3
    Join Date
    Apr 2003
    Location
    San Jose, CA.
    Posts
    1,622
    Often problems with a php scripts not being able to login anymore, deal with the changes to the system not being able to save session data where the default location is.

    Check your php.ini for
    session.save_path = "/var/lib/php/session"

    and maybe change that to:
    session.save_path = "/tmp"

    or change permissions on above so it's writeable by users.
    Daved @ Lightwave Networking, LLC.
    AS1426 https:/www.lightwave.net
    Primary Bandwidth: EGIHosting (NLayer, NTT, HE, Cogent)
    Xen PV VPS Hosting

  4. #4
    Join Date
    Nov 2006
    Posts
    459
    Quote Originally Posted by Lightwave View Post
    Often problems with a php scripts not being able to login anymore, deal with the changes to the system not being able to save session data where the default location is.

    Check your php.ini for
    session.save_path = "/var/lib/php/session"

    and maybe change that to:
    session.save_path = "/tmp"

    or change permissions on above so it's writeable by users.

    Hi,Lightwave,

    i put a customized php.ini in the folder of the account,

    and it looks likely solve the problem of the account.



    i doubt why the account can not work with login problem,

    but other websites(like vBulletin forum) do not take such problem.


    thanks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •