I also referenced the environment variables using getenv(‘’) method . But i got this error 'Mysql database must not be hardcoded in ‘wp-config.php’
The site also seemed to be working fine. Now I don’t know how to approach this task.
Any kind of suggestion is appreciated. @Inderpreet@rahul456@Ayman Plz do look into this and let me know where I went wrong.
After deploying both the frontend and backend and making changes in wp-config.php file, when I try to access the wordpress website it’s displaying php code in the browser.
Since I gave this task for the review. After consulting with our fellow kodekloud engineers ,I gave this another try with no change in the yaml file whatsoever. This time around it was a success. Please do look into this matter as half of the points have been unfairly deducted. @rahul456@Inderpreet
Hi @Inderpreet@rahul456, I have failed this task with validation message saying “Something is wrong in ‘MYSQL_ROOT_PASSWORD’ or ‘MYSQL_DATABASE’ or ‘MYSQL_USER’ or ‘MYSQL_PASSWORD’ in secretKeyRef key value” . And yet with these same secrets I was able to access the WordPress website. I need to know what’s exactly is the issue?
Below is how the environment variables were defined and it can’t find anything wrong.
@Salim Since you are getting the WP installation page so definitely something is wrong with your database, either you missed to import the DB dump or something since after setting up everything you should get the pre-built web page (like you can see in other screen shots).