Question

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

This textbox defaults to using Markdown to format your answer.

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

Sign In or Sign Up to 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.

Want to learn more? Join the DigitalOcean Community!

Join our DigitalOcean community of over a million developers for free! Get help and share knowledge in Q&A, subscribe to topics of interest, and get courses and tools that will help you grow as a developer and scale your project or business.

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.