I want to install multiple WordPress

In Nginx virtual host configuration, MySQL server DB creation, download of WordPress source using wp-setup .

You can’t use wp-setup command with the user permission of ec2-user, so please su - first, then use the command.
The root password can be changed to execute sudo passwd.

For example, if you want to create a virtual host for example.com you can proceed as follows:

[ec2-user@ip-xxx-xxx-xxx-xxx ~]$ sudo su -
[root@ip-xxx-xxx-xxx-xxx ~]# wp-setup example.com
 MySQL DataBase: example_com
 MySQL User:     wp_xxxxxxxxxxxx
 MySQL Password: xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx

Success!! http://example.com/
... WordPress installed

[root@ip-xxx-xxx-xxx-xxx ~]#

The source of WordPress is located at /var/www/vhosts/{Virturl Host Domain}/.
If you create example.com like the above example, it will be /var/www/vhosts/example.com/.

It should be noted that wp-setup command is only the virtual host (such as the root domain and sub-domain), sub-directory (does not correspond to example.com/wordpress).

If you want to install a subdirectory.
Please see the following for more details:

Have more questions? Submit a request


Please sign in to leave a comment.
Powered by Zendesk