iTechGuides is reader-supported. When you buy through links on our site, we may earn an affiliate commission. As an Amazon Associate I earn from qualifying purchases. Learn more
Need a server to try this on? Antihost offers Linux VPS plans with NVMe storage, full root access and a 14-day free trial.
Yes—you can run several independent Ghost publications and PHP applications on one VPS. Put Nginx on the public IP addresses and ports 80 and 443, then let each Nginx server block select a site from the request’s hostname. Ghost sites proxy to separate localhost ports; PHP sites use separate document roots and PHP-FPM targets. Each domain still needs DNS records, its own HTTPS certificate, isolated credentials, and a service that starts reliably after a reboot.
What the finished architecture looks like
Nginx is the only service exposed directly on HTTP and HTTPS. It reads the Host header and chooses the matching server_name. The selected block either proxies the request to a Ghost process listening on loopback or passes PHP requests to PHP-FPM.
The Tool Desk
Outbyte PC Repair FREERepair Windows errors before they cause bigger problemsFix Now →Outbyte Driver Updater FREEFix the driver behind crashes, sound loss and screen glitchesFind Drivers →| Site type | Public Nginx handling | Private application target | Isolation to maintain |
|---|---|---|---|
| Ghost publication A | server_name ghost-a.example.com with proxy_pass |
Ghost process on a unique port such as 127.0.0.1:2368 |
Directory, systemd unit, database credentials, logs and port |
| Ghost publication B | A separate server block and hostname | A different Ghost process, for example 127.0.0.1:2369 |
Directory, systemd unit, database credentials, logs and port |
| PHP application A | root /var/www/php-a/public and front-controller routing |
The installed PHP-FPM Unix socket | Document root, application files, secrets and database account |
| PHP application B | A separate root and server_name |
Its configured PHP-FPM socket or pool | Document root, application files, secrets and database account |
A practical filesystem layout is:
/srv/ghost/site-a/
/srv/ghost/site-b/
/var/www/php-a/public/
/var/www/php-b/public/
/etc/nginx/sites-available/ghost-a.example.com
/etc/nginx/sites-available/ghost-b.example.com
/etc/nginx/sites-available/php-a.example.com
/etc/nginx/sites-available/php-b.example.com
Only enabled files should be symlinked into /etc/nginx/sites-enabled/. Keeping one file per hostname makes it possible to test, disable and migrate a site without editing a giant shared configuration.
Prerequisites and capacity planning
Use a supported operating baseline
Ghost’s current hosting guidance lists Ubuntu 24, Node.js 22 LTS, MySQL 8.0, Nginx, systemd, a non-root user, HTTPS and firewall rules for SSH, HTTP and HTTPS. It lists at least 1 GB of memory as the baseline for Ghost hosting. That is a starting point, not a promise that a 1 GB VPS can run many busy sites: every additional Ghost process, PHP worker, database workload and backup job consumes the same CPU, RAM, storage I/O and network capacity.
#1 Best Overall
- Powerful Turbo Fan:CAGIWIRU Electric Air Duster have reached speed up to 130000RPM,Can efficient remove dust and debris.With LED light and Three Adjustable Speed to meet with different cleaning tasks.
- With Attached USB C Fasting Charging cable.Charing 3 hours,Enjoy up to 240 minutes of use on the lowest setting, For third speed can use for 25mins.with four charging options to meet with your needs.
- Wide Application:Upgraded attached 5 different nozzles,making it suitable for a variety of scenes, such as car,pet, pc, keyboards, and other electronic devices. It also serves for office and home clean duster.
- Handy Design & Portable:Cordless air duster electric nozzle is Light weight and small size, design and comfortable to hold and space saving, convenient to carry around. You can put it in your room or inside the car without taking up space.
- Warranty & Support: Our Electric air duster comes with 5 years warranty and 24/7 customer service. During this period, if you have any questions,pls kindly feel free to contact us.
Ghost is open source and can be installed on almost any VPS provider, but select a plan with enough headroom for peak traffic, database buffers, image processing and upgrades. Measure memory and disk usage before adding another site rather than treating the minimum as a multi-site capacity figure.
Prepare names, addresses and credentials
- Create a separate hostname for every site, such as
ghost-a.example.com,ghost-b.example.com,php-a.example.comandphp-b.example.com. - Reserve a unique Ghost directory, canonical URL, local port and database account for each publication.
- Give each PHP application its own document root and database credentials. Use a separate PHP-FPM pool when different applications need different limits or Unix users.
- Use a non-root administrative account with
sudo. Do not run application processes as root. - Allow only required firewall traffic: SSH from trusted addresses where possible, plus TCP 80 and 443. Do not expose MySQL or PHP-FPM sockets to the Internet.
Install the shared edge services
Install Nginx, database and firewall packages
On an Ubuntu server, update the package index and install Nginx, MySQL and the firewall tools from the distribution repositories. Install the PHP runtime, PHP-FPM and required extensions for each application; package names and the resulting socket path vary by distribution and PHP version.
Do these 3 things before closing this tab:
1Repair Windows errors before they cause bigger problems2Fix the driver behind crashes, sound loss and screen glitches3Clear out junk files and repair common Windows errorssudo apt update
sudo apt install nginx mysql-server ufw
sudo systemctl enable --now nginx mysql
Open only the intended ports, then check the active rules:
sudo ufw allow OpenSSH
sudo ufw allow 80/tcp
sudo ufw allow 443/tcp
sudo ufw enable
sudo ufw status verbose
Do not assume a socket such as /run/php/php-fpm.sock exists. Inspect the installed PHP-FPM service and its pool configuration, then use the actual socket (often versioned, for example /run/php/php8.x-fpm.sock) in the relevant Nginx block.
Install each Ghost publication independently
Create a dedicated directory and run Ghost-CLI as a normal user
Install Ghost-CLI for the administrative account that will own the publication files, then create one directory per site. Ghost-CLI’s production setup can create the Nginx configuration, Let’s Encrypt SSL configuration, low-privilege ghost user and systemd unit. It also supports separate directories and multiple instances.
Rank #2
- Screen Cleaner is Your Screen’s New Bestfriend! - EVEO is proud to present a screen cleaner that’s perfectly suited for your TV. Meet your new screen cleaner, computer screen cleaner, laptop cleaner, iPad cleaner, Macbook,tv cleaner or any other electronic device. Our screen cleaner spray and wipe along with the included plush microfiber cloth, easily removes dust, fingerprints & other smudges on the screen’s surface. Clean effectively for a streak-free screen
- Gentle on your Screens - Our screen cleaner spray and wipes is compatible to be used even for the most sensitive LCD, LED, CRT, and OLED screens in proper use. Be at ease knowing that this product is compatible with all the major brands: LG, SONY, Samsung, Sharp, iPad, iPhone, Android screens, Kindle, PC monitors - we’ve got you covered! Can be used as LCD screen cleaner, tv cleaner, smart tv screen cleaner, and more
- Premium Super Soft Plush Microfiber Cloth - Included in this efficient screen cleaning kit. This screen cleaner spray and wipe has our signature plush microfiber cloth specially designed to comply with screens and monitors and leave them streak-free. Has been shown to effectively absorbs stubborn stains, zero streaks, and no fiber shedding. Always use this together with our screen cleaner for the best results
- Easy-to-Use Screen Cleaner Kit + microfiber cleaning cloth - The EVEO Screen Cleaning Kit will easily be your new favorite tool when it comes to taking care of the things you love most, quick and easy solution for a streak-free screen. Simply screw on the sprayer gun on the screen cleaner bottle. Spray the cleaning liquid onto the microfiber cloth, then wipe the screen until desired cleanliness & shine is achieved.
- Quality Screen Care Kit Worth Purchasing - Enjoy a convenient Screen Cleaner anytime, anywhere you need it. Your satisfaction is our top priority. We stand behind the quality of our products and that’s why, you shouldn’t be worrying at all. We manufacture the Best Screen Cleaner. and can be used for laptop cleaning kit, laptop screen cleaner, tv screen cleaner for smart tv. MacBook screen cleaner, monitor cleaner or screen cleaner spray for electronic devices with microfiber cleaning cloth
sudo npm install --global ghost-cli@latest
sudo mkdir -p /srv/ghost/site-a
sudo chown deploy:deploy /srv/ghost/site-a
sudo -iu deploy
cd /srv/ghost/site-a
ghost install
During the installer prompts, enter the canonical URL for only this publication and unique MySQL credentials. Repeat the process in /srv/ghost/site-b with a different URL and database account.
What’s actually slowing this PC down?
Pick the symptom - the matching free tool is one click away.
Verify the generated port before configuring neighbors
Ghost instances must not share a localhost port. Ghost-CLI normally chooses and records a port during production setup; inspect the generated configuration and systemd unit, and confirm that the second instance uses another port such as 2369. Do not blindly copy the first site’s proxy configuration.
Ghost is designed to have a reverse proxy in front of it. Preserve the forwarded protocol header so Ghost knows whether the original request was HTTPS. An incorrect value can cause an HTTPS redirect loop.
server {
listen 80;
server_name ghost-a.example.com;
location / {
proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
proxy_set_header X-Forwarded-Proto $scheme;
proxy_set_header X-Real-IP $remote_addr;
proxy_set_header Host $http_host;
proxy_pass http://127.0.0.1:2368;
}
client_max_body_size 50m;
}
For the second publication, change both server_name and proxy_pass to the second hostname and port. The 50 MB body limit is only an example; raise it in the specific site block when imports, themes or media require larger requests, rather than increasing it globally for every site.
Check the service before putting it behind DNS
sudo systemctl status ghost_site-a
sudo systemctl is-enabled ghost_site-a
curl -I http://127.0.0.1:2368
The exact systemd unit name is generated from the installation. A healthy unit should start at boot and restart after a crash. Test the second unit on its own port before diagnosing Nginx.
Quick wins for a faster PC:
Clear out junk files and repair common Windows errorsFree Scan →Fix the driver behind crashes, sound loss and screen glitchesFind Drivers →Rank #3
- 【Large size】:Measuring 800 x 300 mm/ 31. 5×12 inches, which is wider and taller than others. Large mouse pad can perfectly fit your keyboard and mouse of any size, and there is also ample space for peripherals such as phones, tablets, etc.
- 【LED backlight mouse pad】:Blade Hawks RGB mouse pad provides 7 static modes and 7 dynamic modes will give you the options you are looking for. Power-off memory function remembers the last lighting mode you selected. The super glow fiber Chroma will give you a colorful gaming setup that you want.
- 【Anti-slip rubber base】:Made from Natural rubber, this gaming mousepad will firmly grip your desktop, allowing you to enjoy the ultimate precision in the games you are most passionate about. It also comes with a texture that enhances this ability even further.
- 【Smooth and waterproof surface】: Micro-textured cloth surface, for extremely precise mouse control and a smooth movement. When liquid splashes on the gaming mouse pad, it forms water droplets and slides down. Will not delay your work or gameplay.
- 【Plug and play】: This mouse and keyboard pad is powered by USB, plug and play, no driver required. One button control light modes. Press one time to change the lighting mode, press twice to change the brightness, press and hold about 3 seconds turn ON/OFF.
Configure PHP sites with separate roots and FastCGI targets
Keep public files and secrets in the right places
Point each PHP hostname at its own public directory. Keep application code, configuration and uploaded data outside directories intended for direct download where the framework permits it. Explicitly deny access to secret files such as .env, private keys and deployment manifests.
Create one server block per PHP hostname
server {
listen 80;
server_name php-a.example.com;
root /var/www/php-a/public;
index index.php index.html;
location / {
try_files $uri $uri/ /index.php?$query_string;
}
location ~ .php$ {
include snippets/fastcgi-php.conf;
fastcgi_param SCRIPT_FILENAME $document_root$fastcgi_script_name;
fastcgi_pass unix:/run/php/php-fpm.sock;
}
location ~ /.env {
deny all;
}
}
Replace the example socket with the path used by the installed PHP-FPM service. Repeat the block for the second application, changing the hostname and document root. If the applications require different PHP versions, use the corresponding versioned sockets or dedicated pools rather than sending both sites to an unavailable or incompatible endpoint.
The try_files fallback sends clean URLs to the application’s front controller while allowing existing static files to be served directly. Confirm that the framework’s deployment instructions agree with this routing rule.
Enable sites without creating a catch-all accident
Write each configuration under /etc/nginx/sites-available/, then enable only the files that should answer requests:
sudo ln -s /etc/nginx/sites-available/ghost-a.example.com /etc/nginx/sites-enabled/
sudo ln -s /etc/nginx/sites-available/ghost-b.example.com /etc/nginx/sites-enabled/
sudo ln -s /etc/nginx/sites-available/php-a.example.com /etc/nginx/sites-enabled/
sudo ln -s /etc/nginx/sites-available/php-b.example.com /etc/nginx/sites-enabled/
sudo nginx -t
sudo systemctl reload nginx
Remove or disable the distribution’s default server if it can answer unmatched requests. Otherwise a typo in DNS or server_name may display the wrong site while all application services are healthy. Always run nginx -t before a reload; a failed test leaves the current working configuration in place.
Rank #4
- 【Softer and More Comfortable】Vaydeer wrist rest has unique diamond pattern, which is the combination of softness and aesthetics. The materials of wrist rest are improved into higher quality memory foam and covered with silky smooth lycra. The computer wrist rest makes you as comfortable and cushiony as like rest your wrists on clouds.
- 【Ergonomic Wrist Saver】The wrist rests for keyboard and mouse comes with a 17.32×3.15×0.83 inch keyboard wrist pad and a 5.94×3.15×0.83 inch mouse wrist support. Based on ergonomic design, the unique concave shape is the perfect fit for your wrist joints. The wrist rest pad fits most computer keyboards and laptops, improve hand and wrist posture, release your wrist and arm stress.
- 【Non-Slip Rubber Bottom】Featuring an anti-skid silicone base on the bottom, this wrist keyboard support stays firmly in place on your desk, preventing the padding from sliding around, ensuring stable and consistent wrist support during extended computer sessions.
- 【Better Experience & Pain Relief】Our keyboard arm rest is beneficial to alleviate the soreness caused by direct contact and friction between your arm and a hard desk surface, reducing the risk of wrist fatigue or carpal tunnel. The soft texture of memory foam can evenly distribute the pressure around your wrists and provide good support with just enough give.
- 【Helpful in Multiple Scenarios】Whether you're working, studying, writing, typing, gaming, this keyboard and mouse rest combo is an essential accessory to add comfort and support to your hands and wrists. It’s also a great gift for men, women, family, friend, coworker, gamer, teacher, etc.
Point DNS at the VPS and issue HTTPS certificates
Create records for every hostname
Create an A record for each hostname that points to the VPS IPv4 address and an AAAA record when the VPS is correctly configured for IPv6. Wait for the records to resolve publicly before requesting certificates. A certificate request for one hostname does not cover unrelated names unless they are explicitly included.
Use Ghost-CLI SSL or an ACME client
Ghost-CLI documents a Let’s Encrypt SSL stage as part of production setup. For PHP sites, use an ACME client such as Certbot with the Nginx plugin, or another compatible Let’s Encrypt workflow. Ports 80 and 443 must reach this VPS during validation.
- Resolve each hostname from an external network and verify that it returns the VPS address.
- Enable the plain HTTP server blocks and run
sudo nginx -t, followed by an Nginx reload. - Request a certificate for each hostname through Ghost-CLI’s SSL step or your ACME client.
- Enable the HTTP-to-HTTPS redirect and reload Nginx after the certificate configuration passes a syntax test.
- Visit every hostname independently, check the certificate name and expiry, and confirm that Ghost’s canonical URL and PHP application URLs use HTTPS.
Automated renewal must be enabled and observed. A certificate that was issued successfully once can still expire later if the renewal timer, DNS, firewall or webroot changes.
Separate processes, permissions, databases and logs
Let systemd supervise Ghost
Systemd is Ghost’s default recommended process manager. Keep one unit per publication so an outage in one process does not require manually launching the others. Use systemctl status, journalctl -u and the Ghost logs to distinguish an application failure from an Nginx routing error.
Use least privilege
Ghost-CLI creates and maintains a low-privilege Linux user for its installation. Preserve that ownership model. For PHP, give the web process write access only to directories that actually need uploads, caches or generated files. Never make an entire application tree world-writable to solve a permissions error.
Best Value
- 【No Drill Mounted】Cable management tray can be assembled in as little as 3 minutes or less-simply. Side clips easily clampe the edge of desk, pass through the holes on the sides, and secure excess cables with baskets. Desk cable management supports inward or outward installation to meet your needs in different scenarios, and provides you with great convenience when collecting and organizing wires.
- 【Rubber Pad Protects Desk】Wire organizer under desk built-in soft rubber pads on the clamp protect your desk from scratches, so you will not damage your furniture or office.
- 【Sturdy and Beautiful】Cord management under desk is made of high-quality carbon steel and holds about 15 lbs. The wire basket has 2 holes on each side of the tray to enable your cables to pass freely. Cable baskets are suitable for desk thickness use from 0.4" to 2.4".
- 【Space Saving & Keep Organized】Desk cable management tray holds all your power cords, outlet strips, USB hubs and computer transformers hidden from your feet, and the data cables will not enter the vacuum cleaner to keep your desk clean and tidy. Desk wire organizer is also suitable for use in the kitchen and outdoors.
- 【Reduce Safety Risks】Cable tray under desk keeps all plugs away from your kids, no more worry about tripping. Using 2 holes wire tray saves extra space, helps you easily cabling and wire protection. The mesh design is not easy to accumulate dust, but avoids safety accidents caused by messy wires.
Keep database accounts and backups independent
Each Ghost publication should have its own MySQL database and credentials; each PHP application should likewise use an account limited to its database. Store credentials outside the public root and rotate them independently.
PC Slower Than It Used to Be?
A free scan shows the junk files, broken settings and background clutter dragging Windows down - then fixes them in one click.Free scan · Windows 10 & 11Crashes, No Sound, or Screen Glitches?
Random freezes, missing sound and display glitches usually trace back to one bad driver. Find and replace yours safely.Free scan · under a minuteBack up Ghost content and database data as well as PHP source, uploads and database contents. Ghost-CLI documents full-site backup capability, but retention, off-site storage and restore frequency depend on the workload. Test a restore on a separate path or VPS before trusting the backup during an incident.
Monitor shared resources
- RAM and swap pressure as each Ghost and PHP worker starts.
- CPU saturation and load during traffic spikes, imports and image processing.
- Disk space, inode usage and storage latency.
- MySQL errors, slow queries and connection limits.
- Nginx access and error logs, Ghost systemd journals and PHP-FPM logs.
- Certificate expiry and renewal-job results.
Deployment choices: Ghost-CLI, manual configuration or containers
All three approaches can place multiple sites behind one Nginx edge, but they shift responsibility differently.
| Decision area | Ghost-CLI production install | Manual host-managed install | Containerized deployment |
|---|---|---|---|
| Upgrade ownership | Ghost-CLI supplies a documented upgrade path per instance. | You manage Node, Ghost, systemd units and compatibility yourself. | You manage image versions, compose files, volumes and migrations. |
| SSL automation | Production setup can create Nginx and Let’s Encrypt integration. | You configure an ACME client and renewal hooks. | You configure certificate storage and an ACME-aware edge workflow. |
| Per-site isolation | Separate directories, ports, users, units and databases. | Isolation is whatever you explicitly build. | Processes and networks are separated by containers, but volumes and host resources remain shared. |
| Backup and restore | Ghost-CLI documents full-site backup; you choose retention and off-site storage. | You design file, database and configuration backups. | You back up volumes, databases and compose configuration. |
| Observability | systemd, Ghost logs and Nginx logs. | Depends on your units, log rotation and monitoring. | Container logs plus host and database monitoring. |
| Migration effort | Moving directories and databases is familiar on a conventional VPS. | Migration can be straightforward but is highly bespoke. | Reproducible once the compose and data migration process is tested. |
Ghost’s current hosting information indicates that the project is moving toward modern Docker Compose tooling for newer self-hosted features. Check the installation path and compatibility requirements for the Ghost version you intend to deploy instead of assuming that an older host-based procedure remains the preferred route.
Troubleshoot by separating DNS, Nginx and application layers
| Symptom | Checks | Likely correction |
|---|---|---|
| The wrong site appears | Resolve the hostname, inspect server_name, list enabled symlinks and check the default server. |
Fix DNS or the hostname mismatch, enable the intended file and disable the unwanted catch-all. |
| Ghost returns 502 Bad Gateway | Check the Ghost systemd unit, confirm the process is listening on the expected loopback port and compare that port with proxy_pass. |
Start or repair the unit, or correct the proxy port. Do not expose the Ghost port publicly. |
| HTTPS redirects loop | Inspect the proxy headers and Ghost URL configuration. | Pass X-Forwarded-Proto $scheme to Ghost and ensure the canonical URL is HTTPS. |
| PHP files download instead of execute | Check PHP-FPM status, the socket path and the PHP location block. | Start the matching PHP-FPM service and point fastcgi_pass at the real socket. |
| Uploads fail with a request-size error | Check the relevant Nginx server block and the application’s own upload limit. | Raise client_max_body_size only for the site that needs it, then reload Nginx. |
| Certificate issuance fails | Verify public DNS, TCP 80/443 reachability and that the hostname is served by this VPS. | Correct DNS or firewall routing, reload Nginx, then rerun the Ghost-CLI SSL step or ACME client. |
| One site becomes slow after another is busy | Review RAM, CPU, disk I/O, MySQL connections and PHP-FPM worker counts. | Reduce worker pressure, optimize the busy application, add capacity or move workloads to separate VPSs. |
Know the scaling and availability boundary
A single VPS can host multiple independent Ghost and PHP sites, but it remains one failure domain. A VPS outage, full disk, kernel problem or overloaded database affects every hostname. Plan maintenance and backup windows with that shared risk in mind.
Free tools Windows power users keep installed
One-click scans. No signup required.
Ghost officially supports one Ghost instance per site and does not support load-balanced clustering or multi-server deployments of any description. Do not place two active Ghost instances behind a load balancer and assume they share state safely. If availability, geographic redundancy or stronger tenant isolation exceeds one VPS, design and test a separate multi-server architecture rather than treating horizontal Ghost clustering as supported.
Quick Recap
Final deployment checklist
- Every hostname has correct A and, where applicable, AAAA records.
- Nginx owns ports 80 and 443; Ghost and PHP backends listen only on local interfaces or sockets.
- Each Ghost site has a unique directory, canonical URL, localhost port, database account and systemd unit.
- Each PHP site has a unique public root, correct PHP-FPM socket and protected secret files.
- The default Nginx catch-all cannot serve the wrong site.
nginx -tsucceeds before every reload.- HTTP redirects to HTTPS for every hostname, and certificates renew automatically.
- UFW exposes SSH, HTTP and HTTPS only as required.
- Backups include files and databases, are stored off the VPS and have been restored in a test.
- Memory, disk, logs, services and certificate renewal are monitored before production traffic is moved.
Product prices and availability are accurate as of the date/time indicated and are subject to change. Any price and availability information displayed on Amazon at the time of purchase will apply.

