Apache Source Install

Apache Source

Article Contents • • • 1. Install Apache 2.4 from source: 1.1 Prerequisites: For installing Apache2.4 on Debian you need APR library. You can install this using the following command: apt-get install libaprutil1 libaprutil1-dev 1.2 Download Apache2.4: Download the latest version from here: Go to /usr/src directory and download the latest version. Cd /usr/src wget 1.3. Extract and Install Apache2.4::/usr/src# tar -zxf httpd-2.4.1 cd httpd-2.4.1./configure --enable-so make make install 1.4 Start Apache2.4: cd /usr/local/apache2/ bin/apachectl start Now go to and you will see the message “It works!” 1.5 Set Apache2.4 to automatically start during system startup: Modify the /etc/rc.local file and add the following line before exit 0: /usr/local/apache2/bin/apachectl start 2.

Install MySQL from source: If you are planning to use PHP5 with MySQL you should install MySQL now. You can install MySQL in two ways: 2.a You can download MySQL from and install using the following command: dpkg -i mysql-5.5.21-debian6.0-i686.deb 2. Igo Primo Middle East Maps 2013. b Or you can install MySQL using the command: apt-get install mysql-server mysql-server 2.c Verify the MySQL and start MySQL server: mysql -V mysql Ver 14.14 Distrib 5.1.49, for debian-linux-gnu (i486) using readline 6.1 And start: /etc/init.d/mysql start Starting MySQL database server: mysqld. Checking for corrupt, not cleanly closed and upgrade needing tables. Install PHP5 from source: 3.1 Download PHP5 Download the latest PHP5 source code from here: Current stable release is 5.3.10. Cd /usr/src wget 3.2 Extract and install PHP5 tar -zxf php-5.3.10.tar.gz cd php-5.3.10./configure --prefix=/etc/php --with-apxs2= /usr/local/apache2/bin/apxs –with-config-file-path=/etc/php –with-mysql make make install First option –prefix=/etc/php tells configure script that we want PHP to be installed in /etc/php directory. Otherwise it’ll be installed in some default location (/usr/local).