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

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/*
分享到:
评论

相关推荐

    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 ...

    Pro.Docker.148421829

    Chapter 2: Installing Linux Chapter 3: Using Oracle Database Chapter 4: Using MySQL Database Chapter 5: Using MongoDB Chapter 6: Using Apache Cassandra Chapter 7: Using Couchbase Server Chapter 8: ...

    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 ...

    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: ..................................................................

    Sams.Publishing.Ubuntu.Unleashed.2008.Edition.pdf

    17 Apache Web Server Management.......407 18 Remote File Serving with FTP.........439 19 Handling Electronic Mail..........471 20 Proxying and Reverse Proxying ........489 21 Administering Database ...

    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 ...

    Securing PHP Web Applications.pdf

    Installing and Configuring PowerFuzzer 227 Using PowerFuzzer 231 Testing Toolkits 233 Obtaining CAL9000 234 Using CAL9000 235 Proprietary Test Suites 246 Benefits and Features of a Proprietary Test ...

    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. ...

    php_6_fast_and_easy_web_development.pdf

    Installing Apache for Linux/UNIX. . . . . . . . . . . . . . . . . . . . . . . . . . 32 Configuring Apache on Linux/UNIX. . . . . . . . . . . . . . . . . . . . . . 34 Starting and Connecting to Apache....

    MySQL 5.6 Reference Manual

    1.11. Apache License Version 2.0, January 2004 . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . xxxvii 1.12...

Global site tag (gtag.js) - Google Analytics