Skip to content

Instantly share code, notes, and snippets.

@mkeneqa
Last active September 8, 2018 15:01
Show Gist options
  • Save mkeneqa/b796640ada1a1ae63b7589b9d3736222 to your computer and use it in GitHub Desktop.
Save mkeneqa/b796640ada1a1ae63b7589b9d3736222 to your computer and use it in GitHub Desktop.
Installing Laravel 5.5 (and later) On CodeAnywhere

Installing Laravel 5.5 (and later) On CodeAnywhere

CodeAnywhere is a great cloud IDE to create web apps but it lacks that latest install of Laravel. So I used the latest PHP stack as my base and then installed the latest version of Laravel 5.5 with additional packages.

Here are the steps I followed:

  1. Create a new Container (Hook up bitbucket or GitHub repo first if there is an existing repo) use the PHP7 CentOS Stack
  2. Once container is loaded update composer: composer self-update
  3. Then install Laravel on the root of workspace: composer create-project laravel/laravel basicwebsite
  4. Install Nano editor: sudo yum install nano
  5. Edit Document Root on Apache http config file: sudo nano /etc/httpd/conf/httpd.conf
  6. Scroll down a ways to the section where it says Document Root: change that to “home/cabox/workspace/basicwebsite/public”. You can also change working directory to:“home/cabox/workspace/basicwebsite/”. Save changes and exit.
  7. Restart apache: sudo apachectl restart
  8. Change permission of storage directory: chmod -R ugo+rw storage/ and chmod -R ugo+rw bootstrap/cache/
  9. You can save this container as a template stack for other future containers.
  10. Now your app should be working. Enjoy Coding!
@naeemwakar
Copy link

image

@naeemwakar
Copy link

can you please help on this????

@ronmrcdo
Copy link

ronmrcdo commented Jan 9, 2018

@naeemwakar you should go to the directory of your laravel first. cd mbl-ci then type the command chmod. don't forget to use sudo if it requires permission

@mumtazhqq
Copy link

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment