Content

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

Page is part of Articles in which you can submit an article

written by owen on 2007-Jul-01.

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. Find similar posts in Articles.

comments

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


comment