Command to Install Wordpress in Subdirectory


#1

I am new here, I want to know how to install wordpress on subdir
I have installing wp here

ee site create sub.example.com --wpsc

and want to install sub like this:

ee site create sub.example.com/sub --wpsc

How to do that?
Thanks before


#2

EasyEngine doesn’t create install wordpress on subdir

But you can do that manually
First you need to edit nginx config:

Then create a folder

  
mkdir -p /var/www/sub.example.com/htdocs/sub  
cd /var/www/sub.example.com/htdocs/sub  
wget -c wordpress.org/latest.tar.gz  
tar -zxvf latest.tar.gz  
mv wordpress/* .  
rm -rf wordpress  

You need to manually create a separate database for this wordpress


#3

Hi @adreaneva,

I hope your query is resolved. I am closing this support ticket for now.

Feel free to create a new support ticket if you have any queries further. :slight_smile:


#4