473,812 Members | 2,985 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

installing php on apache2/windows xp

Sid
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

Jul 17 '05 #1
7 2024
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
Jul 17 '05 #2
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.
Jul 17 '05 #3
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/install...ws.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

Jul 17 '05 #4
"Rex Karz" wrote:
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.


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-installi...ict189896.html
Visit Topic URL to contact author (reg. req'd). Report abuse: http://www.dbforumz.com/eform.php?p=678608
Jul 17 '05 #5
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

Jul 17 '05 #6
"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-installi...ict189896.html
Visit Topic URL to contact author (reg. req'd). Report abuse: http://www.dbforumz.com/eform.php?p=679229
Jul 17 '05 #7
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/install...ws.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.
js*******@attgl obal.net
Member of Independent Computer Consultants Association - www.icca.org
Jul 17 '05 #8

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

Similar topics

0
2894
by: michael newport | last post by:
I did the following as instructed in the docs. (see below) everything seemed to install ok and I started apache with no complaints, but, 1)I do not see a process for apache using ps -ef 2) In yast I see that the new apache2 version is installed but not php5, its still on php4 any ideas ??
3
5503
by: Vik Rubenfeld | last post by:
I'm a newbie to Apache. This week I installed my first Apache 2.0 server, and it's working fine. I then installed PHP. When I ran the PHP test file ("test.php"), the actual text contents of the file came up in the browser: ---------------- <?php phpinfo(); ?> ----------------
5
2801
by: Ad Astra | last post by:
I am completely new to PHP and am finding installation the most difficult part to understand and implement. Could someone please review the rather long missive below and assist me? I have provided it in as clear a fashion as possible. COMPONENTS * Windows XP (Home) * Apache2 server (successfully installed; located as
2
2237
by: Bill McFarland | last post by:
Hi folks. I'm installing PHP 5 with Apache 2 as a module (also with MySQL embedded in php as an extension along with gd and tiny) on a Win2003 server. When I start Apache2 as a service without the php.ini in the C:\WINDOWS directory, Apache starts. PHP also functions (my test.php file (<? phpinfo(); ?>) produces the expected output), however, none of the three embedded modules is active (which is to be expected). When I add the...
2
14171
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
1
1654
by: bissatch | last post by:
Hi, I have had to reinstall windows and at present I am currently trying to put back in place my apache2/php4 setup. I have installed apache and I get the http://localhost 'apache is installed' page. Nice one! When I try to configure apache with PHP unzipped into a folder (c:/php) and run it as a module, no matter what I try it just wont load the PHP
11
2927
by: gregsands | last post by:
Hi Im trying to install PHP 5.05 on Windows XP running Apache 2.0.54 Apache is running fine and ive made all the changes to the pnp.ini file and Apache config file, restarted Apache but all I get when trying to call my test.php file is a 404 error? http.config file: LoadModule php5_module "C:/php/php5apache2.dll" PHPIniDir "C:/php" AddType application/x-httpd-php .php
5
1772
by: Samuel | last post by:
Can someone please help me install php on apache? I downloaded the latest stable msi installer. Left it with default options unless i specifically needed to change them (e.g. server). Then I went to configue my httpd.conf file, and I realised I don't know where to put the lines of code. Can someone please say where I need to insert: 1) ScriptAlias /php/ "c:/php/"
9
25679
usafshah
by: usafshah | last post by:
Hi guys I'm using fedora core 6, php5 and apache2, i downloaded gd2 compiled and test with gddemo and its working fine... php is located: /usr/local/php gd is located: /usr/local/gd how should i make it working with php, i have tried to recompile php with the following command
0
9734
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
9607
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can effortlessly switch the default language on Windows 10 without reinstalling. I'll walk you through it. First, let's disable language synchronization. With a Microsoft account, language settings sync across devices. To prevent any complications,...
0
10664
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
10404
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 tapestry of website design and digital marketing. It's not merely about having a website; it's about crafting an immersive digital experience that captivates audiences and drives business growth. The Art of Business Website Design Your website is...
0
9219
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
7677
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
6897
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();...
1
4357
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated we have to send another system
3
3029
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.