Contact
Site: US UK AU |

Installing phpMyChat Plus

How to install phpMyChat-Plus

Overview
phpMyChat is an easy-to-use, multi-room PHP and DB chat system. This article provides instructions for installing and configuring phpMyChat-Plus to use with your Nexcess hosting account.

Notes

Although phpMyChat-Plus provides an automated installation utility, it is recommended that you install the program manually, according to the instructions provided below.

Prerequisites

  • An existing SiteWorx account, with permissions to create MySQL Databases enabled.
  • The ability to connect to your hosting account via FTP.

1: Download phpMyChat

  1. Download the latest version of phpMyChat from http://sourceforge.net/projects/phpmychat/.
  2. Save the .zip file to your local drive, and then extract the file using a compression utility.

2: Create a MySQL Database

Follow the steps below to create a MySQL database, via your SiteWorx account. This database will be used specifically for phpMyChat-Plus.

    1. Log in to your SiteWorx account.

    2. From the SiteWorx main menu, click Hosting Options > MySQL > Databases.
    3. In the Database Name field, type a name for the new database, do not use spaces but underscores are acceptable.

      Attention: SiteWorx will automatically prefix the database name with the first eight characters of your domain name. For example, if your domain name is "example.com" and you assign "my_database" as the database name, the assigned name will be "examplec_my_database".  

    4. Select the Create User check box. The page automatically expands and displays additional fields for creating the user login information, as well as check boxes for selecting the access permissions that you will assign or not assign to the user.
    5. Type a username and password or click Generate to have one automatically created.
    6. In the MySQL User Permissions row, you will notice all permissions are checked by default:
      • To apply a permission to the user, the corresponding check box should be selected.
      • If you do not want to apply a permission to the user, clear the check box.
    7. In the When Connecting From field specify the hostname the user must use to connect to the database. If you want to allow all hostnames, leave this field with the default "%" symbol.
    8. Click Add.

3: Modify the configuration file

Now that you have created a database for phpMyChat, you need to specify the database information in the configuration file.

  1. Navigate to the following location on your local drive: /plus/config/config.lib.php.
  2. Click config.lib.php.

    Attention: Under the Database settings section, only modify the first three lines.

    Attention: Notice that the first eight characters of the domain name is prefixed to the database name and database user line items.

  3. Replace the values for the first three line items. For example, assume your domain name is example.com. Type the following:
    • define(" C_DB_NAME ", 'examplec_chat');
    • define(" C_DB_USER ", 'examplec_jdoe');
    • define(" C_DB_PASS ", 'thepasswordyouassigned');

4: Upload phpMyChat Files to server

  1. Use FTP to connect to your hosting account.
  2. Upload the contents of the plus directory to a top-level directory within your web root directory. For example, /example.com/html/.
    Attention: You can choose to rename the plus folder to something more descriptive, such as chat or mychat.

5: CHMOD for select directories and files

Using your FTP client, change the permissions for the phpMyChat directories and files listed below. Right-click on the directory or file and then select File Permissions.

Directory or File

Change Perms To

plus/acount/pages/

777

plus/acount/pages/bak/

777

plus/acount/pages/chat_index.txt

666

plus/acount/pages/chat_ip_logs.htm

666

plus/acount/pages/ip.txt

666

plus/admin/backups/

777

plus/bot/subs.inc

777

plus/botfb/

777

plus/cache/

777

plus/images/avatars/

777

plus/images/avatars/uploaded/

777

plus/images/smilies/

777

plus/images/smilies/smilies.php

666

plus/logs/

777

plus/logsadmin/

777

plus/skins/images/

777

plus/sounds/

777

Table 1. Permissions Table.

6: Add Tables to the Database

To perform this procedure log in to phpMyAdmin and add tables to the MySQL database created in the Create a MySQL Database section.

  1. Log in to your SiteWorx account.
  2. From the SiteWorx main menu click Hosting Features > MySQL > phpMyAdmin.  Result: in the left-side navigation pane displays all of the current databases.
  3. Click the name of the database previously created to see the tabs for specific selected tasks in the database.
  4. Click SQL tab and paste text into the field on the Run SQL query/queries on database… page.
  5. Navigate to plus/install/manual/installation/database.
  6. Click mysql_new_install.txt file.
  7. Select and copy all of the text in the file.
  8. Click the phpMyAdmin field and select Paste.
  9. Click Go and a message displays indicating that the SQL statement has been successfully executed.

7: Enabling phpMyChat-Plus

  1. Navigate to /plus/install/.
  2. Delete the install.php file and the site enables.
  3. Reload your site and the following window should display: 

Figure 1. phpMyChat-Plus login menu. 

  1.  Type your username and password, then click Register

For 24-hour assistance any day of the year, contact our Support Team by email or through the Client Portal.

Article Rating (No Votes)
Rate this article
  • Icon PDFExport to PDF
  • Icon MS-WordExport to MS Word
 
Attachments Attachments
There are no attachments for this article.
Related Articles RSS Feed
Installing LifeType
Added on Tue, Jul 30, 2013
How to set maximum execution time
Added on Tue, Jan 6, 2015
Installing MyBB
Added on Mon, Aug 5, 2013
How to transfer files using WinSCP
Added on Fri, Aug 15, 2014
Installing Phorum
Added on Tue, Aug 6, 2013
What is a temporary or dynamic IP address?
Added on Mon, Jan 26, 2015