-
Configure Database:
- Edit
config/db.php
and replace the placeholders with your database credentials. here
- Edit
-
Import Database:
- Import the
database.sql
file into your database. You can find the file here.
- Import the
-
Enable FFMpeg for Thumbnail Preview:
- Ensure FFMpeg is enabled for generating previews of thumbnails.
-
Upload Movies or Series:
- Upload your movies or series to the
public/drive
folder. You can find this folder here.
- Upload your movies or series to the
-
Access Login Logs:
- Login logs can be viewed at https://www.xyz.com/logs.php, which will display user login times.
- Please upload files in MP4 format.
- If you upload files in MKV format, you can convert them using to MP4 using
convert.sh
bash script located in the home directory. This step is only applicable for VPS users with root permissions.
To give the required permissions to the bash scripts, follow these steps:
-
Open the directory containing
convert.sh
anddelete.sh
. -
Install FFMepg
sudo apt-get install ffmpeg
-
Run the following command:
sudo apt-get install dos2unix # Install dos2unix if not already installed
dos2unix convert.sh && dos2unix delete.sh
chmod +x convert.sh && chmod +x delete.sh
This command adds execute permissions to the scripts. if you face problem try to enter each seperatly
-
After running the command, you can execute the scripts with:
./convert.sh #convert MKV to MP4
or
./delete.sh # Delete MKV files after Convert
-
After converting files from MKV to MP4, run
delete.sh
to remove the MKV files.
(Edit URL Path in Convert.sh : root_directory="/home/ktmracing.site/public_html/public/drive" with your Server URL )