Fix 500 Server Error After Entering Database Details in AVMScript Installation
If you encounter a 500 Server Error after submitting your database details during the AVMScript installation process, it is likely due to incorrect database credentials. This guide will help you resolve the issue by resetting the database information in the .env
file.
Cause of the Issue
The error occurs when the database credentials provided during installation are incorrect, preventing AVMScript from connecting to the database. This results in a server error when the installation process attempts to proceed.
Steps to Fix the Issue
Follow the steps below to resolve the issue and restart the installation:
Step 1: Access Your Website Root Directory
- Use an FTP client (such as FileZilla) or your hosting provider’s File Manager to access your server.
- Navigate to the public_html directory or the root folder of your AVMScript installation.
Step 2: Locate the .env
File
- Look for the
.env
file in the root directory. - If you cannot see the file, ensure that hidden files are enabled in your cPanel File Manager. Hidden files may not be visible by default, so enable the "Show Hidden Files" option in the settings.
Step 3: Edit the .env
File
- Open the
.env
file using a text editor. - Find the following lines, which contain your database details:
DB_CONNECTION=mysql DB_HOST=localhost DB_PORT=3306 DB_DATABASE=your_database_name DB_USERNAME=your_database_username DB_PASSWORD=your_database_password
3.Remove the values for DB_DATABASE
, DB_USERNAME
, and DB_PASSWORD
, leaving them blank like this:
DB_CONNECTION=mysql DB_HOST=localhost DB_PORT=3306 DB_DATABASE= DB_USERNAME= DB_PASSWORD=
4.Save the changes.
Step 4: Restart the Installation
- Open your web browser and restart the installation process.
- Re-enter the correct database details.
- Proceed with the installation.