473,803 Members | 3,913 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

Apache Module of PHP on WindowsXP

I have installed Apache2.2 (C:\Program Files\Apache Software
Foundation\Apac he2.2) and it works..
Then I have installed php5 (c:\php)

To configure Apache to use php as the Apache Module I did the
following:
Renamed the file php.ini-recommended to php.ini and moved it in
c:\windows\
Copied file php5ts.dll and moved it to c:\windows\syst em

Added to httpd.conf file these three entry:
- - - - - - - - - - - - - - - -- - - -
LoadModule php5_module "c:/php/php5apache2.dll "

# configure the path to php.ini
PHPIniDir "C:/widnows/"

AddType application/x-httpd-php .phtml .php

- - - -- - - - - - -

As a result Apache doesn't parse php
I tried to change the location of php.ini file several times but it
still doesn't work.
Please help,
Thank you!

Jul 27 '06 #1
3 2145
php-newbe wrote:
I have installed Apache2.2 (C:\Program Files\Apache Software
Foundation\Apac he2.2) and it works..
Then I have installed php5 (c:\php)

Apache 2.2 doesn't work with supplied PHP5 dll objects. You must compile
the module from the source code or use Apache 2.0.54.
--
Mladen Gogala
http://www.mgogala.com
Jul 27 '06 #2

Mladen Gogala wrote:
php-newbe wrote:
I have installed Apache2.2 (C:\Program Files\Apache Software
Foundation\Apac he2.2) and it works..
Then I have installed php5 (c:\php)


Apache 2.2 doesn't work with supplied PHP5 dll objects. You must compile
the module from the source code or use Apache 2.0.54.
--
Mladen Gogala
http://www.mgogala.com
Dear Mladen:

Thank you very much. I've installed the Apache 2.0.57 (it was avalable
as Legacy version)
but it still does not work. would appreciate if you give me some
advice on what to do to make php work with Apache.
THanks,
Vera
P.S. I loved you web site.

Jul 27 '06 #3
On 27 Jul 2006 14:54:11 -0700, "php-newbe"
<ve*********@ve rizon.netwrote:
>
Mladen Gogala wrote:
>php-newbe wrote:
I have installed Apache2.2 (C:\Program Files\Apache Software
Foundation\Apac he2.2) and it works..
Then I have installed php5 (c:\php)


Apache 2.2 doesn't work with supplied PHP5 dll objects. You must compile
the module from the source code or use Apache 2.0.54.
--
Mladen Gogala
http://www.mgogala.com

Dear Mladen:

Thank you very much. I've installed the Apache 2.0.57 (it was avalable
as Legacy version)
but it still does not work. would appreciate if you give me some
advice on what to do to make php work with Apache.
THanks,
Vera
P.S. I loved you web site.
You have to add a line:

LoadModule php5_module c:\php\php5apac he2.dll

in your httpd.conf file. It should work with Apache 2.0.57, but
there's a bug you need to work around in Apache 2.2.x if you
don't have the Microsoft Visual C++ compiler (as I don't). Get
the php5apache2_2.d ll file from the current php 5.2 build and put
it in your c:\php directory, and modify the LoadModule line to
refer to it rather than php5apache2.dll
--
Roger

--
Posted via a free Usenet account from http://www.teranews.com

Aug 25 '06 #4

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

Similar topics

2
14170
by: Mike | last post by:
I am sure that I am making a simple boneheaded mistake and I would appreciate your help in spotting in. I have just installed apache_2.0.53-win32-x86-no_ssl.exe php-5.0.3-Win32.zip Smarty-2.6.7.tar.gz on a system running WindowsXP SP2. Apache and PHP tested out fine. After adding Smarty, I ran the following http://localhost/testphp.php
2
2103
by: TrashOverride | last post by:
Hello guys i have a question about apache... i have installed Apache 2.0.54 PHP 5 MySQL 4.01 and i was wondering if i could use a name to access my apache server -> not to use http://localhost but to use example1.com? i have tried to adjust the vhost section acording to the guide in the apache web page, but when i try i get error 404. also when i try http://localhost i also get 404. i've attached my .conf file. i want to access my server...
3
2339
by: Ryan Riehle | last post by:
Hi All! Trying to upgrade to Apache 2.0.49 and getting compile errors related to mod_auth_pgsql, any clue?: make: Entering directory `/usr/src/httpd-2.0.49' /usr/src/httpd-2.0.49/srclib/apr/libtool --silent --mode=link gcc -pthread -I/ =500 -D_BSD_SOURCE -D_SVID_SOURCE -D_GNU_SOURCE -DAP_HAVE_DESIGNATED_INITIALIZER I. -I/usr/src/httpd-2.0.49/os/unix -I/usr/src/httpd-2.0.49/server/mpm/prefork -I .49/modules/proxy
1
2137
by: php-newbe | last post by:
Dear PHP/MySQL pro: I have successfully installed MySQL, Apache 2, and php5 on WindowsXP. Both Apache server and PHP work fine. MySQL is accessible from the MySQL monitor, but I cannot access it from the php script. phpinfo() doesn't show MySQL server. I tried to find a solution, such as creating the path (C:\mysql\bin) in the Environment Variables, but it didn't work.
0
3789
by: zhenya.tkachenko | last post by:
Hi! Have a problem with mod_auth_mysql. Compilation and installation of module done ok: # /usr/local/apache/bin/apxs -c -L/usr/lib/mysql -I/usr/include/mysql -lmysqlclient -lm -lz mod_auth_mysql.c /usr/local/apache/build/libtool --silent --mode=compile gcc -prefer-pic -DAP_HAVE_DESIGNATED_INITIALIZER -DLINUX=2 -D_REENTRANT -D_GNU_SOURCE -g -O2 -pthread -I/usr/local/apache/include
3
12149
by: Sidu | last post by:
Ok well i'm still very new to apache, mysql, and php.. let me explain everything i have set up.. I have installed Appserv, for those of you who are unfamiliar with it.. it installs mysql, php, and apache all in 1 setup.. Ok.. from here.. I have a folder in my local drive appserv within it.. php, apache, mysql, and www. www holds everything in my index which is what i am directed to when i go to http://localhost Everything seems to be...
3
4136
by: John Murtari | last post by:
Folks, Trying to build php 4.4.6 and apache 1.3.37 on RHEL 4. Each of them builds and installs okay, but when we start apache we get: Syntax error on line 238 of /usr/local/etc/httpd/conf/httpd.conf: API module structure `php4_module' in file /usr/local/etc/httpd/libexec/libphp4.so is garbled - perhaps this is not an Apache module DSO?
10
6982
by: happyse27 | last post by:
Hi All, I got this apache errors(see section A1 and A2 below) when I used a html(see section b below) to activate acctman.pl(see section c below). Section D below is part of the configuration of section c. Not sure where went wrong as the web page displayed internal server error. Also, what is the error 543? and error 2114. Where to find the list of errors in websites as it is not the standard apache error. I could not find...
6
7602
by: josequinonesii | last post by:
I've searched, I've read, I've tested and re-read numerous post but to no avail yet... Quite simply, the settings I've applied to my httpd.conf, httpd-vhost.conf and my hosts files simply does not work. Please review my work and let me know if you see that one little thing that is throwing me for a loop. HTTPD.CONF # # This is the main Apache HTTP server configuration file. It contains the # configuration directives that give the...
0
9703
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However, people are often confused as to whether an ONU can Work As a Router. In this blog post, we’ll explore What is ONU, What Is Router, ONU & Router’s main usage, and What is the difference between ONU and Router. Let’s take a closer look ! Part I. Meaning of...
0
10548
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, it seems that the internal comparison operator "<=>" tries to promote arguments from unsigned to signed. This is as boiled down as I can make it. Here is my compilation command: g++-12 -std=c++20 -Wnarrowing bit_field.cpp Here is the code in...
0
9125
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, and deployment—without human intervention. Imagine an AI that can take a project description, break it down, write the code, debug it, and then launch it, all on its own.... Now, this would greatly impact the work of software developers. The idea...
1
7604
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 presenter, Adolph Dupré who will be discussing some powerful techniques for using class modules. He will explain when you may want to use classes instead of User Defined Types (UDT). For example, to manage the data in unbound forms. Adolph will...
0
6842
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and then checking html paragraph one by one. At the time of converting from word file to html my equations which are in the word document file was convert into image. Globals.ThisAddIn.Application.ActiveDocument.Select();...
0
5500
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The last exercise I practiced was to create a LAN-to-LAN VPN between two Pfsense firewalls, by using IPSEC protocols. I succeeded, with both firewalls in the same network. But I'm wondering if it's possible to do the same thing, with 2 Pfsense firewalls...
0
5629
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
2
3798
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.
3
2970
bsmnconsultancy
by: bsmnconsultancy | last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence can significantly impact your brand's success. BSMN Consultancy, a leader in Website Development in Toronto offers valuable insights into creating effective websites that not only look great but also perform exceptionally well. In this comprehensive...

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.