Menu

PHP 4 is required

Help
2005-04-14
2013-04-15
  • Anthony E. Alvarez

    What can be done if PHP 4 is needed instead of PHP5? Is there an easy way to install PHP4 after WinLAMP is installed PHP5? Any clues appreciated. TIA.

     
    • Jared Daniel J. Smith

      Egads; it's almost as easy to simply install Apache and then PHP, but here you go:

      1. Replace the Apache/modules/php directory with the contents of your php4 directory.

      2. Copy php4ts.dll from there into the main Apache directory, and delete its php5ts.dll.

      3. Copy (overwrite) php.ini from the PHP directory into C:\Windows\php.ini. Go to Start, Programs, WinLAMP, Edit php.ini, and make sure the temp directory points to a real directory so sessions will work properly.

      4. Go to Start, Programs, WinLAMP, Edit httpd.conf, then locate and modify this line to point to your php4apache driver:

      LoadModule php5_module "C:/Apache2/modules/php/php5apache2.dll"

      5. Restart Apache. It should work. If not, note the error message and write back!

       

Log in to post a comment.