Please whitelist cPanel in your adblocker so that you’re able to see our version release promotions, thanks!

The Community Forums

Interact with an entire community of cPanel & WHM users!

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:
    306
    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:
    316
    [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:
    306
    Or add it to the Virtual entry for the domain in httpd.conf

    Myros
     
    Stop hovering to collapse... Click to collapse... Hover to expand... Click to expand...
  4. cass

    cass Well-Known Member

    Joined:
    Jul 17, 2002
    Messages:
    354
    Likes Received:
    0
    Trophy Points:
    166
    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 ?
     
    Stop hovering to collapse... Click to collapse... Hover to expand... Click to expand...
Loading...

Share This Page

  1. This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
    By continuing to use this site, you are consenting to our use of cookies.
    Dismiss Notice