– Create a new fcgi driven user in Linux system(in this case usrblog)
useradd -s /bin/bash -d /www/clients/ usrblog
passwd usrblog

– Install a Virtual host which uses suexec and fcgi in Apache/NginX
– Create a new database in MySQL (we will call it myblog)
– Create a new mysql user and assign the database(myblog) access and control to this user.
– Create web space(DocumentRoot) in system which will be owned by the system user usrblog

Continuing the installation using the wp_cli script
– Install the script as per:
curl -O
chmod +x wp-cli.phar
sudo mv wp-cli.phar /usr/local/bin/wp

Switch user to usrblog
su - usrblog
wp core download
wp core config --dbhost=dbhost --dbname=dbname --dbuser=username --dbpass=password
chmod 644 wp-config.php
wp core multisite-install --subdomains --title="Your Blog Title" --admin_name=wordpress_admin --admin_password=4Long&Strong1

The rest is done via the web administration site of the wordpress:
– Select: my site ==> Network Admin ==> Dashboard ==> Settings ==> Network Setup
Copy the rewrite and paste the presented rewrite rules into an new .htaccess file in the htdocs of the site.

%d bloggers like this: