Linux Server How ToHow To Setup, Configure, Manage and Secure a Linux Server |
|
Home Which Linux Distribution? Linux Server Hardware Linux Server Security Linux Web Server - Apache Introduction to Apache2 Install Apache with Apt-get Install Apache From Source Compile Options Configuring Apache Linux DNS Server - Bind Linux DHCP Server - DHCPD Linux Mail Server - Sendmail LDP How To's About This Site |
Linux Server How To - Install the Apache Web Server Using Apt-getInstalling the Apache Web Server Using Apt-getInstalling the Apache web server using apt-get is an easy process that can be performed in around about one minute. Apt-get retrieves the selected packages from a source server on the internet and automatically installs the software you have selected for you, in this instance the Apache web server application. An internet connection is necessary for this process to be successfull. The commands documented here worked effectively on our Ubuntu Linux server and the majority of the information provided here will hold true for any Linux server using a distribution based on Debian.There are several apt-get packages associated with the Apache web server and the ones you will require depend on your needs and what type of content you will be displaying. If you intend to display a comparitively simple site written in html a basic Apache2 installation is all that is required. To install Apache2 using apt-get log in to your Linux server and from the command line type-
If you are not prompted for a root password for your mysql server it is probably a good idea to set one, even though it is not compulsory. If you havent set a root database password it will be blank, which is not very secure. The following step is only necessary if you were not prompted to set a root database password.
Once the database is secured the PHP enable Apache2 webserver is completed by installing the Apache2 base package, the PHP libraries and GD, which is used to manipulate images in a variety of formats.
|
| © 2009 www.linuxserverhowto.com |