View Full Version : need a little direction
dfross
September 21, 2002, 09:21 PM
:-\well, my dilemma is this. I downloaded and successfully installed (at least I think I did) apache web server and the "runtime environment" for pHp but I don't know if it works. whenever I try to run a pHp script, I'm getting a prompt to download the pHp file from the localhost (NB. I'm using my PC as webserver). I'm thinking one of the configurations in the httpd.conf file are incorrect but I can't tell which one. I was sure to follow all the instructions... the php file is in the apache root dir (htdocs) and the file extension is correct but I'm not sure how exactly to manipulate the Scriptaliases and Action lines to make them match up.
can anyone give me some pointers as to where I could've gone wrong while installing?
Chris
September 21, 2002, 09:26 PM
Questions:
1. what OS ar you running?
2. what versions of apache and PHP have you installed?
These might seem like stupid questions but I had issues with Apache 2.x and PHP 4.x on a Win 98 machine (don't laugh :-[). I ended up using Apache 1.23 and PHP 4.x.
dfross
September 21, 2002, 09:29 PM
well I'm using windows ME , and I've installed pHp 4.2.3 and apache HTTP server 2.0.40
Vermanucci
September 21, 2002, 10:00 PM
All I have to say is ;D hehe hehe - just kidding. ;) I had problems with it too - maybe not the same one - but hey - this is where i turned to (below).
http://www.phpbuilder.com/columns/moon19990716.php3
http://www.phpbuilder.com/columns/boutwell19991212.php3
http://www.phpbuilder.com/columns/suyoto20010809.php3
Those pages have links to other stuff that should help you out. - You too Chris. I fixed my problem - hope you have the same luck with yours.
Are you using latest version - http://www.php.net/downloads.php - the link is stairing you right in the face at the bottom of each page of this board ::) http://www.techjamaica.com/tech_forum/YaBBImages/php.gif
Respec... 8)
FYI:
Physicists create antimatter - http://news.com.com/2100-1001-958719.html
Microsoft buys game developer "Rare" - http://news.com.com/2100-1040-958821.html
First wearable PC - http://www.techtv.com/news/computing/story/0,24195,3392846,00.html
Chris
September 21, 2002, 10:22 PM
Verm, I'll deal with you later ;D
dfross, after you moved php4ts.dll to the windows\system directory, make sure you add the three lines to the Apache conf file:
LoadModule php4_module c:/php/sapi/php4apache2.dll
AddModule mod_php4.c
AddType application/x-httpd-php .php
Note that I have c:/php/sapi/php4apache2.dll instead of c:/php/sapi/php4apache.dll as indicated in the php instructions.
Try this and see if it works.
Oh, make sure you stop and start back the server after making the changes.
dfross
September 22, 2002, 10:36 AM
fixed the problem guys, apparently apache version 2.x does not work properly with php 4.x on windows ME. so I had was to download the previous version of apache (version 1.3.x) and now it is working just fine.
thanks alot for the help.
one
8)
Chris
September 22, 2002, 12:32 PM
dfross, glad to know you've resolved the problem. I thought I was missing something when I encountered the same issues. If you want Apache 2.x and PHP 4.x to work, upgrade to Windows 2000 or XP pro from ME/98.
Vermanucci
September 22, 2002, 08:48 PM
??? Why use Apache on Win2k or XP - when you have IIS at your disposal?
CKnight
September 23, 2002, 08:31 AM
code red anyone?
bobi
July 16, 2003, 10:33 PM
basically, i have installed php using a server know as sambar on my pc. you might not choose the correct installation option for php when you were installing it. if problems persists you need to check your php.ini file and make sure every things is correct.
owenxp
July 17, 2003, 06:10 PM
I am using ASP now and would like to start using php, well least get familiar with it. Whats the best why to do that. Being that I am using SQL server 2000 and IIS on XP.
Chris
October 2, 2003, 10:45 AM
I am using ASP now and would like to start using php, well least get familiar with it. Whats the best why to do that. Being that I am using SQL server 2000 and IIS on XP.
The best way of course would be to get PHP and MySQL on a box and start pplaying around with it. You can download and install them freely and there are many PHP resources around to learn the language.
owen
October 2, 2003, 12:17 PM
??? Why use Apache on Win2k or XP - when you have IIS at your disposal?
Apache .htaccess files are very powerfull (you can do stuff like symlinks and virtual directories)
pigeonflight
October 7, 2003, 11:29 AM
you can use Linux.
Everything can be installed at install time and you won't have to pirate or pay lots of money just to get apache and PHP running.
you probably know all the other advantages why people like Google and Amazon use Linux so I won't preach :)
GodKid
October 7, 2003, 03:19 PM
... you won't have to pirate or pay lots of money just to get apache and PHP running.
Why would you have to pirate to get either of these to run if you're not using Linux?
Chris
October 19, 2003, 09:07 PM
Why would you have to pirate to get either of these to run if you're not using Linux?
I suspect that he was referring to the cost of getting Windows to run Apache and PHP
Powered by vBulletin® Version 4.2.0 Copyright © 2013 vBulletin Solutions, Inc. All rights reserved.