How to get nginx website to behave

2 posts / 0 new
Last post
#1 Mon, 04/04/2016 - 12:35
nginxridingapache

How to get nginx website to behave

Where does the nginx website plugin store the sock it creates. so php can run it every time. I couldn't find it.

I also like to have custom virtual host. the pl script is too complicated for me so far. but I could try. is there an easy way to at least stop nginx website from creating new sock and adding config? I could for example create the virtual host file then fire up create virtual host.

Wed, 04/13/2016 - 17:49
kindnation

VIrtualmin creates the PHP FCGI socket per domain. You can find them running in /etc/init.d/php-fcgi-yourdomain-com

Inside the /etc/nginx/sites-available/yourdomain.com, you will see: fastcgi_pass unix:/var/php-nginx/146049238203455.sock/socket;

The (string of numbers).sock is the ID generated by Virtualmin. To find the ID, you can use this command:

virtualmin list-domains --domain yourdomain.com --id-only

will output: 146049238203455 (example)

Topic locked