Archive

Posts Tagged ‘Apache’

Simple Way to Install Apache and PHP on Windows

November 10, 2010 Leave a comment

I do a bit of web development, and my preferred web application environment is PHP.  So recently I was reinstalling Apache and PHP on my Windows development computer, and I found a very easy way to get them installed silently with pretty much no hassel.  Traditionally I have done the install by manually extracting PHP and editing the php.ini and httpd.conf to load the appropriate modules.  Thanks to Nicolas his insightful instruction!

First go out and grab the compiled Windows versions of Apache and PHP:

http://httpd.apache.org/download.cgi#apache22

http://www.php.net/downloads.php

This example uses the non-SSL Apache 2.2 and the PHP 5 Win32 installer package.  There are many different install types available for PHP, I avoided the debug and the non-thread safe versions.

Now run silent installs with these switches/parameters at the command prompt for the Apache/PHP packages and restart Apache.  Make sure to include the APACHEDIR parameter when running the PHP install so it can configure Apache with the appropriate PHP module.

C:\temp> msiexec /i apache_2.2.17-win32-x86-no_ssl.msi /passive ALLUSERS=1 SERVERADMIN=admin@localhost SERVERNAME=localhost SERVERDOMAIN=localhost SERVERPORT=80 INSTALLDIR=c:\apache

C:\temp> msiexec /i php-5.2.14-win32-installer.msi /qn APACHEDIR=c:\apache INSTALLDIR=c:\php ADDLOCAL=ext_php_mssql,apache22

C:\temp> net stop "Apache2.2"

C:\temp> net start "Apache2.2"

This also includes SQL Server support for PHP if needed.  Your Windows host should now be ready to serve PHP!

References

http://www.php.net/manual/en/install.windows.apache2.php#92064

Categories: Apache, PHP, Windows Tags: , ,

Configuring Apache on CentOS 5.5 with SSL Certificate from Third Party Certificate Authority

September 1, 2010 Leave a comment

 Several months ago I documented Installing an SSL Certificate in IIS 7.5 from a Public Certificate Authority signed by the third party CA StartCom.  For those unfamiliar with StartCom they have the added benefit of offering free personal class 1 SSL certificates.  Recently I was tasked with migrating this certificate from my Windows 2008 R2 IIS 7.5 server to an Apache 2.2/CentOS Linux  5.5 box.  This process assumes that you have performed the procedure above I’ve linked to and installed the public CA signed certificate on an IIS 7.5 server.  scfb.info

Now go back out to the StartCom login page:  https://www.startssl.com/?app=12.  If you are still logged on to the StartCom website and in the ToolBox section from the previous Windows 2008 R2 IIS 7.5 certificate install documentation skip down to the 4th screenshot.

Click Authenticate.

Click the green button on the upper right side of the screen labeled “Control Panel”.

Read more…

Pages: 1 2

Categories: Linux, SSL Tags: , ,