Can I Host PHP Script on Wordpress Droplet

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


Submit an answer
You can type!ref in this text area to quickly search our full set of tutorials, documentation & marketplace offerings and insert the link!

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.

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:

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