This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
echo ">>> Starting install script" | |
sudo yum -y update | |
echo ">>> Installing Apache, MySQL and PHP" | |
sudo rpm -Uvh http://mirror.webtatic.com/yum/el6/latest.rpm | |
sudo yum install -y nano git-core httpd php55w php55w-common php55w-mysql php55w-mcrypt php55w-gd php55w-xmlrpc php55w-mbstring php55w-xml | |
sudo yum install -y yum-plugin-replace | |
sudo yum replace -y mysql-libs --replace-with mysql55w-libs | |
sudo yum install -y mysql55w mysql55w-server |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/env bash | |
USERNAME="linuxuser" | |
MYSQLROOTPASS="somesecret" | |
# Update Package List | |
apt-get update | |
# Update System Packages | |
apt-get -y upgrade |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/env bash | |
mkdir /etc/nginx/ssl 2>/dev/null | |
openssl genrsa -out "/etc/nginx/ssl/$1.key" 1024 2>/dev/null | |
openssl req -new -key /etc/nginx/ssl/$1.key -out /etc/nginx/ssl/$1.csr -subj "/CN=$1/O=Vagrant/C=UK" 2>/dev/null | |
openssl x509 -req -days 365 -in /etc/nginx/ssl/$1.csr -signkey /etc/nginx/ssl/$1.key -out /etc/nginx/ssl/$1.crt 2>/dev/null | |
block="server { | |
listen ${3:-80} default_server; | |
listen ${4:-443} ssl; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php //app/libraries/MultiUserProvider.php | |
use Illuminate\Auth\UserProviderInterface, | |
Illuminate\Auth\UserInterface, | |
Illuminate\Auth\GenericUser; | |
class MultiUserProvider implements UserProviderInterface { | |
protected $providers; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
############################################################################## | |
# INSTALL isolated PHP 5.6 ZTS (Thread-safe) with pthreads on Ubuntu 14.04 ### | |
############################################################################## | |
1) Install necessary bison version | |
wget http://launchpadlibrarian.net/140087283/libbison-dev_2.7.1.dfsg-1_amd64.deb | |
wget http://launchpadlibrarian.net/140087282/bison_2.7.1.dfsg-1_amd64.deb | |
dpkg -i libbison-dev_2.7.1.dfsg-1_amd64.deb | |
dpkg -i bison_2.7.1.dfsg-1_amd64.deb |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
## bitnami custom app sentrifugo hrms | |
APP_NAME='sentrifugo' | |
sudo mkdir -p /opt/bitnami/apps/$APP_NAME/htdocs /opt/bitnami/apps/$APP_NAME/conf | |
sudo chown -R bitnami /opt/bitnami/apps/$APP_NAME | |
echo '<?php phpinfo(); ?>' > /opt/bitnami/apps/$APP_NAME/htdocs/index.php |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<!doctype html> | |
<title>Site Maintenance</title> | |
<style> | |
body { text-align: center; padding: 20px; } | |
@media (min-width: 768px){ | |
body{ padding-top: 150px; } | |
} | |
h1 { font-size: 50px; } | |
body { font: 20px Helvetica, sans-serif; color: #333; } | |
article { display: block; text-align: left; max-width: 650px; margin: 0 auto; } |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# https://certbot.eff.org/#ubuntutrusty-nginx | |
# http://www.jeffmould.com/2016/05/14/install-lets-encrypt-ssl-certificate-laravel/ | |
# https://loune.net/2016/01/https-with-lets-encrypt-ssl-and-nginx/ | |
# https://community.letsencrypt.org/t/how-to-nginx-configuration-to-enable-acme-challenge-support-on-all-http-virtual-hosts/5622 | |
sudo mkdir /usr/share/nginx/letsencrypt/.well-known | |
sudo cd /usr/share/nginx/letsencrypt | |
sudo chown -R user:www-data letsencrypt |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
REM ----------------------------------------------- | |
REM Install basic programs | |
REM ----------------------------------------------- | |
echo Installing chocolatey | |
@powershell -NoProfile -ExecutionPolicy Bypass -Command "iex ((new-object net.webclient).DownloadString('https://chocolatey.org/install.ps1'))" && SET PATH=%PATH%;%ALLUSERSPROFILE%\chocolatey\bin | |
echo Installing utility programs |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Nice setup nginx php-fpm | |
https://www.webfoobar.com/node/64 | |
Run Nginx + PHP (FPM) on your Kubernetes cluster! | |
https://github.com/b00giZm/kubernetes-php-nginx |