-
Notifications
You must be signed in to change notification settings - Fork 0
Installation on macOS English
In case of problem through the installation, open an issue!
Before installing, you have to download! And to do that you have to download it here, to install a web server. We can install all the component one by one, but hopefully, developers have simplified that, and they created packages that gathers 3 essential component (Apache, MySQL or MariaDB and PHP) in 1!
To install it, you have to... start the installer! You have to begin by reading (or not 😜) the license and the terms of service! Then launch the installation... and that's all!
Now, start Mamp (not Mamp Pro, it's a test version of few days, I recommend you then to use only the standard version!), then go to preferences, then in ports, then click on the "Set Web & MySQL ports to 80 & 3306" button! I also advise you to untick in Start/Stop "Stop servers" and to tick "Start servers"! This will make you launch the web server when you start Mamp and to not stop it when you close the application!
Click on the "Start servers", if you see this message "Index of /" when you go here, this mean that it's working! Congratulation! You have won a cookie 🍪!
Great, we have installed the web server! Now, you just have to install a little program for dependencies! Go here and follow the instructions by copying the lines in your terminal!
Then add this command:
# mv composer.phar /usr/local/bin/composer # If you have an error execute this command 'mkdir -p /usr/local/bin' and retest the command!
You can also install composer with your distribution's package manager, which I advise!
If you're using GitHub, you surely use Git, but, in doubt, I'll learn you how to install Git! You just have to download here the installer, to start it, and that's all 😄!
Just in case, test this command:
$ git
If a list of commands is displayed, It work! But if you have this output 'The "git" command requires the command line developer tools. Would you like to install the tools now?' or something like that, answer no, and execute this command:
# mv /usr/bin/git /usr/bin/git-system
Retest the command, if it don't work, open an issue 😉!
Copy these commands :
$ cd /Applications/MAMP/htdocs/
$ git clone https://github.com/TheOpenMedium/HAY.git
That's all 😄!
Now, we'll use composer to install dependencies by executing this:
$ cd /Applications/MAMP/htdocs/HAY/
$ composer install
This will take a moment, but after that, Symfony is ready to use, to launch Symfony Server, write this... Why, are you looking to me like that? Why did we make all that to use a Symfony server? For a simple reason, installing PHP, MariaDB (or MySQL if you want) and Apache easily! But using a Symfony server is better! Great, execute this now:
$ cd /Applications/MAMP/htdocs/HAY/
$ php bin/console server:run
Great, if you have no error, Symfony work! For stopping it, do ctrl + c
. Else, open an issue, we'll help you!
You can also go to localhost:8000/ to see the project, but you'll have a beautiful exception! Why? Because, we didn't have configured Symfony yet, we'll see that now!