How many wp-config.php files should I have on the Ubuntu Linux install?

I followed all the steps to install WordPress on my Linux install. I am using Ubuntu but it seems there are one to many wp-config. php files within the folder. Could this cause it not establish a connection with the database? Which on location is the correct one?
The locations they are found are: etc/wordpress/ wp-config usr/share-wordpress/ wp-config usr/share/wordpress/ wp-config-sample
Share solution ↓
Additional Information:
Link To Answer People are also looking for solutions of the problem: call to undefined function str_contains()
Didn't find the answer?
Our community is visited by hundreds of web development professionals every day. Ask your question and get a quick answer for free.
Similar questions
Find the answer in similar questions on our website.
Write quick answer
Do you know the answer to this question? Write a quick response to it. With your help, we will make our community stronger.