Can't Configure Apache 2.2.4 for Php 5.2.3 on windows (Need Urgent Help)

Thread Solved

Join Date: Mar 2006
Posts: 71
Reputation: shaikh_mshariq is an unknown quantity at this point 
Solved Threads: 1
shaikh_mshariq's Avatar
shaikh_mshariq shaikh_mshariq is offline Offline
Junior Poster in Training

Can't Configure Apache 2.2.4 for Php 5.2.3 on windows (Need Urgent Help)

 
0
  #1
Jul 26th, 2007
I have Installed apache http server 2.2.4 on Windows and configure the doc_root to my htdocs directory and its working fine. But when is add these lines in httpd.conf file it gives error.

LoadModule php5_module "C:/php/php5apache2.dll"
PHPIniDir "C:/php"
AddType application/x-httpd-php .php
AddType application/x-httpd-php-source .phps


It gives error like"server cant load module "C:/php/php5apache2.dll"".

I have Installed apache from .msi installer and its running on 7860 port fine.
I have installed php manually. I have Extracted it in c:/php directory.
I have also tried to set path variable for dll files and rename php.ini-dist to php.ini


Please Help me I am a newbie in php.
Reply With Quote Quick reply to this message  
Join Date: Jul 2007
Posts: 4
Reputation: Sabia is an unknown quantity at this point 
Solved Threads: 1
Sabia's Avatar
Sabia Sabia is offline Offline
Newbie Poster

Re: Can't Configure Apache 2.2.4 for Php 5.2.3 on windows (Need Urgent Help)

 
0
  #2
Jul 26th, 2007
hi shaikh,

did you use an msi installer for php on windows? when I installed php from an msi installer I had tons of problems getting it to work. I downloaded the php5.2.3 zip and the pecl5.2.3 zip files and extracted them to the root of C. You can extract the pecl5.2.3 directory to C:\php.

after I did that, I configured my php.ini file to point to my web root directory and also modified the extension_dir directive to point to C:\php\ext

Then restarted apache and created a phpinfo.php file to test the install.

let me know if these steps help!

sabia
Reply With Quote Quick reply to this message  
Join Date: Mar 2006
Posts: 71
Reputation: shaikh_mshariq is an unknown quantity at this point 
Solved Threads: 1
shaikh_mshariq's Avatar
shaikh_mshariq shaikh_mshariq is offline Offline
Junior Poster in Training

Re: Can't Configure Apache 2.2.4 for Php 5.2.3 on windows (Need Urgent Help)

 
0
  #3
Jul 26th, 2007
I have worked in jsp and java but php is new for me can u tell me what is the difference between php5.2.3 zip and the pecl5.2.3 zip. I would have to extract them both for using php on apahce 2 server. Thankx for reply. I will try that.
Reply With Quote Quick reply to this message  
Join Date: May 2007
Posts: 4,438
Reputation: Ezzaral has much to be proud of Ezzaral has much to be proud of Ezzaral has much to be proud of Ezzaral has much to be proud of Ezzaral has much to be proud of Ezzaral has much to be proud of Ezzaral has much to be proud of Ezzaral has much to be proud of Ezzaral has much to be proud of Ezzaral has much to be proud of 
Solved Threads: 510
Moderator
Featured Poster
Ezzaral's Avatar
Ezzaral Ezzaral is offline Offline
Industrious Poster

Re: Can't Configure Apache 2.2.4 for Php 5.2.3 on windows (Need Urgent Help)

 
0
  #4
Jul 26th, 2007
It would be a lot easier to just download Wampserver or XAMPP. Both will install Apache, MySQL, and PHP already configured.
Reply With Quote Quick reply to this message  
Join Date: Mar 2006
Posts: 71
Reputation: shaikh_mshariq is an unknown quantity at this point 
Solved Threads: 1
shaikh_mshariq's Avatar
shaikh_mshariq shaikh_mshariq is offline Offline
Junior Poster in Training

Re: Can't Configure Apache 2.2.4 for Php 5.2.3 on windows (Need Urgent Help)

 
0
  #5
Jul 26th, 2007
I already have download Xampp server and it is running very good. But i Just want to know what was the mistake in my configuration so i was not able to use php module on apache2.

Thankx for your kind reply
Reply With Quote Quick reply to this message  
Join Date: Jul 2007
Posts: 4
Reputation: Sabia is an unknown quantity at this point 
Solved Threads: 1
Sabia's Avatar
Sabia Sabia is offline Offline
Newbie Poster

Re: Can't Configure Apache 2.2.4 for Php 5.2.3 on windows (Need Urgent Help)

 
0
  #6
Jul 26th, 2007
Originally Posted by shaikh_mshariq View Post
I have worked in jsp and java but php is new for me can u tell me what is the difference between php5.2.3 zip and the pecl5.2.3 zip. I would have to extract them both for using php on apahce 2 server. Thankx for reply. I will try that.
pecl as far as I can tell just contain some extra modules that you can load into your php applications. the documentation that I used, recommended installing it with php 5.2.3. I'll see if i can find the link and post it here.
Reply With Quote Quick reply to this message  
Join Date: Aug 2007
Posts: 3
Reputation: cargdrac is an unknown quantity at this point 
Solved Threads: 1
cargdrac cargdrac is offline Offline
Newbie Poster

Re: Can't Configure Apache 2.2.4 for Php 5.2.3 on windows (Need Urgent Help)

 
0
  #7
Aug 15th, 2007
Hi I need help I´ve just installed apache 2.2.4 and php 5.2.3 and everything works fine until I want to load myql extension

I have configured the extensions dir apropiately but somehow the Apache donesnt recognize them

I really need your help
Reply With Quote Quick reply to this message  
Join Date: May 2007
Posts: 4,438
Reputation: Ezzaral has much to be proud of Ezzaral has much to be proud of Ezzaral has much to be proud of Ezzaral has much to be proud of Ezzaral has much to be proud of Ezzaral has much to be proud of Ezzaral has much to be proud of Ezzaral has much to be proud of Ezzaral has much to be proud of Ezzaral has much to be proud of 
Solved Threads: 510
Moderator
Featured Poster
Ezzaral's Avatar
Ezzaral Ezzaral is offline Offline
Industrious Poster

Re: Can't Configure Apache 2.2.4 for Php 5.2.3 on windows (Need Urgent Help)

 
0
  #8
Aug 15th, 2007
Originally Posted by cargdrac View Post
Hi I need help I´ve just installed apache 2.2.4 and php 5.2.3 and everything works fine until I want to load myql extension

I have configured the extensions dir apropiately but somehow the Apache donesnt recognize them

I really need your help
It is generally best not to tack new questions onto the end of solved posts, rather start a new thread for your question.

Your best bet for those configuration issues is to install an AMP package such as XAMPP or WAMPserver if you are working in Windows. Find a LAMP package if you are using Linux.
Reply With Quote Quick reply to this message  
Join Date: Mar 2006
Posts: 71
Reputation: shaikh_mshariq is an unknown quantity at this point 
Solved Threads: 1
shaikh_mshariq's Avatar
shaikh_mshariq shaikh_mshariq is offline Offline
Junior Poster in Training

Re: Can't Configure Apache 2.2.4 for Php 5.2.3 on windows (Need Urgent Help)

 
0
  #9
Aug 16th, 2007
Originally Posted by cargdrac View Post
Hi I need help I´ve just installed apache 2.2.4 and php 5.2.3 and everything works fine until I want to load myql extension

I have configured the extensions dir apropiately but somehow the Apache donesnt recognize them

I really need your help
Dear php user i have tried my best and wasted lot of time to configure apache for php and i have described all my efforts on this thread's starting. I extremely sorry that i was not able to configure apache for php manually so i simply downloaded the xampp server which includes apache configured for php and it also contains extra modules such as phpmyadmin and filezilla server and some demos with php so i preffer u to do the same and it is very good for the beginners to use xampp so just go to the apachefriends website and download xampp utility. U will love it.

Sorry again for your problem.
Reply With Quote Quick reply to this message  
Join Date: Aug 2007
Posts: 7
Reputation: Berhe is an unknown quantity at this point 
Solved Threads: 0
Berhe Berhe is offline Offline
Newbie Poster

Try Apache 2.0

 
0
  #10
Aug 17th, 2007
Try to use apache 2.0 with PHP 5.x.x. For me it works well. For further information,

1,Click this http://www.expertsrt.com
2, Click the tutorial button in the site.
3, You will find a perfect way of installing your Apache, PHP, MYSQL...

I hope it helps,

If you insist to use apache 2.2 , try to check whether the php5apache2.dll in C:/php/, if not adjust the path.

Best Reards,

Berhe.
Reply With Quote Quick reply to this message  
Reply

This thread has been marked solved.
Perhaps start a new thread instead?
Message:


Thread Tools Search this Thread



About Us | Contact Us | Advertise | DaniWeb | Acceptable Use Policy | RSS Feed

©2003 - 2009 DaniWeb® LLC