having trouble getting apache to work with php

PHP programming forum. Ask questions or help people concerning PHP code. Don't understand a function? Need help implementing a class? Don't understand a class? Here is where to ask. Remember to do your homework!

Moderator: General Moderators

Post Reply
sos
Forum Newbie
Posts: 7
Joined: Thu Jan 02, 2003 9:35 pm

having trouble getting apache to work with php

Post by sos »

hello
I am having this problem I just installed apache and php on my computer which runs win2k. Well I am having trouble getting apache configured to use php. Like when ever I type "localhost/test.php" it causes a page cannot be displayed error. I tried to configure apache but nothing I tried worked so far. I just downloaded the lastest version of php and the lastest version of apache. Please can any one help me configure apache so that it will work with php or tell me what I have to do thank you all so much.
User avatar
volka
DevNet Evangelist
Posts: 8391
Joined: Tue May 07, 2002 9:48 am
Location: Berlin, ger

Post by volka »

what exactly is the error?
sos
Forum Newbie
Posts: 7
Joined: Thu Jan 02, 2003 9:35 pm

its more of an page cannot be displayed message then a erro

Post by sos »

whats happening is I am not really getting an error just a page not being displayed message when I know for sure the file is in the directory. well I am trying to figure out the correct way to edit my httpd.conf file so that apache will be able to process .php files this is how I got it set up php is installed in my c:/PHP and apache is in my program files/ Apache Group / Apache2 if that means anything well can you please help me set up this file I already copied php4ts.dll into the winnt/system32 folder and the php.ini to the winnt folder now I just need to figure how to edit the file so that it everything clicks you know thank you for your help.
User avatar
volka
DevNet Evangelist
Posts: 8391
Joined: Tue May 07, 2002 9:48 am
Location: Berlin, ger

Post by volka »

first check wether apache is running at all via http://localhost/
This should show up the welcome page of your apache.
Then read (and follow) http://www.php.net/manual/en/install.apache2.php
check your installation with the script

Code: Select all

<?php phpinfo(); ?>
as it is simple but will also provide useful information
elipollak
Forum Newbie
Posts: 22
Joined: Sun Jan 19, 2003 10:23 pm

Just get phptriad ... php,mysql,apaache .... setup does all

Post by elipollak »

If you're using windows, why don't u just get phptriad
It has php,mysql and apache for you.
It installs it all for you and there's no dramas.


I highly recommend it.
I use it and have found it great and have not had a single problem
:)

Eli
sane993
Forum Newbie
Posts: 22
Joined: Thu Jan 16, 2003 9:44 pm

Post by sane993 »

sos
Forum Newbie
Posts: 7
Joined: Thu Jan 02, 2003 9:35 pm

Post by sos »

Problem is solved. I went the easy way and downloaded PHPTRIAD, Thanks E and Thank you all for answering every aspect of my question.
Post Reply