WebMail PHP Installation Instructions for Unix

1. Download webmailpro_php.zip archive.
2. Unpack contents of web folder from archive into subfolder of web-folder on your web server. For example into /var/www/html/webmailphp.
3. Unpack contents of data folder from archive into any folder on your web server. For example into /var/webmail_data. In this folder MailBee WebMail PHP stores configuration file and temporary files. Please note, to protect this folder contents from unauthorized access, make sure this folder cannot be accessed from the web.
4. Open inc_settings_path.php file from webmailphp folder, and set the value of the $dataPath variable to the physical path of data folder (e.g. $dataPath = "/var/data").
5. Now you should assign owners and their rights.
   Change the current working directory to the folder with WebMail PHP scripts:
   cd /var/www/html/webmailphp/
   Assign rights to files and folders:
   find . -type d -exec chmod 755 {} \;
   find . -type f -exec chmod 644 {} \;
   Assign owner to files and folders. You can assign another owner (the same as owner of other folders/files in /var/www/html/):
   find . -type d -exec chown root.root {} \;
   find . -type f -exec chown root.root {} \;
   Change the current directory to the WebMail PHP working folder:
   cd /var/webmail_data/
   Assign rights to files and folders:
   find . -type d -exec chmod 755 {} \;
   find . -type f -exec chmod 644 {} \;
   Assign owner to files and folders. Please note, Apache can be started under another user account, for example, under nobody.nogroup. Apache process (httpd) should have write permission to the specified folder, thus, you should assign as owner user Apache is running under:
   find . -type d -exec chown apache.apache {} \;
   find . -type f -exec chown apache.apache {} \;
6. In your browser, navigate to http://yourserver.com/webmailphp/mailadm.php and type "mailadm" as login and "12345" as default password to enter the Administration Console. Once logged in, it's recommended to click WebMail Settings to change the default password and then click "Save" button to apply changes.
7. Now you can edit the following settings:
   - Database Settings
   - Users Management
   - WebMail settings
   - Interface settings
   - Login settings
   - Debug settings
8. Select "Database Settings". Choose database type you wish to use: MS SQL Server or MySQL Server. To use MS SQL Server or MySQL Server database, fill "SQL Login", "SQL Password" and "Database Name" fields. If you wish to connect through DSN, you need to fill "Data Source" field. Otherwise, to connect through TCP/IP, fill "Host" field.

   If the MySQL or MSSQL are used, you should click Save button and then Create Database button.

9. Now installation is complete. Please refer to Administration Panel for administration details.
   See WebMail PHP administration
10. MailBee WebMail PHP is ready to use.
    Start using it at http://your_server_name/webmailphp/index.php.
11. If you need to integrate WebMail with AfterLogic XMail Server, please refer to AfterLogic XMail Integration Instructions.

If you have any questions don't hesitate to email to support@afterlogic.com Or visit our support web page at http://www.afterlogic.com/support or web forum at http://www.afterlogic.com/forum