![]() Note: Make sure your services are running when starting the wsl. Remember to restart your services when changing the configuration: service nginx restart Ln -s /etc/nginx/sites-available/nginx-site-conf /etc/nginx/sites-enabled/nginx-site-conf I have experienced that if you keep the default configuration, it would catch all the request. You can add this configuration to /etc/nginx/sites-available, make a symlic to /etc/nginx/sites-enabled, and delete the default. This configuration (see nginx-site-conf) is set up to point all request to the "webroot" folder in the project. Remember to prefix the name with 99, so it is the last configurations to be loaded. I recommend adding a custom php ini file to overwrite the existing configurations, and create symlinks to the con.d folders. Note: I recommend setting the port to 9100, else it will conflict with xdebug, which also have 9000 as the default port This is basically taken from this guide:, just added fpm to work with nginx apt-get update & apt-get upgradeĪpt-get install python-software-propertiesĪpt-get install php-pear php7.2-curl php7.2-dev php7.2-gd php7.2-mbstring php7.2-zip php7.2-mysql php7.2-xml php7.2-fpmĪfter installing fpm, you need to change the listing from "socket" to "tcp port", the current wsl version do not support sockets. How to setup Netbeans to use PHP on WSL (Ubuntu 1604) Install PHP 7.2
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |