🔧

ChatApp Installer & Debugger

Automatically detects and fixes all issues with your ChatApp installation

🎉 All checks passed! Your ChatApp is ready. → Go to Register
37
✅ Passed
0
❌ Failed
2
⚠️ Warnings

Quick Fix Actions

Re-Run All Checks Go to Register Go to Login

System Check Results

PHP Version
PHP 7.4.33 ✅
PHP Extension: mysqli
mysqli loaded ✅
PHP Extension: session
session loaded ✅
PHP Extension: json
json loaded ✅
PHP Extension: fileinfo
fileinfo loaded ✅
PHP Extension: mbstring
mbstring loaded ✅
PHP Sessions
Sessions working ✅
Directory: uploads
uploads/ exists & writable ✅
Directory: uploads/avatars
uploads/avatars/ exists & writable ✅
Directory: uploads/images
uploads/images/ exists & writable ✅
Directory: uploads/files
uploads/files/ exists & writable ✅
Directory: uploads/voice
uploads/voice/ exists & writable ✅
PHP File Uploads
File uploads enabled ✅
Upload Max Filesize
upload_max_filesize = 50M, post_max_size = 60M
config.php exists
config.php found ✅
DB credentials in config.php
DB: worldsmmpanelus_smm, User: worldsmmpanelus_smm ✅
Database Connection
Connected to 'worldsmmpanelus_smm' ✅
Database Tables
All tables exist ✅
Table Columns
All columns correct ✅
Default Rooms
7 rooms in database ✅
Registered Users
4 user(s) registered
File: config.php
config.php ✅
File: login.php
login.php ✅
File: register.php
register.php ✅
File: logout.php
logout.php ✅
File: dashboard.php
dashboard.php ✅
File: profile.php
profile.php ✅
File: send_message.php
send_message.php ✅
!
File: fetch_messages.php
fetch_messages.php is MISSING from public_html
!
File: fetch_notifications.php
fetch_notifications.php is MISSING from public_html
File: mark_read.php
mark_read.php ✅
File: create_room.php
create_room.php ✅
File: get_users.php
get_users.php ✅
File: update_status.php
update_status.php ✅
File: voice_message.php
voice_message.php ✅
File: react_message.php
react_message.php ✅
Password Hashing
password_hash() & password_verify() work ✅
Registration DB Insert Test
Test INSERT/DELETE on users table works ✅
Avatar Upload Write Test
Can write to uploads/avatars/ ✅

Edit config.php (Database Credentials)

Fill in your cPanel MySQL database details below and click Save. Find these in cPanel → MySQL Databases.

Manual SQL Setup

If the auto-install above fails, copy this SQL and run it manually in cPanel → phpMyAdmin → SQL tab.

-- Run this in phpMyAdmin CREATE DATABASE IF NOT EXISTS chatdb CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci; USE chatdb; CREATE TABLE IF NOT EXISTS users ( id INT AUTO_INCREMENT PRIMARY KEY, username VARCHAR(50) UNIQUE NOT NULL, email VARCHAR(100) UNIQUE NOT NULL, password VARCHAR(255) NOT NULL, avatar VARCHAR(255) DEFAULT 'default.png', bio TEXT, status_text VARCHAR(100) DEFAULT 'Hey there! I am using ChatApp', last_seen TIMESTAMP DEFAULT CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP, is_online TINYINT(1) DEFAULT 0, created_at TIMESTAMP DEFAULT CURRENT_TIMESTAMP ) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4; CREATE TABLE IF NOT EXISTS rooms ( id INT AUTO_INCREMENT PRIMARY KEY, name VARCHAR(100) NOT NULL, description VARCHAR(255), icon VARCHAR(20) DEFAULT '💬', created_by INT DEFAULT NULL, created_at TIMESTAMP DEFAULT CURRENT_TIMESTAMP ) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4; CREATE TABLE IF NOT EXISTS group_messages ( id INT AUTO_INCREMENT PRIMARY KEY, room_id INT, user_id INT, message TEXT, file_path VARCHAR(255) DEFAULT NULL, file_type VARCHAR(50) DEFAULT NULL, created_at TIMESTAMP DEFAULT CURRENT_TIMESTAMP, FOREIGN KEY (room_id) REFERENCES rooms(id) ON DELETE CASCADE, FOREIGN KEY (user_id) REFERENCES users(id) ON DELETE CASCADE ) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4; CREATE TABLE IF NOT EXISTS private_messages ( id INT AUTO_INCREMENT PRIMARY KEY, sender_id INT, receiver_id INT, message TEXT, file_path VARCHAR(255) DEFAULT NULL, file_type VARCHAR(50) DEFAULT NULL, is_read TINYINT(1) DEFAULT 0, created_at TIMESTAMP DEFAULT CURRENT_TIMESTAMP, FOREIGN KEY (sender_id) REFERENCES users(id) ON DELETE CASCADE, FOREIGN KEY (receiver_id) REFERENCES users(id) ON DELETE CASCADE ) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4; CREATE TABLE IF NOT EXISTS message_reactions ( id INT AUTO_INCREMENT PRIMARY KEY, message_id INT NOT NULL, msg_type ENUM('group','private') NOT NULL, user_id INT NOT NULL, reaction VARCHAR(20) NOT NULL, created_at TIMESTAMP DEFAULT CURRENT_TIMESTAMP, UNIQUE KEY uniq_react (message_id, msg_type, user_id), FOREIGN KEY (user_id) REFERENCES users(id) ON DELETE CASCADE ) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4; CREATE TABLE IF NOT EXISTS notifications ( id INT AUTO_INCREMENT PRIMARY KEY, user_id INT, from_user_id INT, message VARCHAR(255), type VARCHAR(50) DEFAULT 'message', is_read TINYINT(1) DEFAULT 0, created_at TIMESTAMP DEFAULT CURRENT_TIMESTAMP, FOREIGN KEY (user_id) REFERENCES users(id) ON DELETE CASCADE, FOREIGN KEY (from_user_id) REFERENCES users(id) ON DELETE CASCADE ) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4; INSERT IGNORE INTO rooms (name,description,icon,created_by) VALUES ('General','General chat for everyone','🌍',NULL), ('Gaming','Talk about games','🎮',NULL), ('Music','Share your favourite music','🎵',NULL), ('Tech','Technology discussions','💻',NULL), ('Random','Random stuff','🎲',NULL);

cPanel Setup Guide

1
Create Database
cPanel → MySQL Databases → Create New Database → e.g. chatdb
2
Create DB User
MySQL Databases → Create New User with a strong password
3
Add User to DB
MySQL Databases → Add User to Database → All Privileges
4
Update config.php
Use the form above to save your DB credentials
5
Install Tables
Click "Install / Fix Database Tables" above
6
Create Folders
Click "Create / Fix Upload Folders" above — or create manually
7
Upload Files
Upload ALL .php files to public_html via File Manager or FTP
8
Register
Visit yoursite.com/register.php and create your account
9
Delete install.php
Remove this file after setup for security!

Server Information

PHP Version 7.4.33
Server Software LiteSpeed
Document Root /home/worldsmmpanelus/public_html
Script Path /home/worldsmmpanelus/public_html/install.php
Max Upload Size 50M
Max POST Size 60M
Max Exec Time 300s
Memory Limit 128M
Display Errors OFF
Session Save Path /var/cpanel/php/sessions/ea-php74
OS Linux
SECURITY WARNING: Delete install.php from your server after setup is complete! Anyone who can access this file can see your database credentials and server info.