How to Install Easy!Appointments on Ubuntu Server Latest

Easy!Appointments is an open-source appointment scheduling software that works great for businesses, organizations, and individuals who need an easy way to manage their appointments. In this tutorial, we will show you how to install Easy!Appointments on Ubuntu Server Latest.

Prerequisites

Before we begin, make sure you have the following:

Step 1: Update System Packages

The first step is to update the system packages by running the following command:

sudo apt update && sudo apt upgrade

Step 2: Install LAMP Stack

Easy!Appointments requires a LAMP stack (Linux, Apache, MySQL, and PHP) to run. We can install LAMP stack by running the following command:

sudo apt install apache2 mysql-server php libapache2-mod-php php-mysql php-curl php-json php-mbstring

During the installation, you will be asked to set a password for the MySQL root user. Make sure to remember this password as we will use it later.

After the installation has finished, start the Apache and MySQL services:

sudo systemctl enable apache2
sudo systemctl start apache2
sudo systemctl enable mysql
sudo systemctl start mysql

Step 3: Create MySQL Database and User

Next, we need to create a new MySQL database and user for Easy!Appointments. To do this, log in to MySQL as the root user:

sudo mysql -u root -p

Enter the root password when prompted.

Create a new database:

CREATE DATABASE easyappointments;

Create a new user:

CREATE USER 'ea_user'@'localhost' IDENTIFIED BY 'ea_password';

Grant privileges to the user for the database:

GRANT ALL PRIVILEGES ON easyappointments.* TO 'ea_user'@'localhost';

Flush the privileges and exit MySQL:

FLUSH PRIVILEGES;
EXIT;

Step 4: Download and Install Easy!Appointments

Now let’s download and install Easy!Appointments. Change into the Apache document root directory:

cd /var/www/html

Download Easy!Appointments:

sudo wget https://github.com/alextselegidis/easyappointments/releases/download/1.4.4/easyappointments-1.4.4.zip

Unzip the downloaded file:

sudo unzip easyappointments-1.4.4.zip

Rename the unzipped directory:

sudo mv easyappointments-1.4.4 easyappointments

Change ownership of the easyappointments directory to the Apache user:

sudo chown -R www-data:www-data easyappointments

Step 5: Configure Easy!Appointments

Rename the config-sample.php file to config.php :

sudo mv /var/www/html/easyappointments/application/config/config-sample.php /var/www/html/easyappointments/application/config/config.php

Change the database settings in config.php with the following command:

sudo nano /var/www/html/easyappointments/application/config/config.php

Update the following lines to match your MySQL database credentials:

$config['db_hostname'] = 'localhost';
$config['db_username'] = 'ea_user';
$config['db_password'] = 'ea_password';
$config['db_database'] = 'easyappointments';

Save and close the file by pressing Ctrl + X, Y, then Enter.

Step 6: Set the appropriate permissions

In order for Easy!Appointments to function optimally, correct file permissions must be set. Apache needs to be able to read and write to Easy!Appointments files. Execute the following commands to ensure the appropriate permissions are setup:

sudo chown -R www-data:www-data /var/www/html/easyappointments/
sudo find /var/www/html/easyappointments/ -type d -exec chmod 775 {} \;
sudo find /var/www/html/easyappointments/ -type f -exec chmod 664 {} \;

Step 7: Restart Apache

Restart Apache to apply the new configurations:

sudo systemctl restart apache2

Step 8: Access Easy!Appointments

You can now access Easy!Appointments by visiting the server IP address or domain name in a web browser:

http://server_IP_address/easyappointments

Conclusion

That’s it! Easy!Appointments is now installed and ready to be configured for booking appointments. You can now log in to the admin panel of Easy!Appointments to start configuring schedules, services, and appointment slots.

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!