Installation php5 with Apache2

A

Anonymous

Guest
Hi all...

Just want to share sth here... since I saw plenty of people having difficulty installing these on windows (if you search google for "how to install php5 with apache2", just as what I did... but one of them was a solution though :lol: )

To anyone who would like to install php5 with Apache2 on windows machine...

I just managed to get the php info() up... 8)

If you had installed your Apache and PHP5, and also follow the install.txt for PHP, do the following...

In httpd.conf (in the apache installation directory), under the "Dynamic Shared Object (DSO) Support" section, add this:
Code:
LoadModule php5_module c:/php/sapi/php4apache2.dll
AddType application/x-httpd-php .php
Note: if you have space on your path, put a double quote
example: "c:/Program Files/php/sapi/php4apache2.dll"
Note the space between Program Files

Then, the following is the important steps since the above is actually described in the install.txt.

Code:
copy x:/php/php4ts.dll to x:/php/sapi
copy x:/php/dlls/iconv.dll to x:/php/sapi

Mine works fine with the above steps...
Good luck!

Hmm... don't you all think we need a section for PHP5...
Hopefully the admin will create a new section for that...
By the way, here is a some resources for php5
http://www.phpvolcano.com/forum/
They start talking about projects...
 
Thanks for this useful post, xyoon. It took me a bit of fiddling, too, to get PHP up and running with Apache2 when I first tried it. The biggest difficulty was figuring out that I no longer needed the AddModule directive.

WiZARD, do you want to make this a topic Sticky?
 
Hi Swirlee,

So, we don't need the "AddModule directive"?
Then, how can apache knows which .dll files for the php it should use...

Hmm... gonna try later and see :)
 
xyoon said:
So, we don't need the "AddModule directive"?
Then, how can apache knows which .dll files for the php it should use...

As I understand it, the Apache 2 API is vastly different from the old API, and the manner in which modules are loaded is quite different. As I recall, we used to have to call LoadModule to load each module into Apache, and then AddModule to specify in which order they were to be added to the.. well, I'll say "processing queue" for lack of the right term. In Apache 2, apparently, the modules themselves take care of this. I don't claim to understand it all, but here's what the page that I linked to above says:

The AddModule and ClearModuleList directives no longer exist. These directives were used to ensure that modules could be enabled in the correct order. The new Apache 2.0 API allows modules to explicitly specify their ordering, eliminating the need for these directives.
 
swirlee said:
xyoon said:
So, we don't need the "AddModule directive"?
Then, how can apache knows which .dll files for the php it should use...

As I understand it, the Apache 2 API is vastly different from the old API, and the manner in which modules are loaded is quite different. As I recall, we used to have to call LoadModule to load each module into Apache, and then AddModule to specify in which order they were to be added to the.. well, I'll say "processing queue" for lack of the right term. In Apache 2, apparently, the modules themselves take care of this. I don't claim to understand it all, but here's what the page that I linked to above says:

The AddModule and ClearModuleList directives no longer exist. These directives were used to ensure that modules could be enabled in the correct order. The new Apache 2.0 API allows modules to explicitly specify their ordering, eliminating the need for these directives.

strange....
all time i'm copy like that: copy x:/php/php4ts.dll c:\windows, and never have problem.... and i think what in PHP5 i'm do that too.....
by the way, i use PHP5 only than get release......
 
Csoft said:
Give me the answer for my trouble plz! I still get these error????????
Try find at your HDD this lib LIBMYSQL.dll and copy to c:\windows folder

Do you have C:\php\ext\php_mysql.dll?
 
yes I'm waiting for the final release... [STABEL one] :-D :grin: :grin: 8O
 
Csoft said:
:) i really done with your's but still have these error! i dont know why.???
PHP Startup: Unable to load dynamic library 'C:\php\ext\php_mysql.dll"-the specified module could not be found
do you have this lib in this folder?
 
KLiFF said:
please tell me if what i say is wrong.

What you say is wrong. SQLite is a completely different product than MySQL and bears no relation. MySQL is still recommended for large projects.
 
Thanks for the information, can, I too can help you something?
 
Back
Top