Question

Can I Host PHP Script on Wordpress Droplet

Posted July 10, 2021 93 views
PHPWordPressSQLDigitalOcean Droplets

iam new in Digitalocean , i allready have a wordpress droplet and working great , and i have a php script need to install on same droplet , and i dont know where i can start , how to host script files how to make sub-domain for my php script , and how to creat new database with user , all these option cant found , so please ian here to found a good answer

These answers are provided by our Community. If you find them useful, show some love by clicking the heart. If you run into issues leave a comment, or add your own answer to help others.

×
Submit an Answer
1 answer

Hi @abdoreal2001,

In order to host another website on your Droplet, you’ll first need to create an Apache Vhost file. This vhost file basically tells your server which directory to be called once your domain/webiste is being loaded by a user. Here is a very good tutorial on how you can do so:

https://www.digitalocean.com/community/tutorials/how-to-set-up-apache-virtual-hosts-on-ubuntu-18-04

Please follow it through and let me know how it went.

by Lisa Tagliaferri
This tutorial will guide you through setting up multiple domains and websites using Apache virtual hosts on an Ubuntu 18.04 server. During this process, you’ll learn how to serve different content to different visitors depending on which domains they are requesting.