NuSphere Forums Forum Index
NuSphere Forums
Reply to topic
[resolved] Can I run PHPDock with PHP4 instead of PHP5?


Joined: 03 Feb 2008
Posts: 42
Reply with quote
I need a very small footprint for PHP and php5ts.dll is so much bigger than php4ts.dll.
Will PHPDock run PHP v4.4.7.7 instead of PHP 5?

Thank you.
View user's profileFind all posts by a_edwallSend private message


Joined: 03 Feb 2008
Posts: 42
Reply with quote
I see it can - all I have to do is install PHP4 instead of 5 in the php directory.

But I did that in my final application directory and the .php files aren't being recognized as .php files. Is there some other thing I must do or setting I must change in order for PHPDock to recognize that I have put PHP 4 in my app's php folder?

Thank you.
View user's profileFind all posts by a_edwallSend private message
Site Admin

Joined: 13 Jul 2003
Posts: 8334
Reply with quote
most probably you changed associations in phpdock.ini file. Please check that .php is still associated with application/x-httpd-php:

[MimeTypes]
.php=application/x-httpd-php

and application/x-httpd-php has appropriate CGI/FastCGI handler, like below:

[Handlers]
application/x-httpd-php="C:\path\to\php.exe"

(note that php5's CGI executable is php-cgi.exe while php4's is php.exe)

_________________
The PHP IDE team
View user's profileFind all posts by dmitriSend private messageVisit poster's website


Joined: 03 Feb 2008
Posts: 42
Reply with quote
I must have done something wrong previously because I made some adjustments and it now seems to work. Soory for the trouble.
Perhaps it was needed that I specified:

[Handlers]
application/x-httpd-php=php/php.exe

in phpdock.ini

It seems too bad I have to recompile everything now, though, because Nu-coder doesn't think 2 different versions of PHP.
Too bad it can't just work no matter which version is loaded in phpdock/php.
View user's profileFind all posts by a_edwallSend private message
[resolved] Can I run PHPDock with PHP4 instead of PHP5?
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum
All times are GMT - 5 Hours  
Page 1 of 1  

  
  
 Reply to topic