Installing OTT Stream  on Linux-based PHP Server with cPanel/H Panel

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

  1. Log in to cPanel.
  2. Navigate to the File Manager.
  3. Go to the public_html directory (server web root).
  4. Upload the source code file.
  • If the upload fails, try reuploading.
  1. Once uploaded, extract the contents to the current folder. Database Setup
  2. In cPanel, create a new database named “dat_stream_f” (or your preferred name).
  3. Create a new database user.
  4. Assign the newly created user to the new database.
  5. Grant all privileges to this user for the database. Configuration
  6. Locate and edit the .env file in the extracted folder.
  7. Update the following information:
  • Website address
  • Database name
  • Database username
  • Database password
  1. Save the changes to the .env file. Database Import
  2. Access phpMyAdmin from cPanel.
  3. Select the newly created database.
  4. Click on the “Import” tab.
  5. Choose the database file to import.
  6. 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:
  7. Check file permissions:
  • Ensure the uploaded files have the correct read/write permissions.
  1. Increase file size limits:
  • If large files fail to upload, you may need to increase the allowed file size in your server configuration.
  1. Clear browser cache:
  • If changes are not reflecting, try clearing your browser cache or using an incognito/private browsing window.
  1. 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

  1. Navigate to the database section in your control panel.
  2. Click on “Create Database”.
  3. Enter a name for your database. It’s recommended to use the same name for both the database and username for simplicity.
  4. Create a strong password. Make sure to copy this password for later use.
  5. Click “Create” to finalize the database creation. Step 2: Import the Database
  6. Access phpMyAdmin through your control panel.
  7. Select the newly created database from the left sidebar.
  8. Click on the “Import” tab at the top of the page.
  9. Click “Choose File” and select your db.sql file.
  10. 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
  11. Navigate to the file manager in your control panel.
  12. 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”.
  1. Upload the “Source code.zip” file to your chosen directory.
  2. Once uploaded, select the zip file and click “Extract”. Step 4: Configure the Environment File
  3. Locate and open the .env file in your extracted directory.
  4. 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.
  1. Save and close the .env file. Step 5: Verify Installation
  2. In your web browser, navigate to the URL where you installed the software.
  3. 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.