-
Notifications
You must be signed in to change notification settings - Fork 0
Installation on Windows English
In case of problem through the installation, open an issue!
We'll start by installing Xampp, it's a kind of "package" software 3 in 1 (yeah, like shampoo 😜) that install Apache, PHP and MySQL that are software that we need to "emulate" a web server on your PC to let you access to your files on your PC like you're acessing a website (only you can access to them, don't worry)! Let's download it here (warning, the most recent version when I write these lines is in the bottom of the list, then, look carefully to the version number)!
To do that, launch the installer! Then, follow the setps, I also recommend you to keep the default path (the default path is normally "C:\xampp").
Note: You only have to install "Apache", "MySQL" et "PHP" component, the others are unnecessary, I advise you however to install "phpMyAdmin", this will let you access to your database easily!
It's very simple, start the application and click on the "start" button for the following modules: "Apache" and "MySQL"! Great! To verify your installation, it's here! If you have a problem, we'll help you with pleasure in the issues!
- "Error: Apache shutdown unexpectedly." during the first try
This, will seem you a little bit... confusing... but... it's the fault of... SKYPE! You didn't expect this, huh 😛! The ancient version of Skype allowed us to easily solve this problem... but it's no longer the case. To resolve this problem, it will be a little bit complicated:
In the Xampp menu, go to Apache --> Config --> Apache (httpd.conf).
Then, find these lines:
Listen 80
ServerName localhost:80
Then replace them with these:
Listen 8080
ServerName localhost:8080
In the Xampp menu, go to Apache --> Config --> Apache (httpd-ssl.conf).
Then, find these lines:
Listen 443
<VirtualHost _default_:443>
ServerName localhost:443
The last line may be different but you have to find at least "ServerName" & ":443".
Then replace them with these:
Listen 4433
<VirtualHost _default_:4433>
ServerName localhost:4433
Even if the last line was different, replace it as I gave you.
Great, i should work now! But you'll have to go to localhost:8080 instead of localhost...
Great! Now, we'll install Composer, download the installer here! Then follow the steps, we don't recommend you to choose the "Developer mode" and for the "Choose the command-line PHP you want to use:" step, click on the "Browse" button, and go to this path on your computer:
C:\xampp\php\php.exe
If you have chosen a different path during the installation, remplace "C:\xampp" by your installation path!
If this path is already proposed, then you've nothing to make 😜!
If you have already PHP installed... DON'T choose this PHP, cause if your version is outdated, then, it will not work! Else, if your version is up-to-date, do what you want!
For proxy, do what you want, but for a normal user, it's useless.
Great, now Composer is installed, to verify it, open the terminal by clicking on the "Windows" key then by writing "cmd", finally, write "composer" if you have this output:
'composer' is not recognized as an internal or external command, operable program or batch file.
Then, you've failed, else, if you have a long list of commands... Then, bingo 😄!
Hey... guess what! WE'LL DOWNLOAD ANOTHER THING! YAY! It's here (unless you have already Git... what is likely)! What you just downloaded is Git, on what this website is based. Is a kind of application that allows to many people to work on one project and to others to use this project without bother who are working on it.
I think that you know how to install an application 😜. I advise you to not check anything when we ask you, then let everything else by default, except when we ask you "Configuring the terminal emulator to use with Git Bash" when I advise you to choose "Use Windows' default console window"!
Great, Git is installed, to check it, open the terminal (think to reboot it if it's already opened) by clicking on the "Windows" key then by writing "cmd", finally, write "git" if you have this output:
'git' is not recognized as an internal or external command, operable program or batch file.
Then, you've failed, else, if you have a long list of commands... Then, bingo 😄!
To do that, open the terminal by clicking on the "Windows" key then by writing "cmd". Finally, copy these commands:
cd C:\xampp/htdocs/ # Changer C:\xampp par votre chemin si vous n'avez pas utilisé celui par défaut !
git clone https://github.com/TheOpenMedium/HAY.git
That's all 😄!
Now, we'll use composer to install dependencies by executing this in the terminal:
cd C:\xampp/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, MySQL and Apache easily! But using a Symfony server is better! Great, execute this now:
cd C:\xampp/php/
php.exe ../htdocs/HAY/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!