How To Install phpMyChat
This article describes how to install the phpMyChat application on your A2 Hosting account.
phpMyChat is compatible with all A2 Hosting accounts. However, you must install it manually.
Although A2 Hosting servers are compatible with a wide variety of software applications, we cannot provide troubleshooting assistance for application-specific issues.
To install phpMyChat:
- Use cPanel to create a MySQL database and database user for phpMyChat.
For information about how to create a MySQL database and user, please see this article
- Download the phpMyChat installation file at http://sourceforge.net/projects/phpmychat to your computer.
- Use FTP to upload the installation file to the public_html directory of your A2 Hosting account. For information about how to access your account using FTP, please see this article.
- Log in to your account using SSH. For information about how to access your account using SSH, please see this article.
- Extract the application files. To do this, change to the public_html directory, and then type the following command:
The exact filename may vary based on the version you downloaded.
The files are extracted into the plus directory. Open the plus/config/config.lib.php file in a text editor, and then edit the following lines:
Replace cpanel_plus with the name of the database you created in step 1.
Replace cpanel_plus with the name of the database user you created in step 1.
Replace plus with the database user's password.
- Save your changes to the config.lib.php file and exit the text editor.
At the command prompt, type the following commands. Replace DBUSERNAME with the name of the database user you created in step 1. Replace DBNAME with the name of the database you created in step 1:
cd ~/public_html/plus/install/manual\ installation/database/
mysql -u DBUSERNAME -p DBNAME < mysql_new_install.txt
The previous command populates the database with all of the tables that phpMyChat requires to function correctly.
Type the following command:
Removing this file prevents the web installer (which does not work correctly in a shared hosting environment) from starting.
- Use your web browser to go to http://www.example.com/plus, where example.com represents your domain name. The login page appears. The default adminstrator username is admin, and the default administrator password is also admin. You can now configure phpMyChat using the web interface.
For more information about phpMyChat, please visit http://sourceforge.net/projects/phpmychat.