473,396 Members | 2,076 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,396 software developers and data experts.

Can't get PHP to work with Apache for Win32

Hi!
I have the Abyss webserver installed on my Windows 2000 workstation,
and it works OK with PHP (v4.3.7). Since I also have a Linux server at
an other location, I wanted to have similiar web server setup at home,
so I tried to install Apache webserver for Win32 (v1.3.33), but can't
get it to work with PHP. My PHP.INI has the,

; Enable the PHP scripting language engine under Apache.
engine = On

There's nothing about PHP inside the httpd.conf file. Have I missed
something here?

I would appreciate any comments on this.

TIA
Jul 17 '05 #1
2 2249
You need to load the php module in httpd.conf by adding these 3 lines
(change C:/PHP4_InstallationDir/ to reflect your installation):

LoadModule php4_module C:/PHP4_InstallationDir/php4apache.dll
AddModule mod_php4.c
AddType application/x-httpd-php .php

Dae
Hi!
I have the Abyss webserver installed on my Windows 2000 workstation,
and it works OK with PHP (v4.3.7). Since I also have a Linux server at
an other location, I wanted to have similiar web server setup at home,
so I tried to install Apache webserver for Win32 (v1.3.33), but can't
get it to work with PHP. My PHP.INI has the,

; Enable the PHP scripting language engine under Apache.
engine = On

There's nothing about PHP inside the httpd.conf file. Have I missed
something here?

I would appreciate any comments on this.

TIA

Jul 17 '05 #2
Carved in mystic runes upon the very living rock, the last words of
Daedalus of comp.lang.php make plain:
I tried to install Apache webserver for Win32 (v1.3.33), but can't
get it to work with PHP. My PHP.INI has the,

; Enable the PHP scripting language engine under Apache.
engine = On

There's nothing about PHP inside the httpd.conf file. Have I missed
something here?

You need to load the php module in httpd.conf by adding these 3 lines
(change C:/PHP4_InstallationDir/ to reflect your installation):

LoadModule php4_module C:/PHP4_InstallationDir/php4apache.dll
AddModule mod_php4.c
AddType application/x-httpd-php .php


Cool, I didn't know you could run PHP as an Apache module under Windohs.

If you want or need to run it as a CGI instead, include this in your conf
file:

AddType application/x-httpd-php php
Action application/x-httpd-php /bin/php4/php.exe

(With the appropriate path to your binary, of course)

--
Alan Little
Phorm PHP Form Processor
http://www.phorm.com/
Jul 17 '05 #3

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

4
by: synergz | last post by:
I have 2 parallel systems for php development Debian linux with apache and PHP4 and Windows XP professional with apache & PHP4 I have been in the habit of debugging on the xp machine before I...
0
by: lewi | last post by:
I am using the win32 versions of Apache 1.3.24 and PHP 4.2.1 on Win2k Pro... Now I have Apache all setup and install PHP to use the php4apache.dll to use PHP as a sapi module and I am...
5
by: DrWizard | last post by:
Hi I been first times setup. So Who have experience the Win98 + Apache + php (not run PWS or IIS) I begin download and installed the Apache. I test the run is working on browser...
1
by: Rolfe | last post by:
Hi, I struggled, and got mod_python running on Apache/Win2k. Follow these instructions verbatim and you shouldn't have any trouble. These instructions are based on...
6
by: Piet | last post by:
Hi there, I cannot install mod_python v3.1.3 on either Win2k/ActivePython 2.3.2 or WinMe/Python 2.3.4. When I run the Windows installer, I get the following error message: Traceback (most recent...
7
by: Steevo | last post by:
I am hoping to run a small website from a server in my house. Many people have suggested I use Apache web server and pointed me to: http://www.apache.org/dist/httpd/binaries/win32/ to download...
3
by: SMH | last post by:
Template Document Processor: PHP 5.1.6 Server: Apache httpd 2.0.55 (Win32) Database Server: MySQL 5.0.26-community for Win32 Operating System: ...
11
by: cybervigilante | last post by:
I can't seem to change the include path on my local winmachine no matter what I do. It comes up as includ_path .;C:\php5\pear in phpinfo() but there is no such file. I installed the WAMP package...
2
by: AlterEgo | last post by:
Hi all PHP newbie here, 1) I disabled IIS. 2) Loaded Apache 2.2.4 on Win2K3. 3) Loaded PHP 5.2.4 pretty much bare bones, but included MySQL, SMTP, SOAP and ZIP extensions. Installers:...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
0
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing,...
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.