PHP Installation
 
Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
User Name:
Password:
Remember me
Go Back   Codewalkers ForumsPHP RelatedPHP Installation

Reply
Add This Thread To:
  Del.icio.us   Digg   Google   Spurl   Blink   Furl   Simpy   Y! MyWeb 
Thread Tools Search this Thread Rate Thread Display Modes
 
Unread Codewalkers Forums Sponsor:
Be the architects of evolution and help create the mobile internet future. It’s your move---enter to win here!
  #1  
Old April 6th, 2004, 07:14 PM
darkskys darkskys is offline
Codewalkers Newbie (0 - 499 posts)
 
Join Date: Apr 2007
Location: UK, London
Posts: 36 darkskys User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 2
test.php don't work

Hello all i need some help getting start with mysql, apache and php

ive been following this tutorial
http://www.staff.city.ac.uk/~ra531/Aplications%20Installation%20and%20Configuration.h tm
installation on windows 2000 professional
i did everything the tutorial told me to do. but when i test it with the test.php i.e <?php phpinfo(); ?> on the browser it actually displays <?php phpinfo(); ?> the php doesnt work

can someone help me or give me a link to a better tutorial suitable for windows 2000 professional
many thanx




Reply With Quote
  #2  
Old April 6th, 2004, 07:21 PM
techmonkey techmonkey is offline
Codewalkers Newbie (0 - 499 posts)
 
Join Date: Apr 2007
Location: United Kingdom
Posts: 113 techmonkey User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 2
Send a message via ICQ to techmonkey Send a message via AIM to techmonkey
RE: test.php don't work

Did you configure Apache to recognise PHP files? ie: with ScriptAlias, etc?

Reply With Quote
  #3  
Old April 6th, 2004, 07:25 PM
darkskys darkskys is offline
Codewalkers Newbie (0 - 499 posts)
 
Join Date: Apr 2007
Location: UK, London
Posts: 36 darkskys User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 2
RE: test.php don't work

yes i added the additional lines in the httpd.conf file but i still dunno wots wrong

Reply With Quote
  #4  
Old April 6th, 2004, 07:30 PM
techmonkey techmonkey is offline
Codewalkers Newbie (0 - 499 posts)
 
Join Date: Apr 2007
Location: United Kingdom
Posts: 113 techmonkey User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 2
Send a message via ICQ to techmonkey Send a message via AIM to techmonkey
RE: test.php don't work

Did you put php4ts.dll in the right place? It's been a while since I installed my Apache/PHP/MySQL setup on Windows now, have a look at the readme file included with the PHP distribution.

Reply With Quote
  #5  
Old April 6th, 2004, 07:30 PM
techmonkey techmonkey is offline
Codewalkers Newbie (0 - 499 posts)
 
Join Date: Apr 2007
Location: United Kingdom
Posts: 113 techmonkey User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 2
Send a message via ICQ to techmonkey Send a message via AIM to techmonkey
RE: test.php don't work

Oh, restart Apache by the way, to load in the new PHP module and types. And note any errors it spits out.

Reply With Quote
  #6  
Old April 6th, 2004, 07:36 PM
darkskys darkskys is offline
Codewalkers Newbie (0 - 499 posts)
 
Join Date: Apr 2007
Location: UK, London
Posts: 36 darkskys User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 2
RE: test.php don't work

apache runs ok. i placed the php4ts.dll and msvcrt.dll in the c:winntsystem
i been trying to search for solutions for 2 days and i got exams comin up and project due in

Reply With Quote
  #7  
Old April 6th, 2004, 07:40 PM
darkskys darkskys is offline
Codewalkers Newbie (0 - 499 posts)
 
Join Date: Apr 2007
Location: UK, London
Posts: 36 darkskys User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 2
RE: test.php don't work

would i have to make any alterations to php.ini file for apache to recognise php?

Reply With Quote
  #8  
Old April 7th, 2004, 05:45 AM
Andrew's Avatar
Andrew Andrew is offline
Moderator
Click here for more information
 
Join Date: Apr 2007
Location: United Kingdom
Posts: 1,937 Andrew User rank is Private First Class (20 - 50 Reputation Level)Andrew User rank is Private First Class (20 - 50 Reputation Level)  Folding Points: 2429 Folding Title: Novice Folder
Time spent in forums: 4 Days 1 h 57 m 37 sec
Reputation Power: 3
Orkut
RE: test.php don't work

you shouldnt have too but if your really stuck remove php (do reverse of install) and download the exe installer to do it for you

Reply With Quote
  #9  
Old April 7th, 2004, 07:01 AM
darkskys darkskys is offline
Codewalkers Newbie (0 - 499 posts)
 
Join Date: Apr 2007
Location: UK, London
Posts: 36 darkskys User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 2
RE: test.php don't work

hi kendo thanx for helping
i used the installer 4.3.4 but it still doesnt work, it tells me that i have to configure the httpd.conf file manual

i been search on the net for tutorials on installation for windows 2000 but the information varies and gets confusing.
Ive tried manual changing the conf file many times to noo prevail.

is it possible for you to guide me with the httpd.conf file or suggest where i can down one for windows 2000

Reply With Quote
  #10  
Old April 7th, 2004, 12:48 PM
techmonkey techmonkey is offline
Codewalkers Newbie (0 - 499 posts)
 
Join Date: Apr 2007
Location: United Kingdom
Posts: 113 techmonkey User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 2
Send a message via ICQ to techmonkey Send a message via AIM to techmonkey
RE: test.php don't work

When I was starting out this tutorial was the best I could find. Perhaps it can help you?
http://www.webmasterstop.com/tutorials/apache-php-mysql-installation.shtml

But the PHP installer telling you that you may need to configure httpd.conf yourself isn't PHP 'not working', you just have to go on extra step before the install is completed.

There's another file you need to put in a specific directory aswell as php4ts.dll, but I've forgotten the name of it.

<aside>
And Microsoft say they're actually better than running a 'nix box. Tchah! I got my webserver with all components included at install. </aside>

Reply With Quote
  #11  
Old April 7th, 2004, 02:45 PM
darkskys darkskys is offline
Codewalkers Newbie (0 - 499 posts)
 
Join Date: Apr 2007
Location: UK, London
Posts: 36 darkskys User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 2
RE: test.php don't work

Hi again i followed the tutorial downloaded everything installed it made the changes to the httpd conf file but it still gives me the same result shows <?PHP phpinfo(); ?> on the browser again.
Im pulling my hair out

Reply With Quote
  #12  
Old April 7th, 2004, 04:07 PM
techmonkey techmonkey is offline
Codewalkers Newbie (0 - 499 posts)
 
Join Date: Apr 2007
Location: United Kingdom
Posts: 113 techmonkey User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 2
Send a message via ICQ to techmonkey Send a message via AIM to techmonkey
RE: test.php don't work

Ok. Make sure you're doing this:
Run Apache and make sure it doesn't note any errors, warnings or notices etc. If it does, post them here.

Edit your C:%apache_dir%confhttpd.conf to add this at the end. (Assuming you put PHP in the default place)
[code]
ScriptAlias /php/ "c:/php/"

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

Action application/x-httpd-php "/php/php.exe"
[/highlight]

Make sure you've done what the readme file that ships with PHP says for installing it with Apache on Win32 systems.

Make newtest.php:
[highlight=php]
<?php
echo "Hello World!";
?>
[highlight=php]

And navigate to this in your browser:
http://localhost/newtest.php

DON'T go to C:%apache_dirhtdocsnewtest.php - that's not routing newtest.php through PHP, so yes in that case, you will just get the source open up in some program - possibly IE, more likely notepad or a Source Editor like Dreamweaver.

Reply With Quote
  #13  
Old May 1st, 2004, 05:45 AM
vinhvu vinhvu is offline
Codewalkers Newbie (0 - 499 posts)
 
Join Date: Apr 2007
Location: Hamilton
Posts: 1 vinhvu User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 0
RE: test.php don't work

Hi there. I have followed through this thread and I found that I have the same problem. It prints out the code instead of the output that I was expecting. Am i missing anything? I just innstalled PHP 4.3.6 and Apache 1.3.29 on my fresh windows XP system.

Thanks.
Vinh Vu

Reply With Quote
  #14  
Old May 21st, 2004, 03:11 PM
Anonymous Anonymous is offline
Registered User
Codewalkers God 35th Plane (22000 - 22499 posts)
 
Join Date: Apr 2007
Posts: 22,309 Anonymous User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 24
RE: test.php don't work


Reply With Quote
Reply

Viewing: Codewalkers ForumsPHP RelatedPHP Installation > test.php don't work


Thread Tools  Search this Thread 
Search this Thread:

Advanced Search
Display Modes  Rate This Thread 
Rate This Thread:


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
View Your Warnings | New Posts | Latest News | Latest Threads | Shoutbox
Forum Jump


Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support |