WordPress

Step how to install WordPress using putty

cd public_html/

wget https://wordpress.org/latest.tar.gz

tar -xzvf latest.tar.gz –strip-components=1

cp -av wp-config-sample.php wp-config.php

uapi Mysql list_databases | grep -oP ‘(?<=database:\s).+’

uapi Mysql create_database name=cpaneluser_whatever

uapi Mysql list_users | grep -oP ‘(?<=\buser:\s).+’

echo “$(< /dev/urandom tr -dc ‘_A-Z-a-z-0-9’|head -c${1-12};)”

‘Password’

uapi Mysql create_user name=cpaneluser_whatever password=’password’

uapi Mysql set_privileges_on_database database=cpaneluser_whatever user=cpaneluser_whatever privileges=”ALL PRIVILEGES”

vim wp-config.php

ins key to enter insert mode and make changes (db user, name, and password)

esc key to exit insert mode

:w to save
:q to quit

Go to website/domain
install wordpress

1 thought on “WordPress”

  1. “Thanks for sharing this, Prince! I really loved the point about WordPress installation. It gave me a lot to think about regarding installation using “putty”. Looking forward to reading more!”

Leave a Reply

Your email address will not be published. Required fields are marked *