Hi Team,
as in the title the problem concerns “Configure LAMP server”
From all three APP servers, I have an output saying “App is able to connect to the database using user kodekloud_joy” (from index.php)
Below are the screenshots
I did this task in different ways.
It is known that each time I had to set different ports in STAPP[01 02 03] (once I had a 3003, once I had an 8085)
I even logged into LBR and there I manually tried to set the endpoints for the backend
It didn’t do anything - I always get an error that on STAPP01 website is not working.
Below is a snapshot of a recent job
And below is the task:
a. Install httpd, php and its dependencies on all app hosts.
b. Apache should serve on port 8085 within the apps.
c. Install/Configure MariaDB server on DB Server.
d. Create a database named kodekloud_db5 and create a database user named kodekloud_top identified as password <password>. Further make sure this newly created user is able to perform all operation on the database you created.
e. Finally you should be able to access the website on LBR link, by clicking on the App button on the top bar. You should see a message like App is able to connect to the database using user kodekloud_top
CREATE USER kodekloud_gem IDENTIFIED BY ‘password’;
CREATE DATABASE kodekloud_db1;
GRANT ALL privileges ON kodekloud_db1.* TO kodekloud_gem;
mysql -u kodekloud_gem -p kodekloud_db1;
I also have such a script, which is constantly querying LoadBalancer. And then I pressed “check”.
#!/bin/bash
while true;
do
curl http://stlb01 & echo -e "\n"
sleep 0.5
done
I have successfully pass the task, here is the difference in steps:
after install httpd and php on each app server, just change Listen 80 to Listen 8086 or what ever port is given, do not need the ip address before the port number.
And in db server, dont run this command: sudo mysql_secure_installation.
I guess the testing algorithm is mess up by the secure installation.
I welcome any questions.
Please help me understand why testing algorithm show this error?
When I click “App” button i see “App is able to connect to the database using user kodekloud_joy”.
I have been on this task for a number of days now. My configuration is as described in the solutions stated here. In changing the listening port I have attempted attachinging the ip address to as suggested by @unis_mwasik_shhk.
Could this be a result of the testing algorithm as stated by @kel_line?
Please detail what you have done and the output once running validation. You can’t just copy what has previously been done as attributes changes between task attempts.