Hello every one. I want to ask who ever used Uniform Server and had technical problems about integrate or extend the package, by adding Apache Modules, PHP extensions or adding extra binary programs, and still wanted to maintain the portability of Uniform Server, did you managed ? For example, my case: I want to use PHP extension for PostgreSQL (php_pgsql.dll), i quick step to do it is to enable the extension in PHP.ini file. However, when you start uniform server, php issue a error it could not find libpq.dll and php_pgsql.dll. and because php_pgsql.dll depend on libpq.dll. Originally the file libpq.dll exist in the original distribution of PHP in the main folder. However of you added the file to \usr\local\php folder, still, won't work. and that's because \usr\local\php in the system paths where the operating system will look -in. The common way to do so, is to add \usr\local\php to the Windows paths, which is not proper for portability of the uniform server package. To so, my tip, follow this steps: 1- create a folder in"usr" and named it "shared', here i am trying to follow similar structure like unix-based. 2- copy the file "Start_UniTray.bat" found in either of "Alternative_control" or "unicon\tray_menu" to main root of Uniform Server, where ever you placed it in your computer,USB,Cd-rom, portable Hd, etc. 3- edit the copied file "Start_UniTray.bat" by placing the following line:
set path=%path%;..\..\usr\shared
before the line of :
..\usr\local\php\php-win.exe -n ..\unicon\tray_menu\start_unitray.php
4- save the file. 5- copy the depended-on DLL files to that folder "usr\shared", such libpq.dll and enable php extension "php_pgsql.dll". 6- Start your uniform server by double click on copied "Start_UniTray.bat" in main root of uniform servers. In addition to the main benefit, you can reduce some of the duplicated depended DLL files of uniform server main components(Apache2,SSL_cert_Gen and php), such as zlib1.dll, ssleay32.dll and libeay32.dll, by keeping only in the shared DLL folder. This tip is done using DOS Batch-files commands. I hope that Uniform server team apply it in PHP. I tried but I found the difficulties, so i applied it the easy way I knew. there are other technical things to talk about in terms of scalable integration framework. but this is for now.