Search code examples
wampphp4

Run PHP4 on Wamp5


how to install php4 on wamp5 1.7.4, any ideas?

BTW, I know how to install php4 addon on WampServer 2.


Solution

  • The only component of WAMP that uses PHP is Apache. Hence it is a standard installation procedure, same as any Apache on Windows. Nearly the same on all os.

    1. Download PHP4 for Windows.
    2. Install or Unzip PHP-files in a PHP-folder like c:\php.
    3. Stop Apache.
    4. Edit Apache:
      Replace PHP5 with PHP4:
    # PHP5 #LoadModule php5_module "c:/phpdir/php5apache2_2.dll" #PHPIniDir "C:/phpdir/php-5.2.3-Win32"
    # PHP4 LoadModule php4_module "C:/phpdir/php4apache2.dll" PHPIniDir "C:/phpdir"
    1. Make sure you change "C:/phpdir" to wherever you put PHP 4.
    2. Start Apache.