PHP + Apache + MySQL perfect setup



by Administrator author list

Installing PHP

PHP Step 1.
Download the PHP package from here: http://us2.php.net/get/php-5.2.0-Win32.zip/from/a/mirror



PHP Step 2.
Create a new directory in you Program Files with name php like this:
Step1



PHP Step 3.
Now edit Apache configuration file (httpd.conf) to enable php processing. You can find the configuration file in the Apache installation directory/conf/httpd.conf. On my machine the exact location is: D:\Program Files\Apache Software Foundation\Apache2.2\conf\httpd.conf



PHP Step 4.
Add the following 3 lines to your httpd.conf file. You can put them anywhere in the file but maybe it makes sense to put them after the other LoadModule section.
LoadModule php5_module "d:/Program Files/php/php5apache2_2.dll"
AddType application/x-httpd-php .php
PHPIniDir "D:\Program Files\php"

Step1



PHP Step 5.
Now you have to restart Apache.
Start menu -> Programs -> Apache HTTP Server 2.2.3 -> Control Apache Server -> Restart



PHP Step 6.
At the moment PHP is installed so you should try it. Create a new file in the Apache document root directory (D:\Program Files\Apache Software Foundation\Apache2.2\htdocs) with name info.php Put the following 3 lines into this file and then save it.
?php
phpinfo();
?>
Step1



PHP Step 7.
Let's try it out. Visit the following URL: http://loclahost/info.php You should get a page similar to this:
Step1



article index
page 1 : untitled page
page 2 - current : Installing PHP
page 3 : Installing MySQL - Part 1
page 4 : Installing MySQL - Part 2
page 5 : Fine tune PHP
page 6 : MySQL Management
page 7 : MySQL skills
page 8 : PHP IDE


Tags: Apache php mysql setup, php install

Php Toys - 2006 - Php resources, scripts and tutorials - Privacy Policy
Insurance Index - Tutorial collection - Forex trading, brokers, reviews - Mortgage payment calculator
{THEMEDISCLAIMER}
Render time: 0.1266 sec, 0.0167 of that for queries. DB queries: 25.