WebMail Pro PHP documentation

Install on DirectAdmin

You can install WebMail Pro on a server powered by DirectAdmin control panel. WebMail Pro can be installed as an additional option for accessing e-mail accounts, and you can also make it the default webmail application.

The installation is really simple, it is performed with the installation wizard which guides you through the entire process. It performs all the configuration required (sets up the database connection, the license key, etc), you'll be asked just a couple of questions.

To begin, download the installer package from here.

Assuming you downloaded the installer to your home directory, extract it to the same location:

cd ~
tar -xzvf ./webmail-panel-installer.tar.gz

To perform the installation, root access is required. Open the installer directory, make sure that install script has sufficient execute permissions and run it:

cd ./webmail-panel-installer
chmod a+x ./installer
./installer -t pro -a install

The installer downloads WebMail Pro package and performs the basic product configuration. The default installation path is /var/www/html/afterlogic.

In case if an existing WebMail Pro installation is found in this folder, the installer warns you about that:

AfterLogic WebMail already installed into /var/www/html/afterlogic! Replace the current version?[y/n]

If you choose to overwrite the existing installation, only files are replaced while all the database contents are kept intact, the database structure is updated if necessary. Thus, you won't lose any existing data created by previous installations of WebMail Pro.

By default, /afterlogic alias is added so that any customer hosting a domain on your server will be able to access WebMail Pro at userdomain.com/afterlogic URL (where userdomain.com if the domain name of the customer).

You can set not only userdomain.com/afterlogic alias, but also a userdomain.com/webmail one. This makes WebMail Pro the default webmail client of your server. To do that, run the following command:

./installer -a set_default

The installer asks if you'd like to go this way:

Setup AfterLogic WebMail as default? [y/n]

With this option selected, both /webmail and /afterlogic aliases can be used with any domain on your server to access WebMail Pro.

Once the installation is over, it's recommended to navigate to WebMail Pro AdminPanel as suggested by the installer (you'll be provided with the default credentials to access this AdminPanel). Once entered the AdminPanel, you can replace the trial key (generated by the installer) with your permanent one, change the default password for AdminPanel access, and configure the product any other way you like. This is, however, optional, as the installer sets up the product to fully operational state.