- Run
composer install
to download WordPress, plugins and themes. - Create a database with a dedicated user.
- Fill the
wp-config.php
file (copy ofwp-config-sample.php
) with:- Database informations
- Salt keys
- Homepage URL (constant
WP_HOME
)
- 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)
- 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
- Test a PHP file with PHPCS:
composer run test ./index.php