Skip to content

Instantly share code, notes, and snippets.

@rommmka
Last active December 27, 2019 10:09
Show Gist options
  • Select an option

  • Save rommmka/1cc31237e9f5c693f1b8e3488014910e to your computer and use it in GitHub Desktop.

Select an option

Save rommmka/1cc31237e9f5c693f1b8e3488014910e to your computer and use it in GitHub Desktop.
## 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