Prerequisites
- Access to cPanel or H Panel
- A database SQL file (db.sql)
- Source code files for your software (Source code.zip)
- Database credentials
cPanel:
File Upload
- Log in to cPanel.
- Navigate to the File Manager.
- Go to the
public_html
directory (server web root). - Upload the source code file.
- If the upload fails, try reuploading.
- Once uploaded, extract the contents to the current folder. Database Setup
- In cPanel, create a new database named “dat_stream_f” (or your preferred name).
- Create a new database user.
- Assign the newly created user to the new database.
- Grant all privileges to this user for the database. Configuration
- Locate and edit the
.env
file in the extracted folder. - Update the following information:
- Website address
- Database name
- Database username
- Database password
- Save the changes to the
.env
file. Database Import - Access phpMyAdmin from cPanel.
- Select the newly created database.
- Click on the “Import” tab.
- Choose the database file to import.
- Click “Go” or “Execute” to import the database structure and data. Troubleshooting
If you encounter issues with file uploads or the website not loading correctly: - Check file permissions:
- Ensure the uploaded files have the correct read/write permissions.
- Increase file size limits:
- If large files fail to upload, you may need to increase the allowed file size in your server configuration.
- Clear browser cache:
- If changes are not reflecting, try clearing your browser cache or using an incognito/private browsing window.
- Check error logs:
- Review the server error logs for any specific error messages that can guide further troubleshooting.
H Panel
Step 1: Create a Database
- Navigate to the database section in your control panel.
- Click on “Create Database”.
- Enter a name for your database. It’s recommended to use the same name for both the database and username for simplicity.
- Create a strong password. Make sure to copy this password for later use.
- Click “Create” to finalize the database creation. Step 2: Import the Database
- Access phpMyAdmin through your control panel.
- Select the newly created database from the left sidebar.
- Click on the “Import” tab at the top of the page.
- Click “Choose File” and select your db.sql file.
- Click “Go” or “Execute” to start the import process.
Note: This may take some time due to the number of tables being created. Step 3: Upload and Extract Source Files - Navigate to the file manager in your control panel.
- Choose the directory where you want to install the software:
- If you want it accessible via your domain name, use the “public_html” folder.
- For this example, we’re using a subdirectory called “OTTstream”.
- Upload the “Source code.zip” file to your chosen directory.
- Once uploaded, select the zip file and click “Extract”. Step 4: Configure the Environment File
- Locate and open the .env file in your extracted directory.
- Update the following information:
- Set the URL to match where you’ve installed the software.
- Update the database name, username, and password to match what you created in Step 1.
- Save and close the .env file. Step 5: Verify Installation
- In your web browser, navigate to the URL where you installed the software.
- The software should now load successfully. Troubleshooting
- If the site doesn’t load, double-check your .env file configuration.
- Ensure all files were extracted properly from the zip archive.
- Verify that the database was imported successfully in phpMyAdmin.