分享web开发知识

注册/登录|最近发布|今日推荐

主页 IT知识网页技术软件开发前端开发代码编程运营维护技术分享教程案例
当前位置:首页 > 前端开发

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

发布时间:2023-09-06 01:42责任编辑:沈小雨关键词:暂无标签

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=truemakemake 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

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

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

知识推荐

我的编程学习网——分享web前端后端开发技术知识。 垃圾信息处理邮箱 tousu563@163.com 网站地图
icp备案号 闽ICP备2023006418号-8 不良信息举报平台 互联网安全管理备案 Copyright 2023 www.wodecom.cn All Rights Reserved