Trying to install second WordPress site onto server

Hello, I used the VULTR one-click app for Wordpress because when I originally setup Wordpress on an Ubuntu installation, it wouldn't connect to my theme's domain for whatever reason. Now, this all works great, but I am trying to wrap my head around how the VULTR team set this is up. When I attempt to create a second nginx server block (I really planned to just copy the original https config and change server name and some other things like SSL certificate/key) it tells me "[emerg] duplicate upstream "php-handler-http".

Now, I don't know how to figure this out. I tried looking for a php-fpm sock file to use as the php location instead of using this upstream handler, but I cannot find one and when I tried installing php-fpm, it didnt do anything either. So, could someone point me into the right direction here? I really don't want to have separate servers for just a few small websites I am running.


  • Hello,

    Can you post your Nginx configuration files? That would be helpful to locate the issue.


    --- David

  • edited April 30

    EDIT: I fixed the issue (you cannot have the same upstream name. What I mean is my original config's php upstream line was upstream php-handler-http { and all I had to do was change it to upstream php-handler-http2 { in the second config file. Everything is working now.

    I did have another unrelated issue and asked about it in this comment and it was just an error on my part about using a domain I shouldn't have been using... So, I am going to just remove that question from my comment and replace it with the solution I found above. Thanks.

  • snacks,

    Was the top upstream line all you changed? I.e. did you create a second PHP FPM pool in the /etc/php/7.4/fpm/pool.d/ directory? Did you change the user(s) and port(s) the FPM Pool runs on? Just thinking, for security you'll probably want to ensure all of those are changed, otherwise you'll still be running under www-data which then allows the back end to be susceptible to attacks from site a to site b and also for site a to possibly take down site b if the PHP FPM pool gets overwhelmed.

Sign In or Register to comment.