Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revision Previous revision
Next revision
Previous revision
Next revision Both sides next revision
apache:install-apache-php-on-centos [2011-05-13 23:54:38]
garrett.plasky Approved
apache:install-apache-php-on-centos [2011-08-25 18:16:51]
garrett.plasky Approved
Line 1: Line 1:
 ====== How to Install Apache 2.2.x and PHP 5.3.x on CentOS 5 ====== ====== How to Install Apache 2.2.x and PHP 5.3.x on CentOS 5 ======
  
-This guide assumes you have a minimal CentOS installation and are not planning on running a control panel such as cPanel, which install the web server for you. Some of the software versions listed below may need to be changed as they are updated. As of the writing of this article, Apache 2.2.16 and PHP 5.3.3 are the latest versions.+This guide assumes you have a minimal CentOS installation and are not planning on running a control panel such as cPanel, which installs the Apache webserver for you. Some of the software versions listed below may need to be changed as they are updated. As of the writing of this article, Apache 2.2.16 and PHP 5.3.3 are the latest versions.
  
 Install required packages using Yum Install required packages using Yum
Line 25: Line 25:
 Building PHP Building PHP
 <sxh bash>tar zxvf php-5.3.3.tar.gz <sxh bash>tar zxvf php-5.3.3.tar.gz
-cd ../php-5.3.3 +cd ../php-5.3.3 
-./configure --with-apxs2=/usr/local/apache2/bin/apxs --with-mysql --enable-bcmath \+./configure --with-apxs2=/usr/local/apache2/bin/apxs --with-mysql --enable-bcmath \
 --enable-ftp --enable-magic-quotes --with-pear --enable-sockets --with-zlib --with-gd  --enable-ftp --enable-magic-quotes --with-pear --enable-sockets --with-zlib --with-gd 
-make +make 
-make install +make install 
-cp php.ini-production /usr/local/lib/php.ini +cp php.ini-production /usr/local/lib/php.ini 
-cd ..</sxh>+cd ..</sxh>
  
 You can change the values passed to the configure lines of Apache and PHP to add/remove software from the build. Apache in this guide is built with DSO support and mod_rewrite as a shared module. PHP is built as an Apache DSO with MySQL, FTP, BCMath, magic quotes, PEAR, sockets, Zlib, and GD with TTF. You can change the values passed to the configure lines of Apache and PHP to add/remove software from the build. Apache in this guide is built with DSO support and mod_rewrite as a shared module. PHP is built as an Apache DSO with MySQL, FTP, BCMath, magic quotes, PEAR, sockets, Zlib, and GD with TTF.