Jump to content


Add PHP_INI_SCAN_DIR environment variable

  • Please log in to reply
1 reply to this topic

#1 darknight1601



  • Member
  • Pip
  • 1 posts
  • Main OS: Windows 8

Posted 10 October 2014 - 03:26 AM

I will be nice to have PHP_INI_SCAN_DIR environment variable defined with uniserver this will allow us to keep our custom php settings separate also user will not be needed to change all ini files which he/she uses while devlopment

#2 Ric


    Project Manager

  • Admin
  • PipPipPipPipPip
  • 1,535 posts
  • Gender:Male
  • Location:Cambridge,UK
  • Interests:Electronics
    Internet in general
    Open source projects
  • SourceForge IDmpgcan
  • Wiki ID: Ric
  • Main OS: Windows XP

Posted 11 October 2014 - 06:47 AM

The above is possible however its lacking in detail. How do you see this working?

What about PHP switching how will it interface (where to place folder containing the addition ini files)


An interim solution is to start UniController.exe with a batch files and set the environment variable accordingly. The following example is portable and would be specific to the selected PHP version:

1 Create a new folder for example user_php_inis in folder UniServerZ containing all additional ini files.

2 In folder UniServerZ create the following batch file ini_run.bat

@echo off
pushd %~dp0
set PHP_INI_SCAN_DIR=%cd%\user_php_inis
Start UniController.exe

Run the above batch file, this sets the environment variable to folder user_php_inis and then runs UniController.exe



Note: Additional environment variable support added starting from Uniform Server 11.4.0-ZeroXI


All the best


0 user(s) are reading this topic

0 members, 0 guests, 0 anonymous users