Wednesday, September 14, 2016

How to install Laravel Spark on Centos 7

So I spent more hours than I care to admit, just trying to get Laravel Spark up and running on my brand new Centos server. I have to say, it was less than enjoyable.

To that end, I thought I'd type up a quick tutorial on how to make it happen.

The primary problem I've run into is all centered on the fact that Centos does not seem to do a great job of keeping their repos up to date. I'm finding more and more, if you are trying to support newer technologies, you are simply forced to add newer repositories, like webtatic, or simply compile things on your own. This is especially true when I decided to implement http2 support on my servers. In fact, I'm in the process of finishing a blog post on setting up Centos7 to support http2.


This script assumes you already have a working nginx/apache & php 5.6+ webserver up and running. I have tried to commented my script to explain what is going on. My intention, like many other things I do, is to write a script to automate the process if when I have to do it again.


You can find the script on my github page.


That should be it! Feel free to ask questions or leave comments if you have any suggestions. I am hoping to refine this script a bit more to accept user input and be a bit more automated.