Dev Env #2

Posted about the basic set up yesterday, but while I was trying to view the site on the dev environment found a few other little problems going on. One Apache was still hooked into php 5 which no longer existed, and after fixing that there was a missing permissions in that original post – which if I had done my usual laravel install I would have followed.

So in addition to the post at Tildee you have to do a few more commands. In order to simplify the resource I’m going to post all the commands (and their corrections) here.

In the Code Anywhere terminal (or if you’ve ssh’d into from your computer)

sudo apt-get update
sudo apt-get install npm

sudo apt-get purge php5-common -y
sudo apt-get install software-properties-common python3-software-properties
sudo apt-get update
sudo apt-get autoremove

sudo apt-get install -y language-pack-en-base
sudo LC_ALL=en_US.UTF-8 add-apt-repository ppa:ondrej/php
sudo apt-get update
sudo apt-get install php7.0 php7.0-common php7.0-mysql php7.0-mbstring php7.0-zip php7.0-xml

curl -sS | sudo php -- --install-dir=/usr/local/bin --filename=composer

sudo a2dismod php5
sudo a2enmod php7.0

Go back into the IDE and delete the current directories and files i.e. larval application by right clicking on it and delete DON’T delete .htaccess. As a side note, don’t remove everything in the directory with a terminal command, you delete some codeanywhere files (I’m assuming) that make ‘running the project’ work. (I had to redo this entire setup because I did just that).

Now you can install Laravel per your favorite method.