Deploying PHP Dock Applications |
A little further down the road... |
|
I should have mentioned that it is being compiled on Win2K
Further tests have concluded that if I compile using Inno Setup and make the program path *exactly* the same as the original install path it works fine? Can someone please tell me if there is someway to change this. I've had a look through the phpdock.ini and it seems that the path is dependent on the application/x-httpd-php="%PATH%" Am I along the right track? Is there any way to configure Inno Setup to alter this to the users wishes? Tyndyll |
||||||||||||
|
Site Admin
|
Hi Tyndyll,
Certainly application/x-httpd-php="%PATH%" is a wrong setting and causes the trouble. It should be a valid path to php-cgi.exe with filename If you're using INNO, the following will work fine: just leave application/x-httpd-php=SOMEVAL in phpdock.ini being distributed then in the INNO script have the following line: [ini] Filename: "{app}\phpdock.ini"; Section: "Handlers"; Key: "application/x-httpd-php"; String: """{app}\php\php-cgi.exe""" (I presumed that php will be installed in phpdock\php subdirectory, but it's up to you , just don't forget to package php and phpdock with your application ) |
||||||||||||
_________________ The PHP IDE team |
Site Admin
|
Feel free to play with the following iss script:
|
||||||||||||||
_________________ The PHP IDE team |
NSIS instructions |
|
And if anyone is using NSIS, here's the equivalent code:
WriteINIStr $INSTDIR\phpdock.ini "Handlers" "application/x-httpd-php" "$INSTDIR\php\php-cgi.exe" WriteINIStr $INSTDIR\phpdock.ini "HTTPServer" "DocumentRoot" "web" WriteINIStr $INSTDIR\phpdock.ini "HTTPClient" "DefaultDocument" ".\web\index.php" WriteINIStr $INSTDIR\php\php.ini "Session" "session.save_path" "$INSTDIR\php\sessions" |
||||||||||||
|
Deploying PHP Dock Applications |
|
||
Content © NuSphere Corp., PHP IDE team
Powered by phpBB © phpBB Group, Design by phpBBStyles.com | Styles Database.
Powered by
Powered by phpBB © phpBB Group, Design by phpBBStyles.com | Styles Database.
Powered by