A Flash Developer Resource Site














Internet Commerce

Partners & Affiliates














Developer Channel

internet.com


Featured Flash FLA
Gallery Downloads 11336 Flash Movies | 2 New Flash Movies Added
What's New | Top 100

Featured FLA

» Author: Surjit Dhami
» Title: Book
» Description: Book
» More by Surjit Dhami


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

Featured Site

» Posted in the Flash Kit Links section
» Title: All-American Rejects
» Description: Get to know this great band by exploring their "practice room".


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

» Create xml slideshow with free template
» How to Insert a Multilingual Subtitle Into Your Flash Video Studio
» How to Create Cool Halloween Slideshow
» Debugging flash using the Firebug console
» Create Flash Slideshow on Blogger
» FLASH TRICKS IN WEB ADVERTISING: FLASH BANNERS
» HTML Photo Gallery Tutorial
» Create your first flash site – PART 1
» How to Make a Flash Photo Gallery
» Unknown Tag: Title10
Random Tutorial | Add Site

Trading Customer Accounting (IL)
Next Step Systems
US-IL-Chicago

Justtechjobs.com Post A Job | Post A Resume


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.19 Votes: 107
Hits: 3275
» 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
 
   
 

internet.commediabistro.comJusttechjobs.comGraphics.com

Search:

WebMediaBrands Corporate Info

Legal Notices, Licensing, Reprints, Permissions, Privacy Policy.
Advertise | Newsletters | Shopping | E-mail Offers | Freelance Jobs