Doteasy Tutorial - Scripting - Chat
phpMyChat: version 0.14.5
phpMyChat is an easy-to-install, easy-to-use multi-room chat based on PHP and a database, supporting MySQL, PostgreSQL, and ODBC. It supports some IRC-like commands, and has been translated to 33 different languages.


Installation Procedure 
Quick Tips 



The script can be downloaded from here.


The file that you will download is saved in .zip format; this is a compressed bundle containing the files in the distribution. Unzip this archive in a temporary directory on your computer using decompression software.


Start your FTP software and upload the directory to your webserver preserving the file structure.

Note: If you want phpMyChat to handle the homepage of your site, upload the contents to your website root (/var/www/html/). Otherwise, it's best to upload the files to a subdirectory of your web server. You can use the /chat subdirectory name, but you can also choose another.

Let's assume you install the contents of the phpMyChat folder to /var/www/html/chat
URL: http://www.mywebsite.com/chat


In a browser, go to the URL http://www.mywebsite.com/chat/setup.php3

This script allows you to easily install phpMyChat. Click "Go" to continue.


Configure your Database settings:

Select your SQL server type: MySQL
Hostname of your SQL server: 127.0.0.1
Enter your DB name, DB username and password
Leave the rest as default.


Fine tuning options.
Please read everything and configure your phpMyChat with your preferences.


Administrator registration.
Create your phpMyChat administrator account by entering all of the info.


Copy all of it, including the first and last lines, and then paste it into your favourite text-editor (Notepad, Vi...). After this you *must* enter the database users password on line 7 and save the file as config.lib.php3.

Ensure that there is no empty line or space character before the php opening tag and after the closing tag, then you can upload the config file to your server in the config dir (replace the existing one)


Secure config.lib.php3 with your FTP client using chmod 444.

To change file permissions using CuteFTP, select the file by clicking on it once on the remote system side and then right-click on the file to bring up the option menu and select CHMOD.


phpMyChat is near ready to run. After you have got phpMyChat up and running you should remove the setup.php3 file and the whole 'chat/install' dir from your server.


Congratulations, the installation of phpMyChat s now complete. You can check your phpMyChat at http://www.mywebsite.com/chat.


How do I access the Administrator page?

Open config.lib.php3 and edit the following tag:
define("C_SHOW_ADMIN", '0');
to
define("C_SHOW_ADMIN", '1');

You will see a link to the admin page on the main log in page.

You can also acces this page directly in your browser - http://www.mywebsite.com/chat/admin.php


If you require additional assistance, please feel free to contact our customer service team: https://www.doteasy.com/ContactUs/SMS/

Top