in

Dotnetpanel Forums

Community support forums for DotNetPanel products

Installing both PHP 4.x and PHP 5.x on the same server

Last post 06-12-2008 5:23 AM by Rubal. 61 replies.
Page 4 of 5 (62 items) < Previous 1 2 3 4 5 Next >
Sort Posts: Previous Next
  • 03-15-2007 6:22 AM In reply to

    • ebsolut
    • Top 50 Contributor
    • Joined on 02-13-2007
    • Switzerland
    • Posts 90

    Re: Installing both PHP 4.x and PHP 5.x on the same server

    post deleted ... posted to wrong thread... sorry

     

    http://www.ebsolut.com
    http://www.goldhosting.ch
    Swiss hosting Solutions
    Website hosting and internet development
    DNP 2.1.0
    Smartermail 4.0
    Simple DNS PLus
    IIS 6
    Microsoft FTP
  • 07-27-2007 8:06 AM In reply to

    • wiredeyes
    • Top 10 Contributor
    • Joined on 10-22-2006
    • Cagliari, Sardegna, Italy
    • Posts 350

    Re: Installing both PHP 4.x and PHP 5.x on the same server

    im trying to get php4 and php5 installed as running the the same server in isapi mode.

    I followed some of the instuctions here and seem to have them running and loading the correct ini files. horrah!.

    However im having problems as the isapi version of php 4 and 5 wont load the mySQL extention or at least gives errors and does not show mySQL in phpinfo.

    Alternativaly if I switch to using the cgi versions then they load mysql and allow mysql connections (And it shows in phpinfo). 

    Any ideas?

    Sam M

    50% off all hosting
  • 07-27-2007 8:24 AM In reply to

    Re: Installing both PHP 4.x and PHP 5.x on the same server

    wiredeyes:

    im trying to get php4 and php5 installed as running the the same server in isapi mode.

    I followed some of the instuctions here and seem to have them running and loading the correct ini files. horrah!.

    However im having problems as the isapi version of php 4 and 5 wont load the mySQL extention or at least gives errors and does not show mySQL in phpinfo.

    Alternativaly if I switch to using the cgi versions then they load mysql and allow mysql connections (And it shows in phpinfo). 

    Any ideas?

    I assume that:

    - you have uncommented the mysql and/or mysqli extension in php.ini?

    - you have copied the file libmySQL.dll from the MySQL bin folder to the php installation folder?

     

     

    IBISS Internet Services & Solutions: ASP - ASP.NET 1.1/2.0/3.0/3.5 - PHP 5 - MySQL 5 - MSSQL 2005
  • 07-27-2007 8:55 AM In reply to

    • wiredeyes
    • Top 10 Contributor
    • Joined on 10-22-2006
    • Cagliari, Sardegna, Italy
    • Posts 350

    Re: Installing both PHP 4.x and PHP 5.x on the same server

    Sure.

    As I said PHP works in CGI mode (Same install, same php.ini, same extention files) but in ISAPI mode mysql (and a bunch of other extentions dont load)

    Here is the phpinfo for two sites on the same server.

    http://www.servwise.com/test.php ; site using CGI

    and

    http://webclickgo.com.servwise.com/info.php  ; site using ISAPI

    Sam M

    50% off all hosting
  • 07-27-2007 9:03 AM In reply to

    • wiredeyes
    • Top 10 Contributor
    • Joined on 10-22-2006
    • Cagliari, Sardegna, Italy
    • Posts 350

    Re: Installing both PHP 4.x and PHP 5.x on the same server

    I just had a thought, could running both isapi and cgi versions of php be causing this issue, what I meen is that when i restart IIS it goes to the first site and loads the CGI versions, this locks the extentions and when isapi version tries to load them they are locked or something? 

    Sam M

    50% off all hosting
  • 07-27-2007 9:10 AM In reply to

    • wiredeyes
    • Top 10 Contributor
    • Joined on 10-22-2006
    • Cagliari, Sardegna, Italy
    • Posts 350

    Re: Installing both PHP 4.x and PHP 5.x on the same server

    Nope maybe not, i disabled the php-cgi.exe extention (Even renamed  the file so it couldnt be loaded) and restarted IIS but still no ISAPI working.

    Sam M

    50% off all hosting
  • 07-27-2007 9:14 AM In reply to

    Re: Installing both PHP 4.x and PHP 5.x on the same server

    wiredeyes:

    I just had a thought, could running both isapi and cgi versions of php be causing this issue, what I meen is that when i restart IIS it goes to the first site and loads the CGI versions, this locks the extentions and when isapi version tries to load them they are locked or something? 

    I see from your phpmyinfo that the Mysql bin folder is not in the Environment variables. It's recommended to do so and afterwards reboot.

    IBISS Internet Services & Solutions: ASP - ASP.NET 1.1/2.0/3.0/3.5 - PHP 5 - MySQL 5 - MSSQL 2005
  • 07-27-2007 9:34 AM In reply to

    • wiredeyes
    • Top 10 Contributor
    • Joined on 10-22-2006
    • Cagliari, Sardegna, Italy
    • Posts 350

    Re: Installing both PHP 4.x and PHP 5.x on the same server

    stupid question, do you mean in the windows path?

    Sam M

    50% off all hosting
  • 07-27-2007 9:42 AM In reply to

    Re: Installing both PHP 4.x and PHP 5.x on the same server

    wiredeyes:

    stupid question, do you mean in the windows path?

    Control Panel > System > tab Advanced > Environment Variables > System Variables > select Path > Edit > in the end add the path to the Mysql bin folder.

    IBISS Internet Services & Solutions: ASP - ASP.NET 1.1/2.0/3.0/3.5 - PHP 5 - MySQL 5 - MSSQL 2005
  • 07-27-2007 4:11 PM In reply to

    • wiredeyes
    • Top 10 Contributor
    • Joined on 10-22-2006
    • Cagliari, Sardegna, Italy
    • Posts 350

    Re: Installing both PHP 4.x and PHP 5.x on the same server

    Okay either that or the reboot seems to have done the trick. Cheers

    Sam M

    50% off all hosting
  • 07-28-2007 6:32 PM In reply to

    Re: Installing both PHP 4.x and PHP 5.x on the same server

    the preconfigured PHP 5 package for Windows. use this much easyer but go to site www.php.net and change the mysql.dll with 5.x lower ver then new because of major bug problem connecting to the mysql any ver. so you need to replace with a old ver in the php 5 family in order to stop error besides thats this package is ready to use....

    just add to iis and enable any ver you want works perfict...ISAPI OR PHP.EXE or PHP-CGI.EXE

    your choice have fun phping lol.....

  • 10-17-2007 3:15 AM In reply to

    • wiredeyes
    • Top 10 Contributor
    • Joined on 10-22-2006
    • Cagliari, Sardegna, Italy
    • Posts 350

    Re: Installing both PHP 4.x and PHP 5.x on the same server

    Also check out the new fast-cgi extrention for IIS, run PHP in cgi mode faster than isapi and more compatable.

    see http://www.iis.net/default.aspx?tabid=1000051

    Sam M

    50% off all hosting
  • 10-20-2007 10:17 AM In reply to

    • kent
    • Top 25 Contributor
    • Joined on 04-02-2006
    • Timisoara
    • Posts 348

    Re: Installing both PHP 4.x and PHP 5.x on the same server

    Dan Petru, S & M Specialist
    DotNetPanel Software - Professionally developed software for hosting businesses
    http://www.dotnetpanel.com
  • 06-09-2008 11:51 AM In reply to

    Re: Installing both PHP 4.x and PHP 5.x on the same server

    I know this is an old thread, but I am running into the same problems.  I followed the instructions Here with the exception that I have had PHP5 running on my system for some time, so I simply followed the PHP4 section.

    I am getting a 403 error when running info.php
    Network Service and DNPWebUsers have read&execute permissions on "C:\PHP4\php.exe"
    "C:\PHP4\php.exe" is allowed in web service extensions
    "C:\PHP4\php.exe" is added to the DNP config for PHP4

    Any help would be greatly appreciated.

    Chase

    DotNetPanel 2.4
    Server 2003 Web
    SQL Server Express
    MailEnable Enterprise 3.14
    Filed under: , , ,
  • 06-09-2008 12:33 PM In reply to

    Re: Installing both PHP 4.x and PHP 5.x on the same server

    nm... i changed from php.exe to
    c:\php4\sapi\php4isapi.dll and got a little help from http://www.maravelias.gr/archives/php/35

    seems to be running now.

    Chase

    DotNetPanel 2.4
    Server 2003 Web
    SQL Server Express
    MailEnable Enterprise 3.14
Page 4 of 5 (62 items) < Previous 1 2 3 4 5 Next >
Powered by Community Server (Commercial Edition), by Telligent Systems