Set up a global .gitignore file
Tags Git Programming Terminal
Tags Git Programming Terminal
Tags Git Programming Terminal Github Linux Workflow Web Development
For an older PHP project, I needed to install an older version of PHP. This is what I did to set that up.
sudo add-apt-repository ppa:ondrej/php<br></br>sudo apt-get update<br></br>sudo apt-get install -y php7.1
Some of these binds are probably not need. I think the main ones, at least for my use case, were php
and phar
.
sudo update-alternatives --set php /usr/bin/php7.1<br></br>sudo update-alternatives --set phar /usr/bin/phar7.1<br></br>sudo update-alternatives --set phar.phar /usr/bin/phar.phar7.1<br></br>sudo update-alternatives --set phpize /usr/bin/phpize7.1<br></br>sudo update-alternatives --set php-config /usr/bin/php-config7.1
For some reason the --set
flag stopped working, so I had to use:
sudo update-alternatives --config php
sudo update-alternatives --config p
etc. And update each one with the terminal prompt options for each.
p.s. If using PHP-FPM, you could also set up different server conf files and point the FPM path to the version you need. My need was just because I was using the command line in the older project.
tags