PHP Installation

Just because I find it frustrating how obtuse the install directions for PHP are…

  1. Download and install Apache
  2. Download, install, and configure MySQL
  3. Download PHP and unzip to somewhere like “C:\php5.2”
  4. Update php.ini file in PHP install directory; update or uncomment the following line:
    • extension=php_mysql.dll
    • SMTP = localhost
  5. Copy these two files from the php dir to the apache\bin dir:
    • php5ts.dll
    • libmysql.dll
  6. Update your httpd.conf to have the following lines (they can be at the bottom):

    AddType application/x-httpd-php .php
    PHPIniDir "C:/php5.2/"
    LoadModule php5_module "C:/php5.2/php5apache2_2.dll"
  7. Restart apache service; test with phpinfo()
Published
Categorized as Uncategorized Tagged