apache tutorial - Install Apache from Source - apache - apache web server - apache server - apache2




Install Apache from Source

  • Installing apache from the source require the -devel package to be installed on your server. .You can find the latest available version of Apache, you can download it here . Once you download the source file move it to the /usr/local/src folder.
[[email protected] ~] cd /usr/local/src

[[email protected] ~] gzip -d httpd-2.2.26.tar.gz

[[email protected] ~] tar xvf httpd-2.2.26.tar

[[email protected] ~] httpd-2.2.26
click below button to copy the code. By Apache tutorial team
  • In order to see all configuration option available for Apache, you can use ./configure -help option. The most common configuration option is -prefix={install directory name}.
[[email protected] ~]./configure --help

[[email protected] ~]./configure -prefix=/usr/local/apache -enable-so

[[email protected] ~] make

[[email protected] ~] make install
click below button to copy the code. By Apache tutorial team
  • The above example shows the compilation of Apache within the /usr/local/apache directory with the DSO capability. The -enable-so option, can load required modules to apache at run time via the DSO mechanism rather than requiring a recompilation.
  • Once the installation completes, you can browse the web servers default page with your favorite browser. If firewall is enabled on your server, you must have to make exception for port 80 on your OS firewall. You can use the following command to open port 80.
iptables -I INPUT -p tcp --dport 80 -j ACCEPT
click below button to copy the code. By Apache tutorial team
iptables -I INPUT -p tcp --dport 80 -j ACCEPT
click below button to copy the code. By Apache tutorial team
  • service iptables save
  • You can see the default Apache2 Welcome screen by browsing your server IP address.
 Install Apache from Source

Learn Apache - Apache tutorial - Install Apache from Source - Apache examples - Apache programs


Related Searches to Install Apache from Source