Apache

From Wsms

Jump to: navigation, search

Note: This page should be titled apache (all lowercase). It is Apache due to technical limitations of Mediawiki.

apache is the number 1 web server.

Contents

installation

debian/ubuntu/linuxmint

Install using Synaptic.

tips

display php source instead of interpreting the code

See https://sourceforge.net/docs/E07/en/

In some cases, projects wish to display the contents of PHP files (i.e. their source code) rather than executing the code. PHP files given the .phps extension will be colorized and formatted for display by PHP, rather than being executed.

If you don't have that set up you can always do ln -s file.php file.php.txt. You probably don't want to let people see the php that your are running on a production server, but it might be useful for education and development.

use the ServerName directive

If you see a warning like:

apache2: Could not reliably determine the server's fully qualified domain name, using 127.0.1.1 for ServerName

when your (re)start apache manual, you can put a line like:

ServerName hayes.sdlinuxguy.com:80

in your main apache configuration file.

The main configuration file is /etc/htppd/conf/httpd.conf on RedHat and /etc/apache2/httpd.conf on Debian.

see also

http://httpd.apache.org - the main apache website.

Personal tools