Skip to content

a-sauvaget/wp-install-custom

Repository files navigation

wp-install-custom

Prerequisites

How to use

  1. Run composer install to download WordPress, plugins and themes.
  2. Create a database with a dedicated user.
  3. Fill the wp-config.php file (copy of wp-config-sample.php) with:
    1. Database informations
    2. Salt keys
    3. Homepage URL (constant WP_HOME)
  4. Change right of the current directory:
sudo chown -R $USER:www-data .
sudo find . -type f -exec chmod 664 {} +
sudo find . -type d -exec chmod 775 {} +
sudo chmod g-w .htaccess

5.. Install WordPress with wp core install --prompt (more details)

Useful commands

WP CLI

  • Install a new language: wp language core install fr_FR
  • Activate a language: wp site switch-language fr_FR
  • Install latest version and activate a plugin: wp plugin install bbpress --activate
  • Update WordPress: wp core update

Others

  • Test a PHP file with PHPCS: composer run test ./index.php

About

WordPress sutom install using Composer

Topics

Resources

Stars

Watchers

Forks

Languages