Last active
July 26, 2024 09:19
-
-
Save maxime-rainville/2ebf814e0b3ce30f938675a29812ba4d to your computer and use it in GitHub Desktop.
Post install script to configure my workstation for PHP5.6/PHP7 development
This file contains hidden or 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
# !/bin/bash | |
# Install CURL | |
sudo apt-get install -y curl | |
## ADD ADDITIONAL PACKAGES SOURCES ## | |
# Support for Multiple PHP version | |
sudo add-apt-repository -y ppa:ondrej/php | |
## INSTALL A LOT OF GOODIES ## | |
# Standard DEB packages | |
sudo apt-get update -y | |
sudo apt-get upgrade -y | |
sudo apt-get install -y apache2 chromium-chromedriver libapache2-mod-php mysql-server vim git multitail screen sendmail sqlite3 mcrypt ubuntu-restricted-extras | |
PHP=8.2 | |
sudo apt-get install -y php$PHP php$PHP-cli php$PHP-common php$PHP-curl php$PHP-soap php$PHP-gd php$PHP-intl php$PHP-mbstring php$PHP-mcrypt php$PHP-mysql php$PHP-zip php$PHP-xml | |
sudo snap install slack skype gimp --classic | |
# composers | |
curl -sS https://getcomposer.org/installer | sudo php -- --install-dir=/usr/local/bin --filename=composer | |
## CONFIGURTION TWEAKS ## | |
# Apache config - Enable mod rewrite | |
sudo a2enmod rewrite | |
sudo a2enmod vhost_alias | |
sudo a2enmod ssl | |
sudo service apache2 restart | |
# Add current user to the www-data group so we can read file without SUDO | |
# sudo usermod -a -G www-data $USER | |
# Configure GIT settings | |
git config --global core.editor vim | |
git config --global push.default simple | |
## CLEAN UP ## | |
sudo apt-get autoremove -y |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment