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.

safe mode per domain

Discussion in 'General Discussion' started by NetGeek, Aug 26, 2002.

  1. NetGeek

    NetGeek Well-Known Member

    Joined:
    Mar 4, 2002
    Messages:
    67
    Likes Received:
    0
    Trophy Points:
    6
    hi

    how do u turn safe mode off for one domain only ? (it is on in the global php.ini)


    NetGeek
     
  2. parag

    parag Well-Known Member

    Joined:
    Aug 16, 2001
    Messages:
    115
    Likes Received:
    0
    Trophy Points:
    16
    [quote:d8e9a94f81][i:d8e9a94f81]Originally posted by NetGeek[/i:d8e9a94f81]



    hi

    how do u turn safe mode off for one domain only ? (it is on in the global php.ini)


    NetGeek

    [/quote:d8e9a94f81]

    you can do that using .htaccess file

    put up one .htaccess file in the document root of that particular domain which has following lines

    php_flag safe_mode off

    thats it
    cheers
    Parag
     
  3. myros

    myros Active Member

    Joined:
    Dec 16, 2001
    Messages:
    42
    Likes Received:
    0
    Trophy Points:
    6
    Or add it to the Virtual entry for the domain in httpd.conf

    Myros
     
  4. cass

    cass Well-Known Member

    Joined:
    Jul 17, 2002
    Messages:
    354
    Likes Received:
    0
    Trophy Points:
    16
    Location:
    Argentina/USA/Mexico
    can someone explain a little more how can I customize php setting for a specific virtual host ?
    like ... the mail() thing ...
    for most users ... is better the &Nobody (nobody@your.domain.com) in behalf of USER& ... or whatever ... this can prevent spam using php or something ... dont it?
    But I need some users to send emails using php ... but with real info ....
    I have the problem to not know how can I configure php so that i.e. &user1& can send emails as &user1@userdomain.com& instead of &nobody@hostdomain.com& ...

    anyone ?
     
Loading...

Share This Page