doox00 Posted August 20, 2006 Share Posted August 20, 2006 I was just looking, there is no php5_module in the apache2.2/modules directory. where do I get this?I imagine this is why apache won't start, it errors saying the specified module cannot be found. Where do I get this module so I can use php with apache? Quote Link to comment Share on other sites More sharing options...
wildteen88 Posted August 20, 2006 Share Posted August 20, 2006 You get it from from PHP.net. NOTE: PHP 4 or 5 currently doesnt support Apache2.2.xYou should get the Apache modules with the PHP distribution you download from php.net.You'll have to download php4apache2_2.dll or php5apache2_2.dll from Apache Lounge in order to get PHP to wokr with Apache2.2.x. Or downgrade to Apache2.0.xNOTE if you are on a unix based system you'll want the .so files rather than .dll files. Quote Link to comment Share on other sites More sharing options...
doox00 Posted August 20, 2006 Author Share Posted August 20, 2006 [quote author=wildteen88 link=topic=104965.msg418981#msg418981 date=1156094484]You get it from from PHP.net. NOTE: PHP 4 or 5 currently doesnt support Apache2.2.xYou should get the Apache modules with the PHP distribution you download from php.net.You'll have to download php4apache2_2.dll or php5apache2_2.dll from Apache Lounge in order to get PHP to wokr with Apache2.2.x. Or downgrade to Apache2.0.xNOTE if you are on a unix based system you'll want the .so files rather than .dll files.[/quote]thanks for the help, but I am unable to find php5_module from php.net, or able to find apache lounge to get the php5apache2_2.dllthis is what I have downloadedhttp://us2.php.net/get/php-5.1.5-Win32.zip/from/a/mirrorand Apache 2.2.3 from apache.orgThis is on a windows box btw. Quote Link to comment Share on other sites More sharing options...
wildteen88 Posted August 21, 2006 Share Posted August 21, 2006 The PHP module is in the root of the PHP zip file you ahve downloaded. Extract the contents of the zip to C:\PHPNow open the httpd.conf file for Apache And add this:[code]LoadModule php5_module "C:/php/php5apache2.dll[/code]Now download the Apache2.2.x php5 module from from [url=http://www.apachelounge.com/download/mods/php5apache2.dll-php5.1.x.zip]ApacheLounge.com[/url]Extract the contents of that zip to your My Documents area. Copy the php5apache2.dll file to C:\php overwritting the existing php5apache2.dll file.Now read the readme.txt file encloded in the zip file for more installation instructions.You're done! Quote Link to comment Share on other sites More sharing options...
doox00 Posted August 21, 2006 Author Share Posted August 21, 2006 [quote author=wildteen88 link=topic=104965.msg419297#msg419297 date=1156150043]The PHP module is in the root of the PHP zip file you ahve downloaded. Extract the contents of the zip to C:\PHPNow open the httpd.conf file for Apache And add this:[code]LoadModule php5_module "C:/php/php5apache2.dll[/code]Now download the Apache2.2.x php5 module from from [url=http://www.apachelounge.com/download/mods/php5apache2.dll-php5.1.x.zip]ApacheLounge.com[/url]Extract the contents of that zip to your My Documents area. Copy the php5apache2.dll file to C:\php overwritting the existing php5apache2.dll file.Now read the readme.txt file encloded in the zip file for more installation instructions.You're done![/quote]Again, thanks.. but I am missing something here, its seems sooo simple, but its just not working, you say the php5_module is in the root of php when you extract it, I have downloaded and extracted it 10 times now and there is no php5_module file in there. What the hell am I doing wrong here, I feel pretty stupid right now lol... this is not that hard, but I am apparantly confused on this php5_module file. Quote Link to comment Share on other sites More sharing options...
wildteen88 Posted August 21, 2006 Share Posted August 21, 2006 There is no file called php5_module that comes with PHP. The php5 module for apache is called [b]php5apache2.dll[/b]This line:[code]LoadModule php5_module "C:/php/php5apache2.dll"[/code]Sets up the php5 module. It tells Apache Where the module is. In your case the path to the module is C:/php/ and the module is php5apache2.dll Quote Link to comment Share on other sites More sharing options...
doox00 Posted August 21, 2006 Author Share Posted August 21, 2006 ok, that is where I was confused.. well I just totally nuked php and apache, reinstalled, did what you told me and now its working, so thank you very much Quote Link to comment Share on other sites More sharing options...
wildteen88 Posted August 21, 2006 Share Posted August 21, 2006 No problem. Glad we got there in the end. :) Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.