View Full Version : Getting Started
ScottInTexas
10-26-2005, 10:33 PM
Well, I've decided to quit doing my web site in ASP and go to PHP. So I downloaded Apache and all that. Apparently it is all working correctly. Now what? I could use a tutorial to help get me familiar with the workings of the server for testing scripts. Also, is there anything I need to change in the apache configuration file?
And finally, how do I test my work using the localhost?
Your answers are greatly appreciated.
Al_90
10-27-2005, 01:12 AM
first download php from php.net and install it.
yes you do need to change the apache config file
and you need a php.ini file in the php folder
add this to the bottom of httpd.conf (apache config file)
----------------------------------------
ScriptAlias /php/ "c:/php/"
AddType application/x-httpd-php .php
Action application/x-httpd-php "/php/php-cgi.exe"
----------------------------------------
next to view your files, transfer them to C:\Apache\htdocs\ assuming that apache is installed to c:\, then all you have to do is open your favorite web browser and type http://localhost/your_file.php
ScottInTexas
10-27-2005, 02:59 AM
Thanks a lot. I'll put this in the conf file and try a hello world. Appreciate your help.
ScottInTexas
10-27-2005, 11:31 PM
Thanks for the answer. It worked fine. The only difference was the location of the file. I had to put in in the phpdev/www folder. What I want to do is have a separate folder for each project, i.e. "BigWebSite" in the big web site folder and "Littlewebsite" in the little web site folder. And do I also put the database in the same folder as the rest of the docs?
vBulletin® v3.8.2, Copyright ©2000-2012, Jelsoft Enterprises Ltd.