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/ ✅
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);