Apache2.2 and php5.1.4 installation... pls help

Reply

Join Date: Jun 2006
Posts: 1
Reputation: ugp is an unknown quantity at this point 
Solved Threads: 0
ugp ugp is offline Offline
Newbie Poster

Apache2.2 and php5.1.4 installation... pls help

 
0
  #1
Jun 1st, 2006
I installed Apache2.2 on "C:\Apache2.2" directory, using windows installer.
It works OK. (I can do these functions with out an error -> stop,start,restart)
Now, i'm going to installe PHP 5.1.4 manually, which will work with Apache.
I extract the content of "php-5.1.4-Win32.zip" to C: drive and rename that folder as php. Now, those php file(All .dll files & others) are resides in "C:\php"
Then i rename the "php.ini-recommended" as "php.ini" & copy that into the C:\WINNT folder.
Also copied the "php5ts.dll" to C:\WINNT
Now i'm going to configure "httpd.conf"
i put these lines into that file, in correct places-->
LoadModule php5_module "c:/php/php5apache2.dll"
AddType application/x-httpd-php .php
But when i do that, I CANNOT Restart the Apache ???
It gives this ERROR...
'The requested operation has failed'
--------------
I think the error is coming from this line...
LoadModule php5_module "c:/php/php5apache2.dll"
The path is correct... There is a file called "php5apache2.dll" in c:/php
when i comment that line,
#LoadModule php5_module "c:/php/php5apache2.dll"
i can do the operations with apache.(start,stop.restart)


I didn't do any changes to the php.ini
Changes are only made with httpd.conf
Do i need to insert a line like this to the httpd.conf
PHPIniDir "C:/php"
If so,... to where it should insert !!
Please help me to configure this...
(O/S using is Win2000 prof. with service pack 4)

(I did the same procedure with winxp sp-2. But it gives the same ERROR..)
Reply With Quote Quick reply to this message  
Join Date: Mar 2006
Posts: 12
Reputation: Viji is an unknown quantity at this point 
Solved Threads: 0
Viji Viji is offline Offline
Newbie Poster

Re: Apache2.2 and php5.1.4 installation... pls help

 
0
  #2
Jun 1st, 2006
I am very much sure that the error is not by adding the line LoadModule php5_module "c:/php/php5apache2.dll". If you are using Apache 2.X, we need to add “c:/php/php4apache2.dll" instead of "c:/php/php4apache.dll".

U need to add more one line in the "http.conf� file
Simply search for the line in the file that begins with a "DirectoryIndex" and add "index.php" to the list of files on that line.
For Eg: change it to DirectoryIndex index.php index.html

The next time you access "localhost" or "localhost/directory/" without a filename, Apache will deliver "index.php" if available, or "index.html" if "index.php" is not available.

Then test for PHP

Create a PHP file with the following line:
<?phpinfo()?>

Save the file with the extension php(Eg:testphp.php) and save the file in your Apache htdocs directory(i.e c:\program files\apache group\apache\htdocs


access the file you just created by typing http://localhost/testphp..phpinto in your browser.

U shd able to see all the information about your PHP setup.

I hope i have answered ur question...

Good luck then...
Reply With Quote Quick reply to this message  
Join Date: Jan 2005
Posts: 18
Reputation: demo is an unknown quantity at this point 
Solved Threads: 2
demo demo is offline Offline
Newbie Poster

Re: Apache2.2 and php5.1.4 installation... pls help

 
0
  #3
Jun 1st, 2006
Can you post a copy of your httpd config file
Reply With Quote Quick reply to this message  
Join Date: Feb 2006
Posts: 32
Reputation: BlazingWolf is an unknown quantity at this point 
Solved Threads: 1
BlazingWolf BlazingWolf is offline Offline
Light Poster

Re: Apache2.2 and php5.1.4 installation... pls help

 
0
  #4
Jun 1st, 2006
If you look in the error log in will have a more usefull error message.
Reply With Quote Quick reply to this message  
Join Date: May 2006
Posts: 4
Reputation: Jxxxx is an unknown quantity at this point 
Solved Threads: 0
Jxxxx Jxxxx is offline Offline
Newbie Poster

Re: Apache2.2 and php5.1.4 installation... pls help

 
0
  #5
Jun 1st, 2006
Don't bother for all this configurations,,,,,,,somebody is already doing it for you........

google XAMPP and install it, look the documentation and change the passwords as suggested, you are all set........

It is opensource and free and preconfigured php, mysql, pear, filezillaFTP, Mercury Mail server and lot more.........

Good Luck.........
Reply With Quote Quick reply to this message  
Join Date: Jun 2006
Posts: 1
Reputation: cs6146 is an unknown quantity at this point 
Solved Threads: 0
cs6146 cs6146 is offline Offline
Newbie Poster

Re: Apache2.2 and php5.1.4 installation... pls help

 
0
  #6
Jun 21st, 2006
I came to this forum trying to find the solution for the same exact problem. I realize the original poster probably already figured a way out, but for future people with the same problem I recommend uninstalling apache 2.2 and getting apache 2.0- it worked for me. According to this site, apache 2.2 doesn't work with php5 (it needs a beta 5.2 version or something..)
Reply With Quote Quick reply to this message  
Join Date: Jul 2006
Posts: 1
Reputation: bobodunno is an unknown quantity at this point 
Solved Threads: 0
bobodunno bobodunno is offline Offline
Newbie Poster

Re: Apache2.2 and php5.1.4 installation... pls help

 
0
  #7
Jul 26th, 2006
What you need is php5apache2_2.dll, which is compatible with Apache 2.2. The file is available in the PHP 5.x snapshot at http://snaps.php.net/
Reply With Quote Quick reply to this message  
Join Date: May 2004
Posts: 1,478
Reputation: mikeandike22 is an unknown quantity at this point 
Solved Threads: 18
mikeandike22's Avatar
mikeandike22 mikeandike22 is offline Offline
Nearly a Posting Virtuoso

Re: Apache2.2 and php5.1.4 installation... pls help

 
0
  #8
Jul 26th, 2006
there is WAMP server or XAMPP server which will configure php, apache, and mysql for you
My Daniweb Blog: This,That, and Everything Else (Blog contest winner)

GetFirefox!
GetOpera!






Reply With Quote Quick reply to this message  
Join Date: Jul 2006
Posts: 1
Reputation: mrvinch is an unknown quantity at this point 
Solved Threads: 0
mrvinch mrvinch is offline Offline
Newbie Poster

Re: Apache2.2 and php5.1.4 installation... pls help

 
0
  #9
Jul 27th, 2006
bobodunno, you're a legend. :mrgreen::cheesy::mrgreen:
For anyone experiencing this error, this is what I did by following the link below which solved the issue (running on WinXP prof sp2):
1. Follow the link below
2. Download the latest WIN32 package snapshop which is a zip file.
3. Extract ONLY the php5apache2_2.dll file from the zip archive into your PHP install folder (I also extracted php5apache2_2_filter.dll, not sure if I needed to)
4. Double check your PATHs in httpd.conf are correct, save it and then restart Apache2.2

Originally Posted by bobodunno
What you need is php5apache2_2.dll, which is compatible with Apache 2.2. The file is available in the PHP 5.x snapshot at http://snaps.php.net/
Reply With Quote Quick reply to this message  
Join Date: Oct 2006
Posts: 2
Reputation: pleal is an unknown quantity at this point 
Solved Threads: 0
pleal pleal is offline Offline
Newbie Poster

Re: Apache2.2 and php5.1.4 installation... pls help

 
0
  #10
Oct 16th, 2006
bobodunno ... that was a great . Thanks for the help.
Reply With Quote Quick reply to this message  
Reply

This thread is more than three months old.
Perhaps start a new thread instead?
Message:



Other Threads in the PHP Forum
Thread Tools Search this Thread



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

©2003 - 2009 DaniWeb® LLC