Requirements
- php 8.3
- composer
- mysql
- wp-cli
Preparation
Activate the php-mysql extension by uncommenting it in php.ini
.
Install the wp-cli dotenv plugin:
Create a new project from the bedrock template:
Initialize the .env
file:
Now edit the .env
file, add database info and basic site info like WP_HOME
.
Next, create a database and user and grant privileges:
Go to the folder web/app/themes
and install the Sage theme, then also install Acorn:
Install the theme dependencies and build the assets:
Edit the file bud.config.js
and update the local url to localhost:8080
Installation
Start the built-in php webserver from inside the web
directory:
Go open http://localhost:8080 in your browser and install Wordpress.
Now activate the Sage theme in the UI, then finish the acorn configuration by running this in the folder of your theme: