For Programmers: Free Programming Magazines  


Home > Archive > PHP Programming > February 2005 > installing php on apache2/windows xp









You are viewing an archived Text-only version of the thread. To view this thread in it's original format and/or if you want to reply to this thread please [click here]

 

Author installing php on apache2/windows xp
Sid

2005-01-21, 3:57 am

hello!

i am a newbie and 'am trying to install php 5.0.3 on apache 2.0.52 on
windows xp sp1.

the problem i am getting is whenever i call a .php page in my web
browser e.g. http://localhost/test.php, contents on test.php file are
displayed on web browser, instead on the result. e.g. my test.php file
has:

Today's date is: <? print (date ("M d, Y")); ?>

this whole message is displayed when i call http://localhost/test.php
instead of today;s date.

i am a newbie and don't know much.

i shall greatly appreciate if you can help me out.
thanks for looking,

regards,
siddharth

Schraalhans Keukenmeester

2005-01-21, 8:56 am

Sid wrote:
> hello!
>
> i am a newbie and 'am trying to install php 5.0.3 on apache 2.0.52 on
> Windows XP sp1.
>
> the problem i am getting is whenever i call a .php page in my web
> browser e.g. http://localhost/test.php, contents on test.php file are
> displayed on web browser, instead on the result. e.g. my test.php file
> has:
>

Did you tell apache to use the php_module and what to do with php
extensions ? Is your php.ini correct and in the correct place ?

(See the PHP install readme for details on how to)
HTH
Schraalhans
Rex Karz

2005-01-22, 3:56 pm

Sid wrote:
> hello!
>
> i am a newbie and 'am trying to install php 5.0.3 on apache 2.0.52 on
> Windows XP sp1.
>


Save yourself much trouble.
Install XAMPP.
http://www.apachefriends.org/en/xampp.html

xampp contains apache, PHP, MySQL, and some other related
open-source packages.

XAMPP is the best solution to developing web content on a Windows
box where the intended target platform for actual hosting is a
Unix host.

--
The name, "Rex Karz" is a pseudonym. The From: email address
is a spam trap. Messages sent to that address may cause the
sender's IP-address to be listed in one or more DNSBls.
Manzoorul Hassan

2005-02-21, 3:57 am

I have installed PHP v5.0.3 and apache 2.0.53 on my Windows XP system
and am trying to cofigure PHP as a Module. I tried following the
Documentation on PHP.net
(http://us2.php.net/manual/en/instal...ows.apache2.php) but I didn't
find the php5apache2.dll as the doc was expecting me to set

LoadModule php5_module "c:/php/php5apache2.dll"

But there is a php5ts.dll, so I just set the LoadModule ot point ot it.

Now apache will not start :o(

What am I doing wrong? Please help.

- manzoor

steve

2005-02-21, 3:57 am

"Rex Karz" wrote:
> Sid wrote:
> 2.0.52 on
>
> Save yourself much trouble.
> Install XAMPP.
> http://www.apachefriends.org/en/xampp.html
>
> xampp contains apache, PHP, MySQL, and some other related
> open-source packages.
>
> XAMPP is the best solution to developing web content on a
> Windows
> box where the intended target platform for actual hosting is a
>
> Unix host.
>
> --
> The name, "Rex Karz" is a pseudonym. The From: email address
> is a spam trap. Messages sent to that address may cause the
> sender's IP-address to be listed in one or more DNSBls.


I also recommend using a package. It will save you all the trouble
and isolates you from detail that you really don’t need to know. I
use appserv.

--
Posted using the http://www.dbforumz.com interface, at author's request
Articles individually checked for conformance to usenet standards
Topic URL: http://www.dbforumz.com/PHP-install...pict189896.html
Visit Topic URL to contact author (reg. req'd). Report abuse: http://www.dbforumz.com/eform.php?p=678608
Manzoorul Hassan

2005-02-21, 3:57 pm

Thanx.

"appserv" (http://www.appservnetwork.com/) seems like a Windows only
solution. I need to the same on Linux. What would be a comparable
solution there?

- manzoor

steve

2005-02-21, 3:57 pm

"user2718" wrote:
> Thanx.
>
> "appserv" (http://www.appservnetwork.com/) seems like a
> Windows only
> solution. I need to the same on Linux. What would be a
> comparable
> solution there?
>
> - manzoor


xampp recommended in earlier posts also works for Linux....

--
Posted using the http://www.dbforumz.com interface, at author's request
Articles individually checked for conformance to usenet standards
Topic URL: http://www.dbforumz.com/PHP-install...pict189896.html
Visit Topic URL to contact author (reg. req'd). Report abuse: http://www.dbforumz.com/eform.php?p=679229
Jerry Stuckle

2005-02-24, 8:56 pm

Manzoorul Hassan wrote:
>
> I have installed PHP v5.0.3 and apache 2.0.53 on my Windows XP system
> and am trying to cofigure PHP as a Module. I tried following the
> Documentation on PHP.net
> (http://us2.php.net/manual/en/instal...ows.apache2.php) but I didn't
> find the php5apache2.dll as the doc was expecting me to set
>
> LoadModule php5_module "c:/php/php5apache2.dll"
>
> But there is a php5ts.dll, so I just set the LoadModule ot point ot it.
>
> Now apache will not start :o(
>
> What am I doing wrong? Please help.
>
> - manzoor


Manzoor,

Why don't you have a php5apache2.dll module? This is the one you need
to load, as per the documentation, and it exists on my system.

Check to ensure you downloaded the correct file.

--

To reply, delete the 'x' from my email
Jerry Stuckle,
JDS Computer Training Corp.
jstucklex@attglobal.net
Member of Independent Computer Consultants Association - www.icca.org
Sponsored Links







Also available: Server administration forum archive | Web Design forum archive | Software forum archive | Hardware reviews archive

Copyright 2010 codecomments.com