This project installs and configures a simple lamp-stack with Apache, MySQL and PHP5 on a Ubuntu 14.04 Server.
For a simple development installation you need the following software:
To install all required dependencies (modules) you need:
Check first if you have installed Vagrant, Virtualbox, Puppet and librarian-puppet. After that run the following commands:
git clone https://github.com/slipke/csm_ss15_sem_team_vagrant.git
andcd lamp-apache/puppet
librarian-puppet install
vagrant up
The basic version of our code installs a plain Apache, PHP and MySQL server. Apache is configured with one vhost called dev.local
with the root folder /var/www/html
. MySQL is configured with the root password root
and one database called test
.
To configure Apache, you can adjust the line class { 'apache': }
, i.e. if you want to change the configuration directory you can replace the line with the following code:
class { 'apache':
conf_dir => '/etc/conf/apache2'
}
If you want to configure PHP, you need hiera installed, then you can add and change the hiera.yml as described in the documentation. Additionally, if you want to change the MySQL settings, just have a look at the MySQL documentation.
- Author: Simon Lipke [email protected]
Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License.