I have a droplet with Wordpress installed on it. catadordealfajores.com
Now I want to install another Wordpress on a subdomain. I have already set up Apache (catadordealfajores.com/tienda) but now I need to creat a database in order to install another Wordpress, am I right? But I can’t find any tutorials that say how to do that without using Cpael, I mean, just with terminal commands
Thanks in advance… And excuse my bad English
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!
Hey @facundocalabro,
If you’re using Apache, you’ll need to create a new VirtualHost configuration for the new subdomain.
Before you start, make sure that you point the subdomain to your Droplet (using the DNS manager if you utilise DigitalOcean’s DNS manager, or using your domain name provider’s DNS manager).
DigitalOcean has a tutorial here on setting up VirtualHost configurations, but chances are you may already have one setup if you followed a separate tutorial to install Apache.
This tutorial was made for Debian 8, but you didn’t specify what distribution you’re on specifically. Most distributions will be similar, and the configuration itself will be pretty much identical regardless of distribution. However, the location of the files mentioned in that tutorial may change depending on distribution.
CentOS is here
Ubuntu is here
Simple search on DigitalOcean tutorial site yields these results, just incase I haven’t listed the distribution in this answer :)
From there – yes, make a new database within MySQL and make a new installation directory (ie. a root directory where you want the new subdomain to point to). Make sure you change the root directory in the VirtualHost configuration to match that, so that the web server will know how to propagate the results of the query when you access that subdomain.
Make sure you reload or restart your Apache web server so the configuration changes take place :)
– Dave.
Get paid to write technical tutorials and select a tech-focused charity to receive a matching donation.
Full documentation for every DigitalOcean product.
The Wave has everything you need to know about building a business, from raising funding to marketing your product.
Stay up to date by signing up for DigitalOcean’s Infrastructure as a Newsletter.
New accounts only. By submitting your email you agree to our Privacy Policy
Scale up as you grow — whether you're running one virtual machine or ten thousand.
Sign up and get $200 in credit for your first 60 days with DigitalOcean.*
*This promotional offer applies to new accounts only.