Tuesday, November 12, 2013

Links for Configuring Apache , PHP in Windows with SSL


Installing Apache with PHP and SSL is relatively easy, But still there were couple of tricky steps. Following are the links I used for installing and configuring Apache with SSL, PHP (including cURL module).

Installing Apache in Windows

Remember to download the correct Apache binary. For example - the one I downloaded is 'httpd-2.2.25-win32-x86-openssl-0.9.8y.msi' as I required SSL also.
I choose to go with the default options.

If everything succeeds , you will be able to see "It Works!" when you try the URL "localhost" or "localhost:8080"

Installing PHP and configuring Apache

Follow this link http://www.thesitewizard.com/php/install-php-5-apache-windows.shtml
Quick summary- following entries will need to be added to httpd.conf file 
  1. LoadModule php5_module c:/php/php5apache2_2.dll
  2. AddType application/x-httpd-php .php
  3. PHPIniDir "c:/php"
Create a sample php file PHPinfo.php in the htdocs folder with content 
<!DOCTYPE html>
<html>
<body>
<?php
PHPinfo();
?>
</body>
</html>
 Try the link 'http://localhost/PHPinfo.php', You will see the information about PHP if everything succeeds.
If you are planning to use cURL module remember to enable those lines in the php.ini file
e.g.- extension=php_curl.dll
Note: If this is not working , add 'c:\php' and 'c:\php\ext' to PATH environment variable.


For me things worked only after creating a symbolic link for 'C:\Program Files (x86)\Apache Software Foundation'.





No comments:

Post a Comment