SitePoint Sponsor

User Tag List

Results 1 to 2 of 2
  1. #1
    SitePoint Member
    Join Date
    Jun 2002
    Posts
    19
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Configuring Apache for new PHP version

    Hello all,

    I am running PHP under Apache webserver on my Windows 98 PC. I need to install the latest version of PHP. I downloaded PHP 4.2.3 from www.php.net/downloads.php, but at the end it said, “The software to automatically configure the Apache httpd.conf file has not yet been written. You will have to configure Apache manually. See the install.txt file for more details.” I looked at install.txt but don’t know how to do what it says.

    Charlie
    chvol@aol.com

  2. #2
    FreeBSD The Power to Serve silver trophy pippo's Avatar
    Join Date
    Jul 2001
    Location
    Italy
    Posts
    4,514
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Hi chvol,
    that's extracted from the install.txt:
    Installing PHP on Windows with Apache 1.3.x

    There are two ways to set up PHP to work with Apache 1.3.x
    on Windows. One is to use the CGI binary (php.exe),
    the other is to use the Apache module dll. In either case
    you need to stop the Apache server, and edit your
    srm.conf or httpd.conf to configure Apache to work with PHP.

    Although there can be a few variations of configuring PHP
    under Apache, these are simple enough to be used by the
    newcomer. Please consult the Apache Docs for further
    configuration directives.

    Now that version 4.1 introduces a safer sapi module, we recommend
    that you configure PHP as a module in Apache.

    To do this, you should move php4ts.dll to the windows/system (for Windows 9x/Me)
    or winnt/system32 (for Windows NT/2000/XP) directory, overwriting any
    older file. Then you should add the following three lines to your Apache
    conf file: (swap c:/php/ for your PHP install path)
    httpd.conf <<-- my note


    LoadModule php4_module c:/php/sapi/php4apache.dll
    AddModule mod_php4.c
    AddType application/x-httpd-php .php
    Copy the file, php.ini-dist to your %WINDOWS% directory on
    Windows 95/98 or to your %SYSTEMROOT% directory under Windows NT,
    Windows 2000 or Windows XP and rename it to php.ini. Your %WINDOWS% or
    %SYSTEMROOT% directory is typically:
    c:\windows for Windows 95/98
    c:\winnt or c:\winnt40 for NT/2000/XP servers

    Edit your php.ini file:

    You will need to change the 'extension_dir' setting to
    point to your php-install-dir, or where you have placed
    your 'php_*.dll' files. ex: c:\php
    I bolded the steps you need to do to install php as an apache module, It seems I didn't forget anything.
    Sorry for using this kind of method and I hope it was clear .



    pippo
    Mr Andrea
    Former Hosting Team Advisor
    Former Advisor of '03


Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •