So far I’ve been able to set up a Kubernetes cluster with the Wordpress Kubernetes app. It comes with a load balancer, droplet pool, and some volumes. After getting it set up, I was able to switch to the wordpress namespace with kubectl.
kubectl config set-context --current --namespace=wordpress
Then I executed bash on the wordpress pod.
kubectl exec -it wordpress-pod-name -- /bin/bash
So I did some exploring and found that the bitnami installation for wordpress is in /opt/bitnami and /bitnami has wp-content in it for some reason. On bitnami’s documentation, you can use a script called ctlscript.sh to restart the Apache and PHP services.
Strangely enough, this script does’t exist and I can’t find it. I tried restarting Apache and PHP the usual ways and those didn’t work either. I wanted to start by installing either ImageMagick or GD for PHP, but without being able to restart the services I’m stuck.
This textbox defaults to using Markdown to format your answer.
You can type !ref in this text area to quickly search our full set of tutorials, documentation & marketplace offerings and insert the link!
Hi, I recommend simply doing one of the following to get your required PHP modules installed
1). automated option
a) locally create php.ini which has all PHP modules you require
b) add a line to the Dockerfile to copy the php.ini into the appropriate directory within your running container
c) kubectl apply -f your_resource_file.yml
2). manual option
kubectl exec -it wordpress-pod-name -- sudo pecl install extension1 extension2 ... extensionN
In general, you should be able to restart any process. For example, one can restart Apache by doing something like the following depending on your setup:
kubectl exec -it wordpress-pod-name -- sudo apachectl graceful
Well, I wish that the information assists you and best of luck.
–
Think different and code well,
-Conrad
Get paid to write technical tutorials and select a tech-focused charity to receive a matching donation.
Full documentation for every DigitalOcean product.
The Wave has everything you need to know about building a business, from raising funding to marketing your product.
Stay up to date by signing up for DigitalOcean’s Infrastructure as a Newsletter.
New accounts only. By submitting your email you agree to our Privacy Policy
Scale up as you grow — whether you're running one virtual machine or ten thousand.
Sign up and get $200 in credit for your first 60 days with DigitalOcean.*
*This promotional offer applies to new accounts only.