Last active
December 27, 2019 10:09
-
-
Save rommmka/1cc31237e9f5c693f1b8e3488014910e to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| ## Valet | |
| https://github.com/cpriego/valet-linux | |
| #### Valet not found | |
| Add to your `~/.profile` file follow code: | |
| ```bash | |
| if [ -d "$HOME/.config/composer/vendor/bin" ] ; then | |
| PATH="$HOME/.config/composer/vendor/bin:$PATH" | |
| fi | |
| ``` | |
| You may need to restart Ubuntu after this. | |
| #### MySQL | |
| https://www.digitalocean.com/community/tutorials/how-to-install-mysql-on-ubuntu-18-04 | |
| Pay attention to **Step 3** and "*authentication method from auth_socket to mysql_native_password*". | |
| #### Nginx | |
| Create file `/etc/nginx/sites-available/magento.conf` with content: | |
| ``` | |
| upstream fastcgi_backend { | |
| server unix:/home/<user>/.valet/valet.sock; | |
| } | |
| server { | |
| listen 80; | |
| server_name magent2.test; | |
| set $MAGE_ROOT /home/<user>/<path-to-magento-dir>; | |
| include /home/<user>/<path-to-magento-dir>/nginx.conf.sample; | |
| } | |
| ``` | |
| Make symlink `sudo ln -s /etc/nginx/sites-available/magento.conf /etc/nginx/sites-enabled/magento.conf`. | |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment