
wordpress
Articles in our magazine for wordpress:
How to install WordPress via the CLI?
Install WordPress without a control panel? It is definitely possible. We have briefly outlined the way here.
List of commands for wordpress:
-
wordpress:cli:config:create Create basic `wpconfig` file (assuming database on `localhost`).$ wp config create --dbname=${dbname} --dbuser=${dbuser} --dbpass=${dbpass}try on your machineexplain this command
-
wordpress:cli:database:replace Replace all instances of a string in the database.$ wp search-replace ${old_string} ${new_string}try on your machineexplain this command
-
wordpress:cli:import:xwr Import the contents of a WordPress Extended RSS (WXR) file.$ wp import ${filename-xml}try on your machineexplain this command
-
wordpress:cli:information Print information about the operating system, shell, PHP, and WP-CLI (`wp`) installation.$ wp --infotry on your machineexplain this command
-
wordpress:cli:install Install the WordPress CLI tool.$ curl -O https://raw.githubusercontent.com/wp-cli/builds/gh-pages/phar/wp-cli.phar
$ chmod +x wp-cli.phar
$ sudo mv wp-cli.phar ${dir_to_install}try on your machineexplain this command -
wordpress:cli:plugins:install-and-activate Install and activate a WordPress plugin.$ wp plugin install ${plugin} --activatetry on your machineexplain this command
-
wordpress:config:file-permissions Set the correct file permission$ chmod -R 755 wp-content/try on your machineexplain this command
-
wordpress:database:create Create the database for the WordPress installation$ mysql -e "CREATE DATABASE ${database_name};" ${password};try on your machineexplain this command
-
wordpress:database:user:create Create the user (with permissions) a the WordPress installation$ mysql -e "CREATE USER '${username}'@'localhost' IDENTIFIED BY '${password}';GRANT ALL PRIVILEGES ON *.* TO '${username}'@'localhost' WITH GRANT OPTION;FLUSH PRIVILEGES;"try on your machineexplain this command
-
wordpress:download:latest Download the latest version of WordPress$ wget https://wordpress.org/latest.ziptry on your machineexplain this command
-
wordpress:security:attack:password Execute a password guessing attack on a WordPress website.$ wpscan --url ${url} --usernames ${username-or-path-to-usernames-txt} --passwords ${path-to-passwords-txt} threads ${nummer-of-threads}try on your machineexplain this command
-
wordpress:security:scan:website Scan a WordPress website.$ wpscan --url ${url}try on your machineexplain this command
-
wordpress:security:scan:website:with-proxy Scan a WordPress website through a proxy.$ wpscan --url ${url} --proxy ${protocol:--ip:port} --proxy-auth ${username:password}try on your machineexplain this command
-
wordpress:tldr:0b155 wordpress: Execute a password guessing attack on a WordPress website.$ wpscan --url ${url} --usernames ${username|path-to-usernames-txt} --passwords ${path-to-passwords-txt} threads ${20}try on your machineexplain this command
-
wordpress:versions:install Download an old version of WordPress X.X.X using WP-CLI$ wp core download --version=${version}try on your machineexplain this command