1. Please take a little time for this simple survey! Thank you for participating!
    Dismiss Notice

PHP Safe mode settings

Discussion in 'Plesk for Windows - 8.x and Older' started by iggy, Feb 13, 2004.

  1. iggy

    iggy Guest

    0
     
    Some sites on my server are going to have to have PHP Safe Mode disabled, while the normal default is to have safe mode on. How dow I set this up with IIS? When I was using Apache on a Linux server, I could edit the httpd.conf file and add the php_value lines that I wanted to modify the defaults that are found in the php.ini file. I don't know where the equivalent is for IIS.

    Any help would be great.
     
  2. LithiuM

    LithiuM Guest

    0
     
    I switched to safe mode (C:\WINDOWS\php.ini) but then horde failed..

    So I just disabled some functions as in linux..(system,exec,passthru,popen,shell_exec)
     
  3. iggy

    iggy Guest

    0
     
    That may be what I have to do, but I would still prefer if there was some way to have different php.ini settings on a per domain basis. I want to lock down as many domains as I can as tight as I can.
     
  4. siren@

    siren@ Guest

    0
     
    You can. If you look at the \vhosts\webmail\ directory you will notice a php.ini file in there. This is used for horde, although the base settings are set in main \%systemdir%\php.ini you can set settings per domain. When you do this just set the php.ini file you create to be readable, writable by admin, and psa users, not the user for the domain so they can't edit it.
     
  5. iggy

    iggy Guest

    0
     
    Thanks for the input, but I found another way.

    I went to Plesk support with this question as well and this is what they sent me:

    This works. I used it to turn off safe mode for a given domain.
    in HKEY_LOCAL_MACHINE\SOFTWARE\PHP\Per Directory Values\c\inetpub\vhosts\somedomain.org I added the string value safe_mode and set the value to 0. Safe mode is now off locally for that domain while still on globally, just as it would appear when changing values in httpd.conf on an Apache server.
     
Loading...