Forum Moderators: coopster

Message Too Old, No Replies

Config of PhP5 to Apache

Do I have a Dll missing?

         

aktell

5:01 am on Jun 11, 2005 (gmt 0)

10+ Year Member



Hi there,

I have been using Apache and PhP for long, but never had the oportunity to install it my self.
Now I need to and off course have mayor problems.

I was lucky enough to install succesfully Apache, but have problems with the PhP5 site, and I need it so desperatly as nearly all my web pages are with PhP and I would like to get back into gear again.
I have been reading here an articel but no go, and than another out of an book which made sence but there is talk about a Dll file which is not in the PhP5 setup install?

1. Choose Program Files, Apache HTTP Server 2.0.49, Configure Apache Server, Edit the
Apache httpd.conf Configuration File from the Windows Start menu
2. Look for a section of text like the one shown in the figure.
3. Add the following code to the end of that section:

***************************
4. LoadModule php5_module
5. c:/php// php5apache2.dll
***************************

6. Look for a section of text like the one shown
7. Add the following line:
8. AddType application/x-
9. httpd-php .phtml .php
10. Save and close the httpd.conf file.

Could somebody help PLEASE .......

Thank You in advance aktell

dreamcatcher

7:24 am on Jun 11, 2005 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member



Welcome to WebmasterWorld aktell. :)

Check out this thread, see if it helps any:
http://www.webmasterworld.com/forum88/5212.htm [webmasterworld.com]

dc

aktell

7:44 am on Jun 11, 2005 (gmt 0)

10+ Year Member



Hi there,

This is even more confusing than the once I have read before, as I still don't have the Dll file they refer too!

Thanks aktell

JamShady

9:03 am on Jun 11, 2005 (gmt 0)

10+ Year Member



You did download the full version of PHP right? It should be there in a dll folder I think, wherever you unzipped it.

coopster

12:42 pm on Jun 11, 2005 (gmt 0)

WebmasterWorld Administrator 10+ Year Member



The examples you read and refer to all assume that you unzipped the latest PHP5 distribution to a directory named "php" in the root, which on Windows is typically your "C:" drive. In your Apache httpd.conf, you need to load the PHP5 module, and add a handler:

# For PHP 5 do something like this: 
LoadModule php5_module "c:/php/php5apache2.dll"
AddHandler php5-script php
AddType text/html php

aktell

1:27 am on Jun 12, 2005 (gmt 0)

10+ Year Member



Hi there,

YES, Thank you very much I was able to get it working I just had to download again the PhP5 Zip File and here I had all Dll's. Thanks again!

I have another question so, when my php pages are showing they work fine but I have the [#!/usr/local/bin/php] in the top left corner all the times showing? I can't remember what to do there as I did all this around two to three years ago and just starting up again. Any help is appreciated.

Thanks aktell