943,681 Members | Top Members by Rank

Ad:
  • PHP Discussion Thread
  • Unsolved
  • Views: 43935
  • PHP RSS
You are currently viewing page 1 of this multi-page discussion thread
Jun 1st, 2006
0

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

Expand Post »
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..)
ugp
Reputation Points: 10
Solved Threads: 0
Newbie Poster
ugp is offline Offline
1 posts
since Jun 2006
Jun 1st, 2006
0

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

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...
Reputation Points: 10
Solved Threads: 0
Newbie Poster
Viji is offline Offline
12 posts
since Mar 2006
Jun 1st, 2006
0

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

Can you post a copy of your httpd config file
Reputation Points: 10
Solved Threads: 2
Newbie Poster
demo is offline Offline
18 posts
since Jan 2005
Jun 1st, 2006
0

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

If you look in the error log in will have a more usefull error message.
Reputation Points: 10
Solved Threads: 1
Light Poster
BlazingWolf is offline Offline
32 posts
since Feb 2006
Jun 1st, 2006
0

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

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.........
Reputation Points: 10
Solved Threads: 0
Newbie Poster
Jxxxx is offline Offline
4 posts
since May 2006
Jun 21st, 2006
0

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

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..)
Reputation Points: 10
Solved Threads: 0
Newbie Poster
cs6146 is offline Offline
1 posts
since Jun 2006
Jul 26th, 2006
0

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

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/
Reputation Points: 10
Solved Threads: 0
Newbie Poster
bobodunno is offline Offline
1 posts
since Jul 2006
Jul 26th, 2006
0

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

there is WAMP server or XAMPP server which will configure php, apache, and mysql for you
Reputation Points: 33
Solved Threads: 19
Nearly a Posting Virtuoso
mikeandike22 is offline Offline
1,496 posts
since May 2004
Jul 27th, 2006
0

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

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

Quote 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/
Reputation Points: 10
Solved Threads: 0
Newbie Poster
mrvinch is offline Offline
1 posts
since Jul 2006
Oct 16th, 2006
0

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

bobodunno ... that was a great . Thanks for the help.
Reputation Points: 10
Solved Threads: 0
Unverified User
pleal is offline Offline
2 posts
since Oct 2006

This thread is more than three months old

No one has posted to this discussion for at least three months. Please let old threads die and do not reply to them unless you feel you have something new and valuable to contribute that absolutely must be added to make the discussion complete. Otherwise, please start a new thread in this forum instead.
Message:
Previous Thread in PHP Forum Timeline: Web and widget developers needed
Next Thread in PHP Forum Timeline: My sql image links in table





About Us | Contact Us | Advertise | Acceptable Use Policy
Forum Index | Build Custom RSS Feed


Follow us on Twitter


© 2011 DaniWeb® LLC