Hello guys, Would you like to help me install wp in a subdirectory folder on CentOS, using cPanel?
Droplet: cPanel & WHM® 86.0.16 on CentOS 7.6
What I want: to install wp on a subdirectory: test.com/articles/ ,where test.com is already an installed wordpress.
What I do not want: a subdomain like articles.test.com
Thank you in advance.
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!
Hi @alex441659ee6dd,
You can do that with a few simple steps.
You’ll need to create the subdirectory.
Download the wordpress files from the WordPress website itself, you can do that by clicking on this link - WordPress Download . Another possible way is for you to SSH to your server
ssh root@YourDropletIP
Then enter the newly created directory articles like so
cd /path/to/articles/folder
Remember to change the path to the actual one!
Once in, execute the following command
wget https://wordpress.org/latest.zip
This will directly download the wordpress zip file in to your folder.
unzip latest.zip
This will unzip the file in the directory it’s in.
You’ll need to create a database for your WordPress website. To do that, go to your cPanel --> MySQL Wizard and create a MySQL with a Username attached to it.
Open your website https://test.com/articles/ and follow the installation process.
That’s it, you’ll now have a WordPress installation in your subdirectory.
Regards, KDSys
Hello, @alex441659ee6dd
With cPanel/WHM you can also integrate auto-install and auto-upgrade plugins for WordPress and many other CMSs. You can use Softaculous, Instalatron, Cloudron and any other plugin that has integration for cPanel/WHM
Using a plugin can save you time when you need to quickly deploy a WordPress installation on a test subdomain just like in your case. Plugins like that also have tons of apps that you can quickly install and update.
Regards, Alex
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.