install homebrew:
/bin/bash -c "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/HEAD/install.sh)"
install git
brew install wget
xcode-select —-install
install homebrew:
/bin/bash -c "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/HEAD/install.sh)"
install git
brew install wget
xcode-select —-install
| REQUESTED_VERSION=${1?Error: no version given} | |
| CURRENT_VERSION=$(php -r 'echo PHP_MAJOR_VERSION.".".PHP_MINOR_VERSION;') | |
| echo Current Version: $CURRENT_VERSION | |
| echo Requested Version: $REQUESTED_VERSION | |
| sudo a2dismod php"$CURRENT_VERSION" \ | |
| && sudo a2enmod php"$REQUESTED_VERSION" \ | |
| && sudo update-alternatives --set php /usr/bin/php"$REQUESTED_VERSION" \ | |
| && sudo service apache2 restart |
| sudo apt-get update && sudo apt-get upgrade -y | |
| sudo snap install code --classic | |
| sudo snap install skype --classic | |
| sudo apt install git-all | |
| sudo apt install npm |
| /etc/apache2/sites-available/000-default | |
| <VirtualHost *:80> | |
| ServerAdmin [email protected] | |
| ServerName test.loc | |
| ServerAlias www.test.loc | |
| DocumentRoot /var/www/html/test | |
| <Directory "/var/www/html/test"> | |
| AllowOverride all | |
| Require all granted |
| /etc/hosts | |
| /etc/apache2/sites-available/000-default | |
| <VirtualHost *:80> | |
| ServerAdmin [email protected] | |
| ServerName phpmyadmin.dev | |
| ServerAlias www.phpmyadmin.dev | |
| DocumentRoot /var/www/html/phpmyadmin | |
| <Directory "/var/www/html/phpmyadmin"> | |
| AllowOverride all |