jaroslawzielinski / wordpress4warden
Wordpress 4.x Warden project
Fund package maintenance!
By Me A Coffee
Installs: 49
Dependents: 0
Suggesters: 0
Security: 0
Stars: 0
Watchers: 1
Forks: 0
Open Issues: 0
Language:Shell
Type:project
Requires
- vlucas/phpdotenv: ^5.6
README
Wordpress 4.x Warden project
How to use shell commands
in packagist
cd YourProject
composer require --dev jaroslawzielinski/wordpress4warden
sh vendor/jaroslawzielinski/wordpress4warden/setup.sh
cp .env.dist .env
make init
make wordpress-install
delete file wp-config.php
run your url and setup wordpress. Copy all of the secret values from new created wp-config.php
to .env file after successful installation.
and finally
make docker-down init
If encounter any problem with database:
Connect to MySQL (via localhost) after
mysql -uroot -p
If the MySQL server is running in Kubernetes (K8s) and being accessed via a NodePort
kubectl exec -it [pod-name] -- /bin/bash mysql -uroot -p
Create user
CREATE USER 'user'@'%' IDENTIFIED BY 'password';
Grant permissions
GRANT ALL PRIVILEGES ON *.* TO 'user'@'%' WITH GRANT OPTION;
Flush privileges
FLUSH PRIVILEGES;
Enjoy Your Wordpress World!