Hosting multiple websites with Apache2. Posted by Steve on Thu 6 Jul 2006 at 22:03 One of the most common Apache2 questions I've seen on Debian mailing lists is from users who wonder how to host multiple websites with a single server.
This is very straightforward, especially with the additional tools the Debian package provides. We've previously discussed some of the tools which are included in the Apache2 package , but what we didn't do was show they're used from start to finish. There are many different ways you can configure Apache to host multiple sites, ranging from the simple to the complex. Here we're only going to cover the basics with the use of the NameVirtualHost directive.
For example if you have an Apache server running upon the IP address 192.168.1.1 and you wish to host the three sites example.com , example.net , and example.org you'll need to make sure that these names resolve to the IP address of your server. (This might mean that you need example.com and www.example.com to resolve to the same address.
ApacheMySQLPHP. Hint: Server Guide To find the Ubuntu Server Guide related to your specific version, please go to: select your Ubuntu version and then click on Ubuntu Server Guide.
For the latest LTS version (14.04.1 LTS) of Ubuntu Server, please go to Parent page: Programming Applications This is to help people set up and install a LAMP (Linux-Apache-MySQL-PHP) server in Ubuntu, including Apache 2, PHP 5 and MySQL 4.1 or 5.0. To install the default LAMP stack in Ubuntu 10.04 and above First refresh your package index... $ sudo apt-get update ... and then install the LAMP stack: $ sudo apt-get install lamp-server^ Mind the caret (^) at the end. Starting over: How to remove the LAMP stack To remove the LAMP stack remove the following packages: Note: This assumes you have no other programs that require any of these packages.
To also remove the debconf data, use the purge option when removing. You may also want to purge these packages: mysql-client-core-5.5 mysql-server-core-5.5 Installing Apache 2 apache2. How To Install Drupal on Ubuntu Server 12.04. Drupal is a free and open-source content-management system (CMS) based on PHP and Mysql, Drupal allows an individual or community of users to publish, manage and organize a variety of content, Drupal integrates many popular features of content management systems, weblogs, collaborative tools and discussion-based community software into one easy-to-use package.
Drupal also possible to install it on a Ubuntu Server 12.04. Currently, the Latest version of Drupal (drupal 7) is available in Official Ubuntu Software repository. Here’s a step-by-step guide on how to install drupal 7 on ubuntu server 12.04 Step-by-Step Install Drupal 7 on Ubuntu Server 12.04 via Ubuntu Software Repositories. Apachectl - Apache HTTP Server Control Interface. Available Languages: en | ko | tr apachectl is a front end to the Apache HyperText Transfer Protocol (HTTP) server. It is designed to help the administrator control the functioning of the Apache httpd daemon.
The apachectl script can operate in two modes. First, it can act as a simple front-end to the httpd command that simply sets any necessary environment variables and then invokes httpd, passing through any command line arguments. Second, apachectl can act as a SysV init script, taking simple one-word arguments like start, restart, and stop, and translating them into appropriate signals to httpd. If your Apache installation uses non-standard paths, you will need to edit the apachectl script to set the appropriate paths to the httpd binary. The apachectl script returns a 0 exit value on success, and >0 if an error occurs.
Synopsis When acting in pass-through mode, apachectl can take all the arguments available for the httpd binary. apachectl [ ] apachectl Options start stop restart status.