Results 1 to 5 of 5

Thread: Safe Mode!! Help??!?

  1. #1
    Registered User
    Join Date
    Oct 2002
    Posts
    3

    Default Safe Mode!! Help??!?

    How do I turn off safemode for a single account?

    I added php_value safe_mode 0 to the VirtualHost thing in httpd.conf and restarted apache. It dosnt work, I dont get any errors from apache starting but I still get safemode errors. I tried php_value safe_mode off too and no luck

  2. #2
    Member
    Join Date
    Dec 2001
    Posts
    1,558

    Default

    Would this work?

    &IfModule mod_php4.c&
    php_flag safe_mode off
    &/IfModule&
    Beau Henderson

  3. #3
    Member
    Join Date
    Aug 2001
    Posts
    707

    Default

    [quote:cb50def84b][i:cb50def84b]Originally posted by SimGuy[/i:cb50def84b]

    How do I turn off safemode for a single account?

    I added php_value safe_mode 0 to the VirtualHost thing in httpd.conf and restarted apache. It dosnt work, I dont get any errors from apache starting but I still get safemode errors. I tried php_value safe_mode off too and no luck[/quote:cb50def84b]
    What you needed was:

    php_admin_value safe_mode 0

    iminteractive's solution should also work for you.

    If you are disabling safe mode for a particular account you may want to restrict the user moving out of their allocated space for enhanced security by adding this in the VirtualHost:

    php_admin_value open_basedir &/home/username:/tmp&

    Regards,

    Norman

  4. #4
    ozzi4648
    Guest

    Default

    [quote:99561a031f][i:99561a031f]Originally posted by moronhead[/i:99561a031f]

    [quote:99561a031f][i:99561a031f]Originally posted by SimGuy[/i:99561a031f]

    How do I turn off safemode for a single account?

    I added php_value safe_mode 0 to the VirtualHost thing in httpd.conf and restarted apache. It dosnt work, I dont get any errors from apache starting but I still get safemode errors. I tried php_value safe_mode off too and no luck[/quote:99561a031f]
    What you needed was:

    php_admin_value safe_mode 0

    iminteractive's solution should also work for you.

    If you are disabling safe mode for a particular account you may want to restrict the user moving out of their allocated space for enhanced security by adding this in the VirtualHost:

    php_admin_value open_basedir &/home/username:/tmp&

    Regards,

    Norman[/quote:99561a031f]

    That doesnt work either. Where exactly did you place php_admin_value safe_mode 0? Can you give us an example. I have place it everwhere in the virtual domain and nada!

    Fatal error: Dynamically loaded extensions aren't allowed when running in SAFE MODE

  5. #5
    Member
    Join Date
    Mar 2002
    Location
    Alberta, Canada
    Posts
    1,509

    Default

    I would suggest making it the last two lines in the VirtualHost entry for the particular account:

    php_admin_value safe_mode 0
    php_admin_value open_basedir &/home/account_username/tmp&
    &/VirtualHost&

    You'll note that I took out the colon after 'username' as include by ozzi. I'm just guessing here as I don't understand why it is included (I've seen another example using it also) since there is a 'tmp' directory created in the account root, when the account is setup by WHM, so a valid path &should not& need it.


    Now let me ask you a question in return. Wen you got the error msg. &Fatal error&, was that after a Reboot or Apache Restart? I'm having trouble getting 'mod_perl' to install & run properly and I'm wondering if it's because I have PHP running in SafeMode -- although I don't see the connection, anything is possible and &I do want& mod_perl to run.
    Helping people Host, Create, and Maintain their Web Site
    Also providing Server Admin Services - setup / troubleshooting

    http://potentproducts.com/

Similar Threads

  1. safe mode (on or off )
    By Rashad in forum cPanel & WHM Discussions
    Replies: 4
    Last Post: 03-05-2008, 12:30 AM
  2. Safe Mode
    By _sombra_ in forum cPanel & WHM Discussions
    Replies: 0
    Last Post: 02-04-2004, 08:43 PM
  3. Safe Mode - A B.U.G ???
    By donnie in forum cPanel & WHM Discussions
    Replies: 0
    Last Post: 09-11-2003, 11:38 AM
  4. phpsuexec and safe mode
    By Radio_Head in forum cPanel & WHM Discussions
    Replies: 22
    Last Post: 07-22-2003, 09:20 PM
  5. PHP safe mode
    By hugo24 in forum cPanel & WHM Discussions
    Replies: 4
    Last Post: 05-20-2003, 03:58 AM