Current location: Hot Scripts Forums » Programming Languages » PHP » php with Apache in windows


php with Apache in windows

Reply
  #1 (permalink)  
Old 07-15-04, 01:06 PM
eDevil eDevil is offline
New Member
 
Join Date: Jul 2004
Posts: 2
Thanks: 0
Thanked 0 Times in 0 Posts
Lightbulb php with Apache in windows

Integrating php 4.3.4 with Apache 2.0.50 under win32 platform
(At last I have worked it out!!)

1. Download the windows installer ?apache_2.0.50-win32-x86-no_ssl.msi? from httpd.apache.org/download.cgi
2. Download the php installer ?php-4.3.4-installer.exe? from www.php.net
3. Download ?http://hulan.info/blog/other/apache2_php4_win.zip? (Thanks to Radek Hulan)
4. Install Apache 2.0 and php 4.3.4 in default locations
5. Extract the zip file
6. Copy the files in the extracted folders and paste them in respective places replacing files where necessary.
7. Copy php.ini from c:/php/ and paste in c:/windows/system32/ and c:/windows
8. Create a folder named ?www? in c:/
9. Restart the Apache service (you don?t need to change the .config files ? Radek has done it for us )
10. create a php file with the following content and save in c:/www/


<html>
<head><title>PHP Test</title></head>
<body>
<? phpinfo(); ?>
</body>
</html>



11. Type localhost in your browser and you will get to see the php config list

Done!!

NOTE: THIS PROCESS DOES NOT WORK WITH ?PHP 4.3.8? OR ?PHP 5.0?
Php 4.3.4 is the most stable version so I recommend this
This process doesn?t work with previous versions of Apache
Apache 2.0.50 and php 4.3.4 is the best combination available!!

Any problems? Mail me: admin@manutdcentral.com
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiShare on FacebookShare on Stumble UponShare on Twitter
Reply With Quote
  #2 (permalink)  
Old 07-22-04, 06:06 PM
favor favor is offline
New Member
 
Join Date: Jul 2004
Posts: 1
Thanks: 0
Thanked 0 Times in 0 Posts
freshbie needs help! -php+apache

Hi

I had installed apache 2.0.48 intially and it worked fine. Then I installed PHP(php-4.3.8-installer.exe). Then I followed some online instructions to configure apache for PHP and everything messed up...i made some changes in httpd.conf and everything goofed up...the error message from then on..was

(OS 10048)Only one usage of each socket address (protocol/network address/port)
is normally permitted. : make_sock: could not bind to address 0.0.0.0:80
no listening sockets available, shutting down
Unable to open logs


later i tried to revert back the httpd.conf to initial condition but apache was never to work.
So I uninstalled and got to see this forum where there was step by step procedure to install php and apache. So I reinstalled apache 2.0.50 this time..but then it doesnot start at all. the same error message mentioned above occurs.
I have also restarted the system several times following every uninstallation and reinstallation.

Please help me in fixing this error and also in succesful installation of apache/php.

My system is in network and it is a win xp pro

thanks in advance,

favor
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiShare on FacebookShare on Stumble UponShare on Twitter
Reply With Quote
  #3 (permalink)  
Old 07-22-04, 06:46 PM
ermau's Avatar
ermau ermau is offline
Wannabe Coder
 
Join Date: Aug 2003
Location: Florida, USA
Posts: 240
Thanks: 0
Thanked 0 Times in 0 Posts
Actually I'd say 4.3.8 is the most stable and secure version of PHP, not 4.3.4.

Favor, check the ServerName in your httpd.conf, make sure this is set to something like localhost or 127.0.0.1, or your network IP. Not 0.0.0.0. Also make sure you're not running anything else that's bound to port 80, such as IIS or PWS.
__________________
PHP / mySQL Developer
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiShare on FacebookShare on Stumble UponShare on Twitter
Reply With Quote
  #4 (permalink)  
Old 08-08-04, 01:03 AM
CodeBuster's Avatar
CodeBuster CodeBuster is offline
Newbie Coder
 
Join Date: Aug 2004
Location: Netherlands
Posts: 5
Thanks: 0
Thanked 0 Times in 0 Posts
The best way to install php with an apache server on windows is using the dll file.. just get the .zip file and not the installer.

unzip it anywhere you like... I have this structure

H:\Server
...... \Apache2
...... \MyPHP
...... \MySQL

VERY IMPORTANT... copy the php4apache2.dll to the php root folder (i.e were you placed it), otherwise it wont work. If you use apache 1.3.xx the take php4apache.dll

then add to your http.conf file these two lines

LoadModule php4_module H:/Server/MyPHP/php4apache2.dll
AddType application/x-httpd-php .php

Now it starts up, integrated in apache which is a big time saver, because it doesn't have to start up which each and every page request.

I have both apache 1.3.29 and 2.0.50 running this way on two computers in a shared network environment with no problems at all.
This method also works with php5.. just rename all php4 thingies to php5
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiShare on FacebookShare on Stumble UponShare on Twitter
Reply With Quote
Reply

Bookmarks


Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
Local Apache and PHP installation MasQ PHP 5 07-13-04 03:30 AM
Apache, MySQL, PHP, PERL, Content Providers Needed! vbgunz Traffic Exchange 0 04-17-04 09:26 PM
apache handlers for php alexj PHP 0 01-05-04 04:06 PM
PHP - Windows Authentication link Mista Script Requests 3 12-29-03 07:09 PM
Proven PHP Script not working on Windows 2000 server – any ideas? chimchim PHP 5 11-13-03 10:16 PM


All times are GMT -5. The time now is 12:51 PM.
vBulletin® Copyright ©2000 - 2012, Jelsoft Enterprises Ltd.