disable_functions and safemode for Apache 2.2 ?!!

Discussion in 'Apache' started by SZ4h(dot)CoM, Jul 11, 2008.

  1. #1
    Hey everybody
    I got a VPS and I'm a newbie in server management stuff

    I was compiling apache well when using version 1.3
    but after deciding to change the apache to version 2.2 with cgi mode and php5 on cPanel

    I got a problem in some of my sites when I try to enable a function in some directory and put on the safe mode off in some directories

    as the master value for the safe mode on the server is on
    and some scripts have to work under safe mode off environment

    in the old apache version I use htaccess file while place the code in it but when I do this on apache 2.2 it give me internal server error page

    some friends suggest that I use php.ini in place of htaccess file
    and when I do it nothing changed

    so is there a way to change the value from the httpd.conf to an exact folders
    or do it by any other way?

    Thanks:cool:
     
    SZ4h(dot)CoM, Jul 11, 2008 IP
  2. hostrs.com

    hostrs.com Peon

    Messages:
    157
    Likes Received:
    1
    Best Answers:
    0
    Trophy Points:
    0
    #2
    Hello. You have cPanel make sure you are looking in the correct folder. It happened to me before. Also make sure you restart apache.
    Commands:
    Or you may use:
    But I don't prefer that method as it doesn't always work correctly.
     
    hostrs.com, Jul 12, 2008 IP
  3. SZ4h(dot)CoM

    SZ4h(dot)CoM Banned

    Messages:
    22
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    0
    #3
    you don't understand me well
    my server is work gr8 and my php script also
    but some of them are required to have special functions to be enabled or safe mode to be off
    while I disable some function that is required to scripts in the server
    and I have put safe mode on

    so I need to just enable it to some folders or to enable some functions that is already disabled by the server configuration

    it was okay to do this in apache 1.3 with php4 but in apache 2.2 in cgi mode with php5 it cannot be by .htaccess or php.ini files

    so is there a way to do so?
     
    SZ4h(dot)CoM, Jul 13, 2008 IP
  4. RectangleMan

    RectangleMan Notable Member

    Messages:
    2,825
    Likes Received:
    132
    Best Answers:
    0
    Trophy Points:
    210
    #4
    php_admin_flag safe_mode 0

    Place that in htaccess.
     
    RectangleMan, Jul 14, 2008 IP
  5. SZ4h(dot)CoM

    SZ4h(dot)CoM Banned

    Messages:
    22
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    0
    #5
    it doesn't work with my configuration I don't know why
    I put it in htaccess and it gave me Internal Server Error and when I place it in a custom php.ini
    it doesn't change the local value
     
    SZ4h(dot)CoM, Jul 16, 2008 IP