From 502a642d321c21673a20d2da997a4d63b85e4adf Mon Sep 17 00:00:00 2001 From: James Barnett Date: Wed, 21 Sep 2016 14:32:27 -0500 Subject: [PATCH] Some touch ups to the WAMP install. --- Vagrantfile | 5 ++++- scripts/configs/configure_firewall.bat | 3 ++- scripts/installs/install_wamp.bat | 4 ++-- scripts/installs/start_wamp.bat | 2 ++ 4 files changed, 10 insertions(+), 4 deletions(-) create mode 100644 scripts/installs/start_wamp.bat diff --git a/Vagrantfile b/Vagrantfile index f4650dc..8bc70df 100644 --- a/Vagrantfile +++ b/Vagrantfile @@ -59,7 +59,10 @@ Vagrant.configure("2") do |config| config.vm.provision :shell, inline: "rm C:\\tmp\\vagrant-shell.bat" # Hack for this bug: https://github.com/mitchellh/vagrant/issues/7614 config.vm.provision :shell, path: "scripts/installs/install_wamp.bat" config.vm.provision :shell, inline: "rm C:\\tmp\\vagrant-shell.bat" # Hack for this bug: https://github.com/mitchellh/vagrant/issues/7614 - + #config.vm.provision :shell, path: "scripts/installs/install_wordpress.bat" + #config.vm.provision :shell, inline: "rm C:\\tmp\\vagrant-shell.bat" # Hack for this bug: https://github.com/mitchellh/vagrant/issues/7614 + config.vm.provision :shell, path: "scripts/installs/start_wamp.bat" + config.vm.provision :shell, inline: "rm C:\\tmp\\vagrant-shell.bat" # Hack for this bug: https://github.com/mitchellh/vagrant/issues/7614 # Configure Firewall to open up vulnerable services config.vm.provision :shell, path: "scripts/configs/configure_firewall.bat" diff --git a/scripts/configs/configure_firewall.bat b/scripts/configs/configure_firewall.bat index 3c88738..a85bf0f 100644 --- a/scripts/configs/configure_firewall.bat +++ b/scripts/configs/configure_firewall.bat @@ -4,4 +4,5 @@ netsh advfirewall firewall add rule name="Open Port 8282 for Apache Struts" dir= netsh advfirewall firewall add rule name="Open Port 80 for IIS" dir=in action=allow protocol=TCP localport=80 netsh advfirewall firewall add rule name="Open Port 4848 for GlassFish" dir=in action=allow protocol=TCP localport=4848 netsh advfirewall firewall add rule name="Open Port 8080 for GlassFish" dir=in action=allow protocol=TCP localport=8080 -netsh advfirewall firewall add rule name="Open Port 3389 for Remote Desktop" dir=in action=allow protocol=TCP localport=3389 \ No newline at end of file +netsh advfirewall firewall add rule name="Open Port 3389 for Remote Desktop" dir=in action=allow protocol=TCP localport=3389 +netsh advfirewall firewall add rule name="Open Port 8585 for Wordpress and phpMyAdmin" dir=in action=allow protocol=TCP localport=8585 \ No newline at end of file diff --git a/scripts/installs/install_wamp.bat b/scripts/installs/install_wamp.bat index 7b8b140..1b70f91 100644 --- a/scripts/installs/install_wamp.bat +++ b/scripts/installs/install_wamp.bat @@ -5,5 +5,5 @@ copy /Y "C:\vagrant\resources\wamp\wampserver2.2d-x64.exe" "C:\Windows\Temp\wamp C:\Windows\Temp\wampserver2.2.d-x64.exe /verysilent copy /Y "C:\vagrant\resources\wamp\httpd.conf" "C:\wamp\bin\apache\Apache2.2.21\conf\httpd.conf" copy /Y "C:\vagrant\resources\wamp\phpmyadmin.conf" "C:\wamp\alias\phpmyadmin.conf" -net start wampapache -net start wampmysqld \ No newline at end of file +sc config wampapache start= auto +sc config wampmysqld start= auto \ No newline at end of file diff --git a/scripts/installs/start_wamp.bat b/scripts/installs/start_wamp.bat new file mode 100644 index 0000000..33e2bc8 --- /dev/null +++ b/scripts/installs/start_wamp.bat @@ -0,0 +1,2 @@ +net start wampapache +net start wampmysqld