How to Install Cypht on Debian Latest

Cypht is an open-source, multi-account webmail platform that allows you to access all your email accounts in one place. In this tutorial, we will guide you through the steps required to install Cypht on a Debian 11 server.

Prerequisites

Before we start, make sure that you have the following prerequisites:

Step 1: Update your system

To get started, update your Debian server's package repositories and packages by running the following command:

sudo apt update && sudo apt upgrade -y

Step 2: Install Apache web server

Cypht requires a web server to display its interface. Apache web server is the most commonly used web server that can run on Debian 11. Install Apache web server by running the following command:

sudo apt install apache2 -y

Once the installation is complete, start the Apache web server and enable it to start at server boot time by running the following commands:

sudo systemctl start apache2
sudo systemctl enable apache2

Step 3: Install PHP

Cypht is built using PHP, a popular server-side scripting language used to build web applications. Install PHP and its required modules by running the following command:

sudo apt install php php-common php-cli php-gmp php-mbstring php-curl php-zip php-xml php-gd php-imap php-mysql php-pgsql php-intl php-ldap php-bcmath -y

Step 4: Install Cypht

You can download the latest version of Cypht from its official website https://cypht.org. Once the download is complete, extract the downloaded archive in your web server's document root directory by running the following commands:

cd /var/www/html
sudo wget https://cypht.org/download/cypht-latest.tar.gz
sudo tar -xzvf cypht-latest.tar.gz 

Next, rename the extracted directory to a simpler name like cypht:

sudo mv cypht-*/ cypht

Additionally, you need to set the correct file permissions for the Cypht directory so that it can be accessed by the Apache web server:

sudo chown -R www-data:www-data /var/www/html/cypht

Step 5: Configure Apache for Cypht

To serve the Cypht webmail from your Apache web server, you need to configure it by creating a new virtual host file. Create a new Apache virtual host file for Cypht by running the following command:

sudo nano /etc/apache2/sites-available/cypht.conf

Paste the following content into the file:

<VirtualHost *:80>
    ServerName your-domain-name.com
    DocumentRoot /var/www/html/cypht
    ErrorLog ${APACHE_LOG_DIR}/error.log
    CustomLog ${APACHE_LOG_DIR}/access.log combined
    <Directory "/var/www/html/cypht">
        Options FollowSymLinks
        AllowOverride All
        Require all granted
    </Directory>
</VirtualHost>

Replace your-domain-name.com with your server's domain name or IP address. Save and close the file.

Next, enable the newly created virtual host and restart the Apache web server:

sudo a2ensite cypht.conf
sudo systemctl restart apache2

Step 6: Access Cypht

Open your web browser and navigate to your server's IP address or domain name. You should now see the Cypht login page. If you see the login page, congratulations, you have successfully installed Cypht on Debian 11.

Conclusion

In this tutorial, we have shown you how to install Cypht webmail on Debian 11 server. You can now access all your email accounts from a single webmail interface with the help of Cypht.

If you want to self-host in an easy, hands free way, need an external IP address, or simply want your data in your own hands, give IPv6.rs a try!

Alternatively, for the best virtual desktop, try Shells!