PlayTube is a video sharing & streaming PHP Script. It is the best way to start your own video sharing website like YouTube! Our platform is fast, secure, and it will be regularly updated. PlayTube fully supports native mobile apps, thanks to our advanced API system!
- Video sharing and streaming
- Native mobile app support
- Regular updates
- Secure and fast
- PHP 7.1 or Higher
- MySQLi
- GD Library PHP extension
- mbstring PHP extension
- calendar PHP extension
- shell_exec PHP function
- cURL + allow_url_fopen enabled
Follow the steps below to set up your site:
-
Unzip the downloaded package and open the
/Script
folder to find all the script files. You will need to upload these files to your hosting web server using FTP or localhost in order to use it on your website. -
The folder structure below should be uploaded to your website or localhost root directory:
-
You should upload all the files.
-
Once you are done uploading, open your browser (Google Chrome is recommended).
-
Go to
http://www.YOURSITE.com/install
-
Agree to the Terms of Use then click Next.
-
Important! Before we start the installation, please make sure you have the following installed on your server:
-
On the second page, make sure to fill in the required data:
- Purchase Code - Envato purchase code. What is this?
- SQL Host name - MySQL host name, e.g: localhost
- SQL Username - MySQL username.
- SQL Password - MySQL user password.
- SQL Database - MySQL database name.
- Site URL - Your Website URL, examples:
https://siteurl.com
https://www.siteurl.com
https://siteurl.com
https://subdomain.siteurl.com
http://localhost
https://siteurl.com/subfolder
- Site Name - Your site name, max 32 characters.
- Site Title - Your site title, max 100 characters.
- Site E-mail - Your site email, e.g: [email protected], Gmail or Hotmail is not supported. It should be one of your server's emails.
- Admin Username - Choose your admin username.
- Admin Password - Choose your admin password.
-
Once you have entered the information, please click the install button and wait for a while, the installation process may take up to 5 minutes.
-
We are ready to go!
If your server is using Nginx, please follow the steps below:
- Open your server's root
nginx.conf
file, most of the time it's located in:/etc/nginx/nginx.conf
- Open the home directory of the script, you should be able to find this file
nginx.conf
. - Open the located file, and copy its content to your root
nginx.conf
file:/etc/nginx/nginx.conf
- If you find it difficult to do, please contact your hosting provider, and they will do it for you easily.
Important! After the installation is completed, you have to set the cronjob. Please use the command below and add it to your server's cronjob.
- Open a Linux terminal or login through SSH.
- Run:
crontab -e
- Add this code to the list:
*/15 * * * * php -f {PATH_TO_SCRIPT_FROM_ROOT}/cronjob.php > /dev/null 2>&1
.- Replace
{PATH_TO_SCRIPT_FROM_ROOT}
with the full path to the file, e.g:/home/playtube/public_html/cronjob.php
- Replace
- Save and exit.
If you are using cPanel, please follow these steps and replace the file name with cronjob.php
, and make sure the cronjob runs once every 15 minutes.
v3.1.1
Here are some screenshots of the platform: