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.

phpsuexec

Discussion in 'General Discussion' started by kuwaitnt, May 17, 2006.

  1. kuwaitnt

    kuwaitnt Well-Known Member

    Joined:
    Oct 13, 2003
    Messages:
    75
    Likes Received:
    0
    Trophy Points:
    6
    hello all

    please can any one help us to fix this issue

    iam set sae_mode to on and global_registres to off :) it is great
    and i have use phpsusexe :) also that great

    but i have set

    safe_mode to off
    global_registres to on

    for 1 domain

    i use this

    <VirtualHost XXX>
    ServerAlias XXXnet
    ServerAdmin webmaster@XXX.net
    <IfModule mod_php4.c>
    php_admin_value open_basedir "/home/XXX:/usr/lib/php:/usr/local/lib/php:/tmp"
    php_admin_flag safe_mode Off
    php_admin_flag register_globals On
    </IfModule>
    #php_admin_flag safe_mode Off
    #php_admin_flag register_globals On
    DocumentRoot /home/XXX/public_html


    the safe_mode and global_registres dowsn't change value

    when i use

    <VirtualHost XXX>
    ServerAlias XXX.net
    ServerAdmin webmaster@XXX.net
    php_admin_flag safe_mode Off
    php_admin_flag register_globals On
    DocumentRoot /home/XXXpublic_html

    it change the value but i have error after support phpsuexec


    so how can i use

    php_admin_flag register_globals On
    DocumentRoot /home/XXXpublic_html

    with phpsuexec ??

    it was work great before i setup phpsuexec
     
  2. AndyReed

    AndyReed Well-Known Member
    PartnerNOC

    Joined:
    May 29, 2004
    Messages:
    2,222
    Likes Received:
    3
    Trophy Points:
    38
    Location:
    Minneapolis, MN
    Since Phpsuexec is installed/activated on your server, Php scripts and/or documents should be owned by user:group and can NOT be world writable. Phpsuexec deals exclusively with Php. In addition, some directives in .htaccess may not work. This is because php is no longer running as an apache module and apache will not handle those directives any longer.
     
  3. kuwaitnt

    kuwaitnt Well-Known Member

    Joined:
    Oct 13, 2003
    Messages:
    75
    Likes Received:
    0
    Trophy Points:
    6
    thanks andy


    but if i set safe_mode to off now it is secure ??
     

Share This Page