httpd-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Alexei Larramendi <alexlar...@yahoo.com>
Subject Re: [users@httpd] Still Need Help w. PHP-Apache Integration.
Date Thu, 12 Apr 2007 13:53:50 GMT
Hi!

Maybe I can get a clue to you.

1. Copy the php module to the apache's module folder
    e.g. copy "php5apache2.dll" to c:\WebSever 2.2.4\Apache2\modules

2. Go to the conf folder of the Apache Web Server.
    e.g. cd c:\WebServer 2.2.4\Apache2\conf

3. Open the configuration file "httpd.conf" and put this directives there under the DSO part.
i.e where all needed modules are loaded.

      ### Section: Integration with PHP 5.1.2
        # -------------------------------------
        # In order to process the request in the PHP5 engine you have 
        # to load the corresponding PHP5 module. By loading this module
        # you are connecting the Apache Webserver with the PHP5 engine so
        # that the handling of the php scripts will be done in the PHP5 environment. 
        LoadModule php5_module modules/php5apache2.dll
        AddType application/x-httpd-php .php
        AddType application/x-httpd-php .php5
        Action application/x-httpd-php "c:\php\php_5.1.2\php.exe

        Note: "c:\php\php_5.1.2\php.exe" is the installation dir of your PHP engine so just
adapt it to your path.
        AddType .... .php and php5 means that you can request both php or php5 pages.

4. Go to the PHP engine installation directory and look for the "php.ini-dist" file and rename
it as "php.ini"

5. Copy the "php.ini" file to the system root directory. e.g. c:\%systemroot% in Windows XP
is just c:\Windows

6. Open the "php.ini" file and put this directive on it.
      doc_root = c:\WebServer 2.2.4\Apache2\htdocs
      extension_dir = your php engine installation dir

7. If you are running under NTFS then make sure that the user the webserver is running as
has read permision for the php.ini file.

    Test the entire environment
    ==================

1. Open e.g. a wordpad or any word processor, create a new file, name it "Test.php" and write
on it this statement:
      <? phpinfo(); ?> 

2. Save that file in the "htdocs" folder of your web server. This is the document root.

3. Start the apache web server

4. Open your web browser and write the statement:
      http:\\localhost\test.php

Result
====
If your php engine is working well then the php enviroment information is displayed on the
screen.

Hope this will solve your problem.

Good Luck!
 


----- Original Message ----
From: "Schultz, Gary - COMM" <GSchultz@commerce.state.wi.us>
To: "users@httpd.apache.org" <users@httpd.apache.org>
Sent: Thursday, April 12, 2007 8:53:56 AM
Subject: RE: [users@httpd] Still Need Help w. PHP-Apache Integration.


Have you checked out Apache Lounge (http://www.apachelounge.com)?

Gary T. Schultz
IT Administrator
Wisconsin Dept. of Commerce
608-266-1283
gschultz@commerce.state.wi.us


-----Original Message-----
From: Mr. Steve Burrus [mailto:burrus1@swbell.net] 
Sent: Wednesday, April 11, 2007 4:25 PM
To: users@httpd.apache.org
Subject: [users@httpd] Still Need Help w. PHP-Apache Integration.

I [still] need some help/assistance with trying to integrate php with the
apache server, specifically the version 2.2.4 of apache. Now I DID get this
integration right 1 time a long time ago but cannot do it now! 
Can anyone please give me a clear and concise way to do this? Thanx.

---------------------------------------------------------------------
The official User-To-User support forum of the Apache HTTP Server Project.
See <URL:http://httpd.apache.org/userslist.html> for more info.
To unsubscribe, e-mail: users-unsubscribe@httpd.apache.org
   "   from the digest: users-digest-unsubscribe@httpd.apache.org
For additional commands, e-mail: users-help@httpd.apache.org

---------------------------------------------------------------------
The official User-To-User support forum of the Apache HTTP Server Project.
See <URL:http://httpd.apache.org/userslist.html> for more info.
To unsubscribe, e-mail: users-unsubscribe@httpd.apache.org
   "   from the digest: users-digest-unsubscribe@httpd.apache.org
For additional commands, e-mail: users-help@httpd.apache.org
Mime
View raw message