Questions tagged [apache2]

Apache (HTTP Server) /əˈpætʃiː/ is a modular cross-platform web server software with a large variety of features(called modules) including SSL, compression, log, proxy and server-side programming language interfaces like Perl, Python, Tcl, and PHP.

The Apache HTTP Server, commonly referred to as Apache ( /əˈpætʃiː/), is web server software notable for playing a key role in the initial growth of the World Wide Web. In 2009 it became the first web server software to surpass the 100 million website milestone.
Apache was the first viable alternative to the Netscape Communications Corporation web server (currently known as Oracle iPlanet Web Server), and has since evolved to rival other web servers in terms of functionality and performance. Typically Apache is run on a Unix-like operating system.

Apache is developed and maintained by an open community of developers under the auspices of the Apache Software Foundation. The application is available for a wide variety of operating systems, including , GNU, FreeBSD, , , Novell NetWare, AmigaOS, Mac OS X, Microsoft , OS/2, TPF, and eComStation. Released under the Apache License, Apache is characterized as open-source software.

Apache supports a variety of features, many implemented as compiled modules which extend the core functionality. These can range from server-side programming language support to authentication schemes. Some common language interfaces support , , , and . Popular authentication modules include mod_access, mod_auth, mod_digest, and mod_auth_digest, the successor to mod_digest. A sample of other features include SSL and TLS support (mod_ssl), a proxy module (mod_proxy), a URL rewriter (also known as a rewrite engine, implemented under mod_rewrite), custom log files (mod_log_config), and filtering support (mod_include and mod_ext_filter).
Popular compression methods on Apache include the external extension module, mod_gzip, implemented to help with reduction of the size (weight) of web pages served over HTTP. ModSecurity is an open source intrusion detection and prevention engine for web applications. Apache logs can be analyzed through a web browser using free scripts such as AWStats/W3Perl or Visitors.

Virtual Hosting allows one Apache installation to serve many different actual websites. For example, one machine with one Apache installation could simultaneously serve www.example.com, www.test.com, test47.test-server.test.com, etc.
Apache features configurable error messages, -based authentication databases, and content negotiation. It is also supported by several graphical user interfaces (GUIs). It supports password authentication and digital certificate authentication. Apache has a built in search engine and an authorizing tool and supports .

Although the main design goal of Apache is not to be the "fastest" web server, Apache does have performance comparable to other "high-performance" web servers. Instead of implementing a single architecture, Apache provides a variety of MultiProcessing Modules (MPMs) which allow Apache to run in a process-based, hybrid (process and thread) or event-hybrid mode, to better match the demands of each particular infrastructure. This implies that the choice of correct MPM and the correct configuration is important. Where compromises in performance need to be made, the design of Apache is to reduce latency and increase throughput, relative to simply handling more requests, thus ensuring consistent and reliable processing of requests within reasonable time-frames.

The Apache version considered by the Apache Foundation as providing high-performances is the multi-threaded version which mixes the use of several processes and several threads per process.

Unless you are asking about how to write Apache modules, questions with this tag probably belong on serverfault.com rather than stackoverflow.com.

Reference

7951 questions
26
votes
6 answers

Apache restart causes DocumentRoot must be a directory, even though it is a directory and there seem to be no privilege issues

I have what is almost certainly a newbie question. I expected to find the issue while writing this question, but I am still stuck. I want to change the DocumentRoot for apache, but I keep getting the error message "DocumentRoot must be a directory".…
Stave Escura
  • 2,058
  • 1
  • 19
  • 24
26
votes
5 answers

Ajp invalid message received with signature

I am using Tomcat 7.0.29 fronted with Apache 2.2.22 modproxy. Configured Ajp as the protocol in httpd.conf and AjpNioProtocol in server.xml. After the server starts, the logs are filled with the following message: Severe: Invalid message received…
Yasser
  • 575
  • 1
  • 4
  • 19
25
votes
11 answers

tortoisesvn - Error REPORT request failed on ../../../!svn/vcc/default

Users attempting to check out files from a particular Subversion 1.4.x repository with Apache 2.2 on Windows 2003 have suddenly begun getting an error message in their log windows upon checkout with TortoiseSVN 1.4: Error REPORT request failed on…
John
25
votes
8 answers

Permission denied inside /var/www/html when creating a website and it's files with the apache2 server

UPDATE** The screenshot is within atom, but when I navigate to the directory using the file explorer, and right click, the option to rename or create a new folder are restricted and I cannot click on them. I just finished setting up the LAMP…
jose reyes
  • 1,533
  • 1
  • 13
  • 17
25
votes
4 answers

PHP APC Potential Cache Slam Averted for Key

I'm receiving this error while trying to use apc_store(). I googled it and saw that this was APC timebomb bug and saw some fixes which suggested adding apc.slam_defense = Off; to php.ini. I need to know whether this has happened because of a…
shyam
  • 6,681
  • 7
  • 28
  • 45
25
votes
3 answers

Find the correct php.ini file

I am currently trying to locate the correct php.ini file to edit it and restart Apache, so the changes will take place and I'm stumped. What I have done... I have found three different php.ini files (I don’t have any idea why there are three). This…
Michael
  • 495
  • 1
  • 11
  • 29
25
votes
1 answer

Create an Alias Directory inside a Virtual Host

I checked here, here, here, here, and here before asking this question. I guess my search skills are weak. I am using the WampServer version 2.2e. I have a need like, I need a virtual path inside a virtual host. Let me say the two hosts that I…
Praveen Kumar Purushothaman
  • 164,888
  • 24
  • 203
  • 252
24
votes
1 answer

How do I configure Apache2 to allow multiple simultaneous connections from same IP address?

By default, Apache2 seems to allow only 1 connection per IP address. How do I configure Apache2 to allow multiple simultaneous connections from the same IP address? Here is my situation: a web app being hosted on a server. a remote client makes an…
David Jones
  • 2,139
  • 2
  • 19
  • 20
24
votes
4 answers

Understanding “408 Request Timeout” on Apache with PHP

Issue description - Apache logs I found items similar to this one in the Apache log file: 166.147.68.243 [24/Feb/2013:06:06:25 -0500] 19 web-site.com "-" 408 - "-" I’ve got custom log format and 408 here stands for status. The log format…
Victor Smirnov
  • 3,450
  • 4
  • 30
  • 49
24
votes
3 answers

How do I access Apache error logs via the Terminal in Mac OS X 10.6.8?

I am having trouble with serving up my rails app on a remote computer after upgrading from Rails 3.0 to 3.1. So I want to take a look at what exactly is going wrong when Apache attempts to start up my app and it fails. How can I find the errors that…
pitachip
  • 965
  • 3
  • 7
  • 24
23
votes
3 answers

Allowing only single active session per user in Django app

I want to restrict logged-in users to only have one active session, i.e. if the user logs in with a new sessionid, the old session should be terminated. I found a lot of help on SO already: here and here I implemented the middleware solution, with a…
23
votes
4 answers

How do you set up Python scripts to work in Apache 2.0?

I tried to follow a couple of googled up tutorials on setting up mod_python, but failed every time. Do you have a good, step-by step, rock-solid howto? My dev box is OS X, production - Centos.
deadprogrammer
  • 11,253
  • 24
  • 74
  • 85
23
votes
1 answer

Setting up Git Server on Windows With git-http-backend.exe

I am in the process of setting up a Git server (1.7.2.3) on a WS 2008 machine using Apache and git-http-backend.exe. I have been following a good tut here. I have the GUI working, I can annoymously clone and if I put the following in the config of…
Jon
  • 15,110
  • 28
  • 92
  • 132
23
votes
4 answers

.htaccess: how to restrict access to a single file by IP?

I've look all over, but keeps running into same info that talks about directory level IP restriction, which usually looks something like this: Order Deny,Allow Deny from all Allow from 123.123.123.123 Is it possible to have same type of access…
HeadScratching
  • 263
  • 1
  • 2
  • 7
23
votes
8 answers

what does it mean "(include_path='.:/usr/share/pear:/usr/share/php')"?

I have file structure on EC2 like : but facing some file referencing problem. index.php -db -config.php -cron -cron1.php I have tried file referencing as: `require_once (dirname(__FILE__).'/db/config.php');` `require_once…
ketul shah
  • 413
  • 2
  • 7
  • 17