Before installing Anne Chat, ensure you have:
- Web Server: Apache or Nginx with PHP 8.0+ support
- Database: MySQL 8.0+ or MariaDB 10.3+
- PHP Extensions:
- PDO with MySQL driver
- OpenSSL
- mbstring
- cURL
- GD (for image processing)
- json
- filter
- hash
- Composer: PHP package manager (for dependencies)
Upload all project files to your web server's public directory:
- For cPanel:
public_html/ - For Plesk:
httpdocs/ - For Apache:
htdocs/orwww/
Via SSH or terminal:
cd /path/to/anne
composer installOr if you don't have SSH access, ensure vendor/ directory is uploaded with all dependencies.
chmod 755 public_html
chmod 644 public_html/*.php
chmod 755 public_html/api
chmod 644 public_html/api/*.php
chmod 755 public_html/uploads
chmod 777 public_html/uploads/profiles
chmod 600 .env (after creation)- Log into your hosting control panel (cPanel/Plesk)
- Go to MySQL Databases
- Create a new database (e.g.,
anne_chat) - Create a database user and assign all privileges
- Note down the database credentials
- Navigate to
http://yourdomain.com/install.php - Follow the installation steps:
- Step 1: Welcome screen
- Step 2: Enter database credentials
- Step 3: Configure application settings and SMTP
- Step 4: Installation complete
For email verification to work, configure SMTP settings:
Gmail Example:
- SMTP Host:
smtp.gmail.com - SMTP Port:
587 - SMTP User: Your Gmail address
- SMTP Password: App-specific password (not your regular password)
Other Providers:
- Check your email provider's SMTP settings
- Common ports: 587 (TLS), 465 (SSL)
After successful installation:
- Delete or rename
install.phpfile - Verify
.envfile has 600 permissions - Test login with default admin account
- Change admin password immediately
Admin Account:
- Username:
admin - Password:
admin123
- Delete
install.php - Change admin password
- Test user registration
- Test email verification
- Test guest login
- Test messaging functionality
- Configure SSL/HTTPS
- Set up regular backups
- Verify database credentials in
.env - Check database user has proper permissions
- Ensure database exists
- Verify SMTP credentials
- Check firewall allows SMTP ports
- Test with different email provider
- Check spam folder
- Verify file permissions are set correctly
- Check uploads directory is writable (777)
- Ensure .env file is readable (600)
- Check PHP session directory is writable
- Verify session configuration in php.ini
- Clear browser cookies and try again
For detailed documentation, refer to:
Anne_Complete_System_Architecture.mdAnne_Developer_Guidelines.mdREADME.md