Content

Quick: How to setup and run php-apache on win2k sp4

submitted on 01st Jul 2007. A part of Articles.  submit an article

written by owen

Friday, May 18, 2007, 7:15:29 PM

"for people who have installed something before"

goto www.php.net/downloads.php

download the last "PHP x.x.x installer" it should be about 22 mb by now. Php has 2 streams; a 4.x stream and a 5.x stream. Check which version your web host will give you access to. If your only going to play with it on your machine then just go for the lastest version. But remember that if you start using features of 5 you might have a little difficulty running it on 4.

Downloading the Apache HTTP Server

Go to www.apache.org/ and download the "HTTP Server". Which also has 2 streams but the instructions above still apply.

Start installing

Install the Http Server

Install Php

Run the php Installer. It might ask you to setup a server for ex appache and select the folder which contains the configuration files ( C:Program FilesApache Software FoundationApache2.2htdocs )

Do not enable all the php modules, pick the ones that you know you want because sometimes the modules have external requirements that may prevent you from starting,

Got to Start//Programs//Apache and then search the option to restart your http server.

Installation Done

Goto

C:Program Files/Apache Software Foundation/Apache2.2/htdocs

create a text file

call it "p.php"

Edit it with a text editor (preferable editplus from editplus.com )

add this code to the file;

<?

phpinfo();

?>

save the file.

OPen you browser and goto;

localhost/p.php

You should see a long purple table with the php logo. Your good to go. Setup was successful. That directory is now your webserver, so can only run php programs from the for now.

More stuff to do

www.apachelounge.com/forum/viewtopic.php?t=570

â–ºAnother problem is that people many times use OLD PHP script that uses 'short tags'. That is when the PHP declarative starts with <?. Since at least PHP 4, the default for opening PHP script has been <?php. If you are using script with short tags, then you can do one of two things. Either change ALL of your opening tags to <?php, or edit you PHP.INI file changing short_open_tag to ON.

Other

You might also want to install a database such as Mysql

If you run the Mysql 5 install do not enable "strict mode". Its really really really strict.

Might also want to get phpmyadmin

permanent link, visited 606 times.

comments

    Comment list is empty. You should totally be the first to Post your comments on this article.

Post your comments on this article


add picture, your website and other options

More or less

How can you NOT like ketchup? 2 by owen

San Fernando, Trinidad 1 by Keith - Caribbean Ideas

Party Decorations 2 by Mad Bull

jump into jeans 1 by owen

Downtown 2 by owen

Info

JAMAICA FREE Classifieds

There have been 13 new comments since yesterday.


Da blog yah hard...cool my yute. - Stunner ( Kingstun )


Nice and clean .. probably one of the better Jamaican sites out there period, except mine ofcourse :) .. Love the css .. - DannyB ( Kingston, Jamaica )


Always find your site refreshing and Im never less that disappointed on the rare occasion that I come by and not see any new posts. - I and I ( Kingston, Jamaica )


CAME UP ON YOUR SITE WHILE SEARCHIN MY LAST NAME..LIKE WHAT I AM SEEING..KEEP UP THE GOOD WORK - SWEETNESS ( TORONTO, CANADA )


Cool Site. Is this like an online Journal?? - MiTcHiE ( Kgn Jamaica )


Hey what's up Owen. You site is immaculate. Now I see why you deserve to be in the Top5Jamaica.com's top 5 pages. - Aurie ( New Jersey, by way of Kingston-Jamaica )


owen! its been a while since i last visited. i love the new look. very funky (sorry couldnt think of a cooler word). - me ( australia )


web site look good, too bad it is much ado about nothing - natin ( yu nuh have nutten beta fi do? )