Skip to content

Instantly share code, notes, and snippets.

@sifex
sifex / lamp.sh
Last active October 27, 2021 14:57 — forked from aamnah/lamp.sh
Bash script to install Apache and PHP and some tweaks. For Debian and Ubuntu. To run, copy the script to the server and run ``bash lamp.sh``
#!/bin/sh
#######################################
# Bash script to install an AMP stack and PHPMyAdmin plus tweaks. For Debian based systems.
# Written by @AamnahAkram from http://aamnah.com
# In case of any errors (e.g. MySQL) just re-run the script. Nothing will be re-installed except for the packages with errors.
#######################################
#COLORS
# -*- mode: ruby -*-
# vi: set ft=ruby :
# Vagrantfile API/syntax version. Don't touch unless you know what you're doing!
VAGRANTFILE_API_VERSION = "2"
Vagrant.configure(VAGRANTFILE_API_VERSION) do |config|
config.vm.box = "precise64"
config.vm.box_url = "http://files.vagrantup.com/precise64.box"
config.vm.network "private_network", ip: "192.168.33.21", type: "dhcp", auto_config: false
ws.OnMessage += (sender, e) =>
{
// Scarlet WS API
// Words = (Browser/Updater)|(IP/*)|(Command)|(Perameters)
string[] words = e.Data.Split('|');
if (words[0] == "Updater")
{
if (words[1] == IP || words[1] == "*")
{
if (words[2] == "browserConnect")