Menu
InformatiWeb
  • Index
  • Courses
  • Tutorials
  • InformatiWeb Pro

Login

Registration Password lost ?
FR
  • IT
    • Articles
    • Backup
    • BIOS
    • Live CD
    • MultiBoot
    • Security
    • Virtualization
    • Web
    • Windows
  • InformatiWeb
  • Tutorials
  • IT
  • Web
  • Simultaneous installation of PHP 4 and 5 on a Windows server

Simultaneous installation of PHP 4 and 5 on a Windows server

  • Web
  • Web servers
  • 17 September 2010 at 17:10 UTC
  • Lionel
  • 2/2
Previous page

4. Installing PHP 5

 

  • Download the latest version of PHP on php.net.
  • File : php-5.3.3-Win32-VC6-x86.zip
  • Create a folder : c:\server\php5
  • Unzip the downloaded file in the directory : c:\server\php5
  • Rename c:\server\php5\php.ini-production to c:\server\php5\php.ini
  • Edit httpd-php5.conf (Link PHP to Apache 2)
  • Add or change the following lines :
    173 LoadModule php5_module c:/server/php5/php5apache2.dll
  • 778 AddType application/x-httpd-php .php
  • 943 PHPIniDir "c:/server/php5"
  • 322 DirectoryIndex index.html index.html.var index.php
  • Edit php.ini

    Apache

    807 extension_dir = "c:/server/php5/ext"
    963 extension=php_mysql.dll
    531 display_errors = On
  • Copy the DLL libmysql.dll to c:\server\apache2-php5 folder
  • Enable DLL extension in php.ini (line 636)

 

5. Installing PHP 4

 

  • Download the version 4 of PHP on museum.php.net.
  • File : php-4.4.7-Win32.zip
  • Create a folder : c:\server\php4
  • Unzip the downloaded file in the directory : c:\server\php4
  • Rename c:\server\php4\php.ini-recommended to c:\server\php4\php.ini
  • Edit php.ini :

    Apache

    443 extension_dir = "c:\server\php4\extensions" 
    292 display_errors = On
  • Edit httpd-php4.conf (Add the path to php.ini) :

    Apache

    173 LoadModule php4_module c:/server/php4/sapi/php4apache2.dll
    778 AddType application/x-httpd-php .php
    943 PHPIniDir "c:/server/php4"
    322 DirectoryIndex index.html index.html.var index.php
  • Copier la dll php4/php4ts.dll dans le répertoire php4/SAPI. (Voir Documentation PHP)

 

6. Installing MySQL 4.02d

 

  • Download the latest version of MySQL on the official website.
  • File : mysql-5.1.45-win32.msi.rar
  • Installing the server database :
  • Unzip the downloaded file and run mysql-5.1.45-win32.msi
  • Installation in the directory c:\mysql
  • Configure the installation as you want (leave blank if you don't know what to put)
  • MySQL is installed with a service in autostart
  • Configure PHP 5 MySQL
  • (Already perform above) Enable extension :
    extension=php_mysql.dll (line 962)
  • Copy the c:\server\php5\libmysql.dll in C:\server\apache2-php5\bin folder

Share this tutorial

Partager
Tweet

To see also

  • Create VirtualHost accessible from the local area network

    Web 12/17/2011

    Create VirtualHost accessible from the local area network

  • WAMP - Install a complete web server with WAMP 2.0

    Web 1/11/2011

    WAMP - Install a complete web server with WAMP 2.0

  • WAMP - Installing WAMP 2.2, 2.4 or 2.5 and its add-ons

    Web 3/2/2013

    WAMP - Installing WAMP 2.2, 2.4 or 2.5 and its add-ons

Comments

No comment

Share your opinion

Pinned content

  • Useful softwares
  • Our programs
  • Terms and conditions
  • Share your opinion

InformatiWeb Pro

  • Win. Server administration
  • Linux Administration
  • Virtualization

Contact

  • Guest book
  • Technical support
  • Contact

® InformatiWeb.net 2008-2022 - © Lionel Eppe - All rights reserved.

Total or partial reproduction of this site is prohibited and constitutes an infringement punishable by articles L.335-2 and following of the intellectual property Code.