Internet Commerce

Partners & Affiliates

Developer Channel


Featured Flash FLA
Gallery Downloads 11401 Flash Movies | 5 New Flash Movies Added
What's New | Top 100

Featured FLA

»  Author: Nick Kouvaris
»  Title: Znax
»  Description: Znax is a board game. Click 4 tiles of the same color and form squares as big as you can. You will erase all the tiles inside the square and collect points. Get maximum score if you make a square with game edges.
»  More by: Nick Kouvaris


Random FLAs | Add Flash Movie
Featured Flash Site
Gallery Downloads 4941 Flash Sites | 1 New Flash Links
What's New | Top 100 Flash Site

Featured Site

»  Author Agence WOP Digital Agency
»  Title: Electricdrum
»  Description: French WOP Agency, 3D websites, Flash (Papervision, Away 3D), event or institutional projects. The agency operates on all digital projects: consulting, design, graphic design, development, online communication. The WOP agency follows you on the implementation of original, creative and optimized digital projects.


Random Links | Add your own Flash Related Links
Flash Tutorials 1481 Tutorials 7 New Tutorials Added!
What's New | Top100

» How To Make A Simple Animation Using Christmas Clips
» Simple Step by step flash game tutorial Spot the diffrence
» How To Make A Moving Text Slide
» Create Flash Banner With Text Float Effect
» How To Make Zoo Photos Slideshow
» How To Make A Dolphin Photos Slideshow
» How To Make A Fathers Day Slideshow
» How To Make A Transparent Background of Your Flash File
» Create Flash Banner With Text Disco Light Effect Today we will introduce you a Text Disco Light eff
» Unknown Tag: Title10
Random Tutorial | Add Site


Tutorials Home What's New Top Rated Submit myTutes Random!

Search Tutorials


Tutorials Tutorials » Backend

Categories Installing Apache 2.0, PHP 4.2, MySQL 3.23, and PHPMyAdmin
Author: Jeffrey F. Hill | Website: http://www.flash-db.com |

 
Page 4
«prev 1 2 3 4 5 6 7 8 9 next»

Installing PHP 4.2.0 and configuring with Apache 2.0

First we have to download PHP 4.2.0,  You can do so at the following link:
http://www.php.net/downloads.php  (PHP 4.2.0 zip package).
Or more specifically here: PHP 4.2.0 zip package 

The installation file that comes with PHP 4.2.0 does not come with instructions on how to configure with Apache 2.0 but is still a useful reference.  Also for everything you ever need to know, want to know, and more then you can ever know about PHP read over the documentation at http://www.php.net/manual/en/

1) After you have downloaded the zip file.  Unzip all of these files to the C:\  directory.  This will create a directory structure like:   C:\php-4.2.0-Win32 Rename this folder to C:\PHP

2)  Copy the file  C:\PHP\php.ini-recommended file to your windows folder: c:\winnt or c:\windows.  

3)  Rename this file (php.ini-recommended) to php.ini once you have placed it within the windows folder. You can rename the file with Notepad.  Since the php.ini file is often used I like to place a shortcut to it on my desktop. 

4)  Copy the file  C:\PHP\php4ts.dll file to your windows system folder: c:\winnt\system32 or c:\windows\system (for XP and ME it's the windows\system folder). 

We now need to edit both the PHP.ini file and the Apache httpd.conf file.

Open up the httpd.conf file that we where working with when we first installed Apache with Notepad.  Look for a block of LoadModule commands (this is located near the beginning of this file).  Then insert the following line right after all the the other LoadModule commands:

LoadModule php4_module c:/PHP/experimental/apache2filter.dll       (Make sure to use forward slashes for this path instead of Back Slashes).

Please note that you must use the apache2filter.dll and not the php4apache.dll.  With earlier versions of PHP (before 4.2.0 and Apache 2.0 you do however use the php4apache.dll)This is an important change to keep in mind when using earlier versions of Apache with PHP.

We have to add one last item to the httpd.conf file before where done with it.

Add the following Line to your httpd.conf file (somewhere after the LoadModule command we just added);

AddType application/x-httpd-php .php 

Next Edit the PHP.ini File.  

For now all we have to add is the 'doc_root' path (Search the file for doc_root to find it faster).  Add the path to the htdocs folder.  This path will be something like:  C:\Program Files\Apache Group\Apache2\htdocs so that the line now looks like:

doc_root = C:\Program Files\Apache Group\Apache2\htdocs

That should be it.  At least it should be enough so that PHP will be running in conjunction with the Apache web server.  To test this try the following.

Create a file named PHPInfo.php.  Include the following in that file:

<?
phpinfo();
?>

Then add this file to your htdocs folder.  Open up a browser and type in the following URL:  http://localhost/PHPInfo.php  If everything went successfully you'll see a long list of all your PHP settings and server information.  When starting Apache you should also see a small note that the PHP 4.2.0 module has loaded, also when your viewing the 'Apache Service Monitor' you should see a small note at the bottom indicating that PHP 4.2.0 is running. 

On the next page we'll go into some exercise's and fun stuff to do with PHP and Apache.

«prev 1 2 3 4 5 6 7 8 9 next»

» Level Advanced

Added: : 2002-05-08
Rating: 9.20 Votes: 108
Hits: 3279
» Author
Jeffrey Hill is a freelance web developer from Boulder, Colorado. He specializes in creating and developing dynamic database driven Flash content, applications, and content management systems. Specialty's include SQL, PHP, Perl, XML, web services, and Flash clients for web services.
» Download
Download the files used in this tutorial.
Download (30 kb)
Get conversion and unzipping tools for PC and Mac here!

» Forums
More help? Search our boards for quick answers!

Please rate this tutorial, 10 is the top rating, you can also click the comments link to read/write a review.
10 9 8 7 6 5 4 3 2 1
Read or Post Comments