build your own website 1 -- how to install Apache Server

Operating System: Ubuntu 16.04

Web Server ?  most often used Web Server software is freely available Apache Server. Download Apache for free here ? https://httpd.apache.org/download.cgi#apache24

Unpack  httpd-2.4.29.tar.bz2 to ~/Downloads/httpd-2.4.29

Download apr-1.6.3.tar.bz2 and apr-util-1.6.1.tar.bz2 from http://apr.apache.org/download.cgi and unpack them to ~/Downloads/httpd-2.4.29/srclib/apr and ~/Downloads/httpd-2.4.29/srclib/apr-util respectively.

Install Apache using the commands below

./configure --prefix=/usr/local/apache2 --with-included-apr=true
make
make install

The installation takes several minutes. After this, you can start Apache server using

/usr/local/apache2/bin/apachectl start

It will warn you that

AH00558: httpd: Could not reliably determine the server‘s fully qualified domain name, using 127.0.1.1. Set the ‘ServerName‘ directive globally to suppress this message

This is a friendly warning and not an error. You can launch a browser and visit http://127.0.1.1 and a simple webpage saying "It works!" appears. The default document root is /usr/local/apache2/htdocs/ where we can put an hello_world.html and this html file‘s address is http://127.0.1.1/hello_world.html

If you want to turn off the server, run command

/usr/local/apache2/bin/apachectl stop

  The same warning appears

原文地址:https://www.cnblogs.com/cxxszz/p/8452839.html

时间: 2024-10-10 01:46:47

build your own website 1 -- how to install Apache Server的相关文章

How to install Apache Server on Windows

Note Those of you interested in the Apache 2.0.X tutorial, it has been abandon and I will no longer keep it updated, but it can be found here. Apache 2.2.X Download & Unpack Go to http://www.apache.org/dist/httpd/binaries/win32/ and choose a mirror.

Install genghis server in Windows

Today, I want to install a Genghis server on my windows server, and I thought it would be easy. (Indeed, it is easy), but a little bit tricky. 1. Download Genghis from http://genghisapp.com/. 2. Install Apache server with PHP, I want to make it easy,

How to Install Apache Solr 4.5 on CentOS 6.4

By Shay Anderson on October 2013 Knowledge Base  /  Linux  /  How to Install Apache Solr 4.5 on CentOS 6.4 In this tutorial I explain how to install Apache Solr 4.5 on CentOS 6.4. In all the examples below I am using the root user, if you are not you

How to Install Apache Tomcat 8.5 on CentOS 7.3

How to Install Apache Tomcat 8.5 on CentOS 7.3 From: https://www.howtoforge.com/tutorial/how-to-install-tomcat-on-centos/ This tutorial exists for these OS versions CentOS 7.3 CentOS 7 On this page Step 1 - Install Java (JRE and JDK) Step 2 - Configu

Install Apache, PHP And MySQL On CentOS 7 (LAMP)

原文 Install Apache, PHP And MySQL On CentOS 7 (LAMP) This tutorial shows how you can install an Apache2 webserver on a CentOS 7.0 server with PHP5 support (mod_php) and MySQL support. LAMP is short for Linux, Apache,MySQL, PHP. 1 Preliminary Note In t

Sharepoint 2013 出现The tool was unable to install Application Server Role, Web Server (IIS) Role

在Windows Server 2012 R2环境下运行Sharepoint 2013前置运行软件发现会出现The tool was unable to install Application Server Role, Web Server (IIS) Role.这是因为R2版本操作系统中C:\Windows\System32下的ServerManagerCmd.exe不存在,但是它有一个ServerManager.exe这样的文件. 解决方案:将ServerManager.exe复制一份并重新

Install Rancher server

1.pre-requirement: sudo nmtui # sudo hostnamectl set-hostname <hostname> $ sudo hostnamectl set-hostname rancher01 $ sudo systemctl restart systemd-hostnamed sudo yum install openssh -y 2.docker: $ sudo yum install yum-utils -y $ sudo yum-config-man

Install TightVNC Server in RHEL/CentOS and Fedora to Access Remote Desktops

Virtual Networking Computing (VNC) is a Kind of remote sharing system that makes it possible to take control of any other computer connected to internet. Keyboard and mouse clicks can easily transmit from one computer to another. It helps administrat

How to install redis server on CentOS 7 / RHEL 7

How to install redis server on CentOS 7 / RHEL 7 October 4, 2014 by sharad chhetri Leave a Comment In this tutorial we will learn, how to install redis server on CentOS 7 / RHEL 7 . The abbreviation of redis is REmote DIctionary Server. It is one the