`
dodoflying
  • 浏览: 179663 次
社区版块
存档分类
最新评论

Installing Apache Http Server on Linux

阅读更多

Overview for the impatient

Download $ lynx http://httpd.apache.org/download.cgi
Extract $ gzip -d httpd-NN.tar.gz
$ tar xvf httpd-NN.tar
$ cd httpd-NN
Configure $ ./configure --prefix=PREFIX(PREFIX指安装目录)
Compile $ make
Install $ make install
Customize $ vi PREFIX/conf/httpd.conf
Test $ PREFIX/bin/apachectl -k start

安装好了后,出现问题如下:

[root at mobile apache]# dot /bin/apachectl start
httpd: Could not determine the server's fully qualified domain name, using 127.0.0.1 for ServerName

结果
Forbidden
You don't have permission to access / on this server.
Additionally, a 403 Forbidden error was encountered while trying to use an ErrorDocument to handle the request.

原因可能是:
1、你没有为该目录或者该文件设置guest组权限;
2、你没有将该文件名设置为默认页面,尤其是在仅用域名访问的情况下。
解决办法:
chmod 701 /home/www                  (apache安装目录,同上面的PREFIX)
chmod 701 /home/www/*
分享到:
评论

相关推荐

    Installing Accelerated OpenSSL (OCF) and Apache* on Linux*

    根据提供的文档信息,本文将详细介绍如何在Linux系统上安装并配置加速版OpenSSL(OCF)及Apache服务器,这是英特尔官方发布的技术文档,主要应用于基于Intel® QuickAssist Technology的安全应用开发环境中。...

    Cacti installing for linux

    2. **安装Apache HTTP Server** 解压httpd源码包,配置、编译、安装,然后启动服务: ``` [root@svnserver01 ~]# tar -zxvf httpd-2.2.10.tar.gz [root@svnserver01 ~]# ./configure --prefix=/usr/local/...

    Ubuntu.15.04.Server.with.systemd.Administration.and.Reference.epub

    The emphasis is on what administrators will need to know to perform key server support and management tasks. Coverage of the systemd service management system is integrated into the book, replacing ...

    《Linux宝典 2010版》(Wiley Linux Bible 2010 Edition)(Christopher Negus)文字版

    Chapter 13: R unning a Linux, Apache, MySQL, and PHP (LAMP) Server. Chapter 14: Running a Mail Server. Chapter 15: Running a Print Server. Chapter 16: Running a File Server. Part V: Choosing and ...

    Ubuntu Server Guide < 英文版>

    The Ubuntu Server Guide contains information on how to install and configure various server applications on your Ubuntu system to fit your needs. It is a step-by-step, task-oriented guide for ...

    Sams.Ubuntu.Unleashed.Aug.2006.part1

    Chapter 20 Apache Web Server Management Chapter 21 Administering Database Services Chapter 22 File and Print Chapter 23 Remote File Serving with FTP Chapter 24 Handling Electronic Mail Chapter ...

    geronimo-book.pdf

    The "geronimo-book.pdf" provides detailed guidance on installing, configuring, and deploying applications to Geronimo. This book is targeted primarily at developers who have previous experience with ...

    Tomcat The Definitive Guide, 2nd Edition(PDF)

    You will find details for using Tomcat on all major platforms, including Windows, Linux, OS X, Solaris, and FreeBSD, along with specifics on Tomcat configuration files, and step-by-step advice for ...

    日程管理安排服务器软件

    Installing Server You can install Radicale CalDAV server with the following command, with superuser rights: python setup.py install Then, launching the server can be easily done by typing as a normal ...

    Sams.Ubuntu.Unleashed.Aug.2006.part2

    Restoring, and Recovery Chapter 18 Network Connectivity Chapter 19 Remote System with SSH and Telnet Part III: Ubuntu as a Server Chapter 20 Apache Web Server Management ...

    Linux Bible 2010 Edition: Boot Up to Ubuntu, Fedora, KNOPPIX, Debian, openSUSE, and 13 Other Disributions

    Running a Linux, Apache, MySQL, and PHP (LAMP) Server Chapter 13: .................................423 Running a Mail Server Chapter 14: ..................................................................

    Ubuntu The Complete Reference

    **Chapter 2 - Installing Ubuntu Linux** - **Prerequisites for Installation**: Detailed information on hardware requirements, including minimum and recommended specifications for a smooth installation ...

    drupal 6.12

    - To use Drupal's "Clean URLs" feature on an Apache web server, you will need the mod_rewrite module and the ability to use local .htaccess files. For Clean URLs support on IIS, see "Using Clean ...

    impala-2.8

    Apache Impala is a high-performance, distributed SQL query engine that enables fast, interactive SQL queries on data stored in Apache Hadoop's HDFS, HBase, or Amazon S3. This system is designed to ...

    RedHat Certificate Engineer

    This can be done using Apache or another web server. - Place the Kickstart file (`ks.cfg`) and the RHEL ISO in a directory accessible via HTTP. 3. **Configuring the VM to Boot from Network:** - ...

    spring-boot-reference.pdf

    32.3. Apache Kafka Support 32.3.1. Sending a Message 32.3.2. Receiving a Message 32.3.3. Additional Kafka Properties 33. Calling REST Services with RestTemplate 33.1. RestTemplate Customization 34. ...

Global site tag (gtag.js) - Google Analytics