473,230 Members | 1,389 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,230 software developers and data experts.

Installing PHP 5.05 on WIndows XP, Apache 2.0.54 - please help

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
AddType application/x-httpd-php-source .phps

set my php.ini doc-root file to :
doc_root = "C:\Program Files\Apache Group\Apache2\htdocs"

Ive followed all the FAQs on php.net , added c:/php to the Path etc

any ideas?

thanks

Sep 19 '05 #1
11 2882
On 19 Sep 2005 15:24:12 -0700, gregsands wrote:
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
AddType application/x-httpd-php-source .phps

set my php.ini doc-root file to :
doc_root = "C:\Program Files\Apache Group\Apache2\htdocs"

Ive followed all the FAQs on php.net , added c:/php to the Path etc

any ideas?

thanks


If your getting a 404 error it means it's not there on the server, not that
PHP isn't working!
Sep 19 '05 #2
Thats what I thought, so I created a helloworld.html file and put it in
the same folder as my test.php file (which contains <? phpinfo() ?> ).
My helloworld.html file works fine but the php file gets the file not
found eror message?

localhost/helloworld.html
localhost/test.php

location : Apache/htdocs/

Sep 20 '05 #3
gregsands wrote:
Thats what I thought, so I created a helloworld.html file and put it in
the same folder as my test.php file (which contains <? phpinfo() ?> ).
My helloworld.html file works fine but the php file gets the file not
found eror message?

localhost/helloworld.html
localhost/test.php

location : Apache/htdocs/


This may be entirely patronising but wheneverI setup Apache/PHP I create
a php file using notepad to test and almost always manage to call it
index.php.txt by accident ......... :D

Sep 20 '05 #4
More or less looks proper, yet,
A few things you may want to confirm/try out:
see if there is a php.ini in c:\windows, if there is remove it
dont forget to add c:\php to your system path, in winXP it is found by
right clicking on my computer, advanced tab, environment variables,in
the lower list (for the system)

also,
(there is no reason this should happen wrong, but .....) check if the
line
engine = On
is present in php.ini - it should be there.

This may sound silly, but one last thing that I can think of is making
a directory named php in C:\Pro.....\\\Apache2\htdocs and saying that
your doc_root is C:\Program Files\Apache Group\Apache2\htdocs\php

Also, check to see DocumentRoot in the httpd.conf file is set to the
htdocs folder.

Apart from these I cannot think of anything as yet. When you do get the
solution, kindly post it, as it seems to be interesting.

Regards,
Joseph S.

Sep 20 '05 #5
Im very embarrased, Manchild was correct, my test.php file was actually
test.php.txt duh
Ive been developing for 6 years and cant believe i fell for that one
thanks for all your help - im sorry it wasnt a real problem!!

cheers

greg

lol

Sep 20 '05 #6
Im very embarrased, Manchild was correct, my test.php file was actually
test.php.txt duh
Ive been developing for 6 years and cant believe i fell for that one
thanks for all your help - im sorry it wasnt a real problem!!

cheers

greg

lol

Sep 20 '05 #7
On 20 Sep 2005 05:04:32 -0700, gregsands wrote:
Thats what I thought, so I created a helloworld.html file and put it in
the same folder as my test.php file (which contains <? phpinfo() ?> ).
My helloworld.html file works fine but the php file gets the file not
found eror message?

localhost/helloworld.html
localhost/test.php

location : Apache/htdocs/


Please quote what your replying to.

The problem with that is that it doesn't prove anything of value, you can
open HTML files from any location and get the correct output, with php
files they need to go through the server to be parsed in order for the
output to be converted.

Do you have short tags enabled in your php.ini around about line 80,
because unless you have your script won't work, it should read <?php
phpinfo()?>
Sep 20 '05 #8
gregsands wrote:
Im very embarrased, Manchild was correct, my test.php file was actually
test.php.txt duh
Ive been developing for 6 years and cant believe i fell for that one
thanks for all your help - im sorry it wasnt a real problem!!

cheers

greg

lol


As soon as I read your post I thought "been there - done that ..."

HA HA :D

J
Sep 21 '05 #9

Hii!
All
I am Shridhar a silent member of this group?
Actually i am trying to learn the php but i doesn't have the perticular

notes please any body have the notes in php which can explain in
details right from the code to the run the programm. please send me on
my mail
id is sa*************@yahoo.co.in

I am a software engineer basically doing a job in scripting languages i

knew java,jsp etc etc.
i have some quries?
1.for a php we need the apache tomcat .i installed the apache
tomact4.3.1 in my PC for the java purpose. but when i start the tomcat
it will take the java files. what should i do to run php the way i
tried is it right method or i am wrong pls help me out.
2. when i wrote the program in note pad and save in the following
folder as
Tomcat--webapps--roots directory.
and when i run the programm.thru browser.that
https://localhost//8080//filename.php then the program doesn't works.
to write a php we need some software can any body tell me the excat
path where i can directly download the php software.
i have gone thru php.net,but i not able to download php installer
5.0.5. this
i tried in google also but i am getting some different things.
can any send me the software on my mail id sh************@yahoo.co.in
because in yahoo u can send the software by making the folder zip.
thanks in Advance,
Please send and clear my doubts as early as possible.
thanking you,
Regards,
Shridhar Samala.
--
shridharsamalaMessage posted via http://www.exforsys.com

Sep 22 '05 #10
You can install on your computar the xampp distribution
(http://www.apachefriends.org/en/xampp.html) and then you have already
an apache server on your windows. Then you must only run the apache
server with a bat file. xampp is so easy!!!

Then, if you want type code with some help you can download eclipse
(http://www.eclipse.org/) and an extensión for developping php script
called phpeclipse (http://phpeclipse.sourceforge.net/).

There is another open software called devphp
(http://devphp.sourceforge.net/) und that´s all OPEN SOURCE!!!

Good luck!!

shridharsamala wrote:
Hii!
All
I am Shridhar a silent member of this group?
Actually i am trying to learn the php but i doesn't have the perticular

notes please any body have the notes in php which can explain in
details right from the code to the run the programm. please send me on
my mail
id is sa*************@yahoo.co.in

I am a software engineer basically doing a job in scripting languages i

knew java,jsp etc etc.
i have some quries?
1.for a php we need the apache tomcat .i installed the apache
tomact4.3.1 in my PC for the java purpose. but when i start the tomcat
it will take the java files. what should i do to run php the way i
tried is it right method or i am wrong pls help me out.
2. when i wrote the program in note pad and save in the following
folder as
Tomcat--webapps--roots directory.
and when i run the programm.thru browser.that
https://localhost//8080//filename.php then the program doesn't works.
to write a php we need some software can any body tell me the excat
path where i can directly download the php software.
i have gone thru php.net,but i not able to download php installer
5.0.5. this
i tried in google also but i am getting some different things.
can any send me the software on my mail id sh************@yahoo.co.in
because in yahoo u can send the software by making the folder zip.
thanks in Advance,
Please send and clear my doubts as early as possible.
thanking you,
Regards,
Shridhar Samala.

Sep 22 '05 #11
Hi,
Fran García wrote:
You can install on your computar the xampp distribution
(http://www.apachefriends.org/en/xampp.html) and then you have already
an apache server on your windows. Then you must only run the apache
server with a bat file. xampp is so easy!!!
I second that.
Then, if you want type code with some help you can download eclipse
(http://www.eclipse.org/) and an extensión for developping php script
called phpeclipse (http://phpeclipse.sourceforge.net/).


I second third fourth that! PHPEclipse is excellent. I am learning php
as well and I just got xampp and PHPEclipse about 19 hours back - i am
up and running since 16 hours!!

If you meticulously follow the instructions at
http://www.plog4u.org/index.php/Using_PHPEclipse,
life will be very easy very quickly - Just give proper attention to
installing the debugger and setting up PHPEclipse for debugging:
http://www.plog4u.org/index.php/Usin...e_DBG_Debugger

HTH,
Joseph S.

Sep 22 '05 #12

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

Similar topics

1
by: Dan | last post by:
Hello, I am trying to read and write to an Excel file via my Java applet. I have done so successfully on several simple Excel files that simply had data cells without many complicated equations...
1
by: me | last post by:
I have been looking online for a year, and cant find one. I used to use the int86() command in dos command-line mode, but it can't work in linux. I am using Allegro to make my program work, but I...
0
by: Herbert Ebberg | last post by:
Hello, I need some help - my listener crashes without reason after installing Oracle 9i on a Windows XP Prof ServicePack2. I can start the listener with lsnrctl or with the services of xp, the...
2
by: Mihai Marinescu | last post by:
Hi all, I have a Windows Application which i want to make work as a Console application if the exe file is getting arguments. How can i accomplish this ? Mihai
2
by: hnkien | last post by:
Hi, I am writing a windows service with threading.timer for 10 seconds but it didn't work. Here are my code: namespace SchedulerService { public class ScheduleService :...
1
by: A Hirsi | last post by:
I have created a vb .net program as a service that is using a simple ftpclient to connect to a remote server and check the status of a file for subsequent downloading if there have been changes to...
5
by: Andrea Vincenzi | last post by:
Help me please, I'm totally stuck! My Visual Studio 2003 debugger stopped working after I installed Windows XP Service Pack 2. Here is what happens (with any project, even a "Hello, world"...
4
by: neil brown | last post by:
Whenever I try and run a project in VB.NET 2003, all i get is: "An unhandled exception of type 'System.ArgumentException' occurred in Unknown Module. Additional information: The parameter is...
4
by: =?Utf-8?B?Q2FybGFKYWRl?= | last post by:
Can anyone help me? I need to use picture it 2000 every day and use to use it on Windows XP and had NO problems at all. If I would open up windows explorer i could be in my folder that has all of...
1
by: Peter799999 | last post by:
Hello I'm wondering wich DB will be perfect for company and match this requirements: - will operate on "sensitive" data - intern system - should be low costs - user base is around 8000...
0
by: VivesProcSPL | last post by:
Obviously, one of the original purposes of SQL is to make data query processing easy. The language uses many English-like terms and syntax in an effort to make it easy to learn, particularly for...
3
isladogs
by: isladogs | last post by:
The next Access Europe meeting will be on Wednesday 3 Jan 2024 starting at 18:00 UK time (6PM UTC) and finishing at about 19:15 (7.15PM). For other local times, please check World Time Buddy In...
0
by: jianzs | last post by:
Introduction Cloud-native applications are conventionally identified as those designed and nurtured on cloud infrastructure. Such applications, rooted in cloud technologies, skillfully benefit from...
0
by: abbasky | last post by:
### Vandf component communication method one: data sharing ​ Vandf components can achieve data exchange through data sharing, state sharing, events, and other methods. Vandf's data exchange method...
0
by: fareedcanada | last post by:
Hello I am trying to split number on their count. suppose i have 121314151617 (12cnt) then number should be split like 12,13,14,15,16,17 and if 11314151617 (11cnt) then should be split like...
1
by: davi5007 | last post by:
Hi, Basically, I am trying to automate a field named TraceabilityNo into a web page from an access form. I've got the serial held in the variable strSearchString. How can I get this into the...
0
by: MeoLessi9 | last post by:
I have VirtualBox installed on Windows 11 and now I would like to install Kali on a virtual machine. However, on the official website, I see two options: "Installer images" and "Virtual machines"....
0
by: DolphinDB | last post by:
Tired of spending countless mintues downsampling your data? Look no further! In this article, you’ll learn how to efficiently downsample 6.48 billion high-frequency records to 61 million...
0
by: Aftab Ahmad | last post by:
Hello Experts! I have written a code in MS Access for a cmd called "WhatsApp Message" to open WhatsApp using that very code but the problem is that it gives a popup message everytime I clicked on...

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.