CineTotal is a lightweight movie and TV series website built with PHP and MySQL.
It is designed for shared hosting and simple PHP hosting environments while providing a responsive frontend, movie/series management, external watch and download links, scheduling, SEO settings, and an admin dashboard.
- Add and manage movies
- Add and manage TV series
- Dedicated title pages
- Original title
- Release year and release date
- Synopsis
- Poster and backdrop images
- Genres
- Languages
- Countries
- Runtime
- Ratings
- Rating provider
- Quality badges
- Director / Creator
- Writers
- Main cast
- IMDb ID
- Metadata source URL
- YouTube trailers
Add multiple external watch links for each title.
Watch buttons open the configured external page instead of hosting the video directly on CineTotal.
Multiple download links can be added for different:
- Servers
- Qualities
- Languages
- File sizes
- Video formats
- Audio formats
Examples:
480p
720p
1080p
2160p / 4K
WEB-DL
WEBRip
BluRay
HEVC
10bit HEVC
Multi Audio
CineTotal can organize titles into collections such as:
- Movies
- TV Series
- Anime
- Superhero
- Marvel
- DC
- Featured titles
- Recently added content
- Movie and TV collections
- Responsive content cards
Search movies and TV series directly from the website.
Content can be:
- Draft
- Published
- Scheduled
Scheduled titles can automatically become available according to the configured publication time.
The administration area provides management for:
- Movies
- TV Series
- Watch links
- Download links
- Featured content
- Publication status
- Scheduled publishing
- Moderators
- Website settings
- Logo
- Favicon
- Website colors
- Social links
- Advertisements
Download link clicks can be tracked to help understand which links and qualities visitors use.
CineTotal is designed to work on:
- Desktop
- Laptop
- Tablet
- Mobile
CineTotal uses:
- PHP
- MySQL / MariaDB
- HTML5
- CSS3
- Vanilla JavaScript
- Apache
.htaccess- PDO
No Node.js build process is required for the standard installation.
The following are required to run CineTotal.
| Component | Required Version | Recommended |
|---|---|---|
| PHP | 8.0+ | PHP 8.2+ |
| MySQL | 5.7+ | MySQL 8.x |
| MariaDB | 10.3+ | MariaDB 10.6+ |
| Apache | 2.4+ | Latest stable |
| PDO | Required | Enabled |
| PDO MySQL | Required | Enabled |
| JSON | Required | Enabled |
.htaccess |
Required | Enabled |
mod_rewrite |
Required | Enabled |
You need either MySQL or MariaDB, not both.
The server should have:
PDO
pdo_mysql
json
These extensions are recommended:
curl
mbstring
openssl
fileinfo
cURL is especially useful if external movie/TV metadata APIs are added.
The recommended environment is:
Apache 2.4+
PHP 8.2+
MySQL 8.x or MariaDB 10.6+
HTTPS
mod_rewrite enabled
.htaccess enabled
CineTotal is intended primarily for Apache-based hosting.
CineTotal can run on most PHP/MySQL hosting environments, including:
- Shared hosting
- cPanel hosting
- DirectAdmin hosting
- InfinityFree-style PHP hosting
- VPS
- Dedicated servers
- Local Apache development environments
The hosting provider must support PHP and MySQL/MariaDB.
cine_site/
β
βββ app/
β βββ Application files
β
βββ assets/
β βββ CSS
β βββ JavaScript
β βββ Other frontend assets
β
βββ media/
β βββ Site media/uploads
β
βββ .gitignore
βββ .htaccess
βββ README.md
βββ config.example.php
βββ config.php
βββ index.php
βββ robots.txt
The exact contents of individual folders may change as CineTotal develops.
Clone CineTotal from GitHub:
git clone https://github.com/aniscopearafat/cine_site.gitEnter the project directory:
cd cine_siteThe repository contains:
config.example.php
Copy it to:
config.php
On macOS/Linux:
cp config.example.php config.phpYou can also manually duplicate config.example.php and rename the copy to:
config.php
Open:
config.php
and configure your environment.
Typical database configuration contains values similar to:
<?php
return [
'db_host' => 'localhost',
'db_name' => 'your_database_name',
'db_user' => 'your_database_user',
'db_pass' => 'your_database_password'
];Use the actual structure provided by the project's config.example.php.
Do not replace configuration keys unless the application expects them.
Create a MySQL or MariaDB database from your hosting control panel.
You normally need:
Database Host
Database Name
Database Username
Database Password
A common database host is:
localhost
However, some hosting providers use a different database hostname.
Always use the hostname provided by your hosting company.
config.php may contain:
- Database passwords
- API credentials
- Private settings
- Other sensitive information
Therefore:
config.php
should never be committed publicly to GitHub.
Make sure .gitignore contains:
config.php
.env
.DS_Store
*.logYou can verify whether Git is ignoring the file with:
git statusCineTotal uses .htaccess for clean URLs and routing.
Apache must allow:
mod_rewrite
and .htaccess overrides.
For VPS/server installations, your Apache configuration may require:
AllowOverride AllThen enable rewrite support:
sudo a2enmod rewriteRestart Apache:
sudo systemctl restart apache2These commands normally apply to Debian/Ubuntu-based servers and are not required on standard shared hosting.
For shared hosting, upload the CineTotal files to your website's public directory.
Common directory names include:
htdocs/
or:
public_html/
Example:
public_html/
βββ app/
βββ assets/
βββ media/
βββ .htaccess
βββ config.php
βββ index.php
βββ robots.txt
Do not upload the .git directory to normal production hosting unless you specifically need Git deployment.
Typical permissions are:
644
755
If CineTotal needs to write to the media directory, that directory must be writable by PHP.
Avoid using:
777
unless your hosting provider specifically requires it.
After uploading the files and configuring the database, open your website domain.
Example:
https://example.com
Clean title URLs can look similar to:
https://example.com/title/movie-name
HTTPS is strongly recommended for production websites.
A production CineTotal installation should use:
https://
instead of:
http://
Most hosting providers offer free SSL certificates through services such as Let's Encrypt.
Content can contain information such as:
Title
Slug
Original Title
Release Year
Synopsis
Poster URL
Backdrop URL
Genres
Languages
Countries
Release Date
Runtime
Rating
Rating Provider
Quality
Director / Creator
Writers
Main Cast
IMDb ID
Metadata Source
YouTube Trailer
SEO Title
Meta Description
Watch links are external links.
Example structure:
Server: Watch Server 1
URL: https://example.com/watch/...
You can add multiple watch servers to the same title.
Each movie or series can contain multiple download options.
For example:
Server: Server 1
Quality: 480p
Size: 450 MB
Language: English
URL: https://example.com/file
Another link:
Server: Server 2
Quality: 1080p
Size: 2.1 GB
Language: Multi Audio
URL: https://example.com/file
CineTotal supports YouTube trailer URLs.
Example:
https://www.youtube.com/watch?v=VIDEO_ID
The site can display the trailer separately from external watch/download buttons.
Movie and TV pages can use:
- Poster image
- Backdrop image
- Website logo
- Favicon
Use HTTPS image URLs whenever possible.
Example:
https://example.com/poster.jpg
CineTotal supports SEO information for individual titles.
Recommended fields include:
SEO Title
Meta Description
Slug
Poster
Synopsis
The project also includes:
robots.txt
for search-engine crawler configuration.
The website should work with current versions of:
- Google Chrome
- Microsoft Edge
- Mozilla Firefox
- Safari
- Mobile Chrome
- Mobile Safari
Older browsers may not support every visual feature.
You can run CineTotal locally using environments such as:
- XAMPP
- MAMP
- LAMP
- Local Apache + PHP + MySQL
For macOS, a setup using MAMP or another local Apache/PHP stack can be used.
Place the project inside the appropriate web directory and configure config.php with your local database credentials.
Check the repository status:
git statusAdd changes:
git add .Commit:
git commit -m "Update CineTotal"Push to GitHub:
git push origin mainIf you cloned the repository and want the newest version:
git pull origin mainIf you modified production files manually, back them up before pulling changes.
Repository:
https://github.com/aniscopearafat/cine_site
Clone URL:
https://github.com/aniscopearafat/cine_site.git
For production use:
- Keep PHP updated.
- Use HTTPS.
- Use strong admin passwords.
- Never expose database credentials.
- Keep
config.phpout of Git. - Validate user input.
- Escape output where necessary.
- Restrict admin access.
- Keep database backups.
- Keep site files backed up.
- Do not expose unnecessary error/debug information publicly.
- Only use trusted external APIs.
- Review external watch/download URLs before publishing.
Regularly back up both:
app/
assets/
media/
config.php
.htaccess
Export your MySQL/MariaDB database using:
- phpMyAdmin
- cPanel database tools
- MySQL command-line tools
- Your hosting provider's backup system
Your database and uploaded media should both be backed up.
CineTotal can be extended to retrieve metadata from movie and television APIs.
Possible metadata includes:
- Title
- Overview
- Poster
- Backdrop
- Release date
- Genres
- Cast
- Rating
API credentials should never be committed directly to the public repository.
Store credentials in a private configuration file such as:
config.php
or an environment configuration system.
Check that:
.htaccessexists- Apache
mod_rewriteis enabled .htaccessoverrides are allowed
Check:
Database hostname
Database name
Database username
Database password
Also make sure the database user has permission to access the database.
Enable PHP error logging temporarily in your development environment and check the PHP error log.
Avoid displaying detailed PHP errors publicly on a production website.
Verify that:
- The image URL is valid
- HTTPS is being used
- The remote image host allows external loading
- The image has not been removed
Check:
- PHP timezone
- Server timezone
- Site timezone
- Database stored time
The application and hosting environment should use a consistent timezone strategy.
CineTotal is a website application for organizing movie and television information and managing external links.
The repository itself does not include copyrighted movie or television video files.
Website owners and administrators are responsible for ensuring that:
- Content they publish is legally permitted.
- Images and metadata are used according to their respective licenses or terms.
- External watch/download links comply with applicable laws.
- Third-party APIs are used according to their terms of service.
The CineTotal software does not grant rights to distribute copyrighted media.
This project is maintained by the repository owner.
Unless a separate LICENSE file is included in the repository, no additional permission for redistribution, modification, or commercial distribution should be assumed.
Project: CineTotal
Repository: aniscopearafat/cine_site
Platform: PHP / MySQL
Status: Active Development
A simple, lightweight and responsive movie & TV series platform built for easy management and PHP hosting.