Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Where to edit environment variable in updated code of index.php #16

Open
deepak950 opened this issue Mar 8, 2024 · 2 comments
Open

Comments

@deepak950
Copy link

deepak950 commented Mar 8, 2024

index.php is updated to use environment variable to call the mysql creds. In which file It needs to edit, is it system ENV file ?

image

@deepak950 deepak950 changed the title Where to environment variable in updated code of index.php Where to edit environment variable in updated code of index.php Mar 8, 2024
@mobster1425
Copy link

i think you have to create your env file

@mobster1425
Copy link

the env should contain this = // $link = mysqli_connect('172.20.1.101', 'ecomuser', 'ecompassword', 'ecomdb');
// Fetch database connection details directly from environment variables
$dbHost = getenv('DB_HOST');
$dbUser = getenv('DB_USER');
$dbPassword = getenv('DB_PASSWORD');
$dbName = getenv('DB_NAME');

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants