# Systemd: additional site on same server - ghost gone

**URL:** <https://forum.ghost.org/t/systemd-additional-site-on-same-server-ghost-gone/5700>\
**Category:** Installation\
**Created:** [February 17, 2019, 5:03pm UTC](https://forum.ghost.org/t/systemd-additional-site-on-same-server-ghost-gone/5700 "2019-02-17T17:03:08Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![mheland](https://sea1.discourse-cdn.com/flex015/user_avatar/forum.ghost.org/mheland/32/26236_2.png) [@mheland](https://forum.ghost.org/u/mheland)\
**Post date:** [February 17, 2019, 5:03pm UTC](https://forum.ghost.org/t/systemd-additional-site-on-same-server-ghost-gone/5700/1 "2019-02-17T17:03:08Z")

</div>

I did a new install of Ghost using the ghost-CLI on a Digital Ocean Ubuntu droplet.

Very smooth, and everything up and running with SSL from /var/www/dotse  
for the man domain, say www.site.se

Then I added an additional site on a subdomain with root dir /var/www/hub for  
hub.site.se on the same droplet.

Wrote the nginx hub.site.conf in /sites-available and linked it to /sites-enabled

After a reboot I can not access the Ghost site - niginx kicks everything to the site I added,  
ignoring the Ghost systemd service

I’m in way over my head with systemd - I have no idea how to work this.

Using “sudo netstat --tcp --udp --listening --program” I see Ghost on localhost:2368  
Do I write a separate .conf for www.site.se installation in /var/www/dotse  
and proxy the request like I do on other ghost installations?

here is what I have in /sites-available  
hub.site.se  
www.site.se-ssl.conf -\> /var/www/dotse/system/files/www.site.se-ssl.conf  
www.site.se.conf -\> /var/www/dotse/system/files/www.site.se.conf

But… there are no config files in /system/files, just a systemd config…  
ghost\_www-site-se.service  
so… I’m lost. Any ideas?

Thanks / magnus

---

<div class="post-metadata">

**Author:** ![dsecareanu](https://sea1.discourse-cdn.com/flex015/user_avatar/forum.ghost.org/dsecareanu/32/413_2.png) [@dsecareanu](https://forum.ghost.org/u/dsecareanu)\
**Post date:** [February 18, 2019, 8:28am UTC](https://forum.ghost.org/t/systemd-additional-site-on-same-server-ghost-gone/5700/2 "2019-02-18T08:28:53Z")

</div>

Check to make sure that the two Ghost instances run on different ports. If the first one runs on 2368 then the second one should run on 2369 (and this should be reflected in the nginx config).

---

<div class="post-metadata">

**Author:** ![mheland](https://sea1.discourse-cdn.com/flex015/user_avatar/forum.ghost.org/mheland/32/26236_2.png) [@mheland](https://forum.ghost.org/u/mheland)\
**Post date:** [February 18, 2019, 3:52pm UTC](https://forum.ghost.org/t/systemd-additional-site-on-same-server-ghost-gone/5700/3 "2019-02-18T15:52:37Z")

</div>

The other site is PHP-based, not a Ghost installation (agree, this is not very clear from my post)

I removed the symlinks in /sites-enabled and wrote a separate config for the Ghost site.  
Clearly a hack, and I’m writing “learn systemd” on my to-do list…  
Thanks anyway!  
/magnus

---

<div class="post-metadata">

**Author:** ![vikaspotluri123](https://sea1.discourse-cdn.com/flex015/user_avatar/forum.ghost.org/vikaspotluri123/32/24_2.png) [@vikaspotluri123](https://forum.ghost.org/u/vikaspotluri123)\
**Post date:** [February 19, 2019, 2:10am UTC](https://forum.ghost.org/t/systemd-additional-site-on-same-server-ghost-gone/5700/4 "2019-02-19T02:10:13Z")

</div>

Hey 👋

You don’t need to learn systemd to manage PHP applications; Node and PHP have very different runtime environments. Look into a PHP process manager, like [php-fpm](https://php-fpm.org/). Something like

> **[Understanding and Implementing FastCGI Proxying in Nginx | DigitalOcean](https://www.digitalocean.com/community/tutorials/understanding-and-implementing-fastcgi-proxying-in-nginx)**
>
> Nginx has become one of the most flexible and powerful web server solutions available. However, in terms of design, it is first and foremost a proxy server. …

might be useful for integrating NGINX and PHP

---

<div class="post-metadata">

**Author:** ![system](https://us1.discourse-cdn.com/flex015/uploads/ghost2/original/2X/b/ba9ce5100b8bb264586f4f572545596b2ce3f081.png) [@system](https://forum.ghost.org/u/system)\
**Post date:** [March 5, 2019, 2:18am UTC](https://forum.ghost.org/t/systemd-additional-site-on-same-server-ghost-gone/5700/5 "2019-03-05T02:18:39Z")

</div>

Closed on March 5, 2019, 2:18am UTC

This topic was automatically closed 14 days after the last reply. New replies are no longer allowed.
