In this tutorial, we will guide you through the steps to install Erxes on Fedora Server latest version. Erxes is an open-source, powerful all-in-one Growth Marketing and Customer Relationship Management (CRM) Platform that helps businesses streamline their customer acquisition and retention.
Make sure that you have the following requirements before proceeding with the installation process:
Before we start the installation process, it is important to ensure that all the installed packages are up to date.
sudo dnf update -y
Erxes requires MongoDB in order to run. To install MongoDB, execute the following command:
sudo dnf install mongodb-server -y
Once the installation is complete, start the MongoDB daemon using the following command:
sudo systemctl start mongod.service
To enable the MongoDB service to start automatically at boot time, execute the following command:
sudo systemctl enable mongod.service
Erxes is based on Node.js. To install Node.js, execute the following command:
sudo dnf install nodejs -y
Now, we can proceed to install Erxes. Execute the following command to download the Erxes source code from the official GitHub repository:
git clone https://github.com/erxes/erxes.git
Navigate to the Erxes directory and install the required packages using the following command:
cd erxes
npm install --unsafe-perm
Before we can start the Erxes service, we need to configure the application. Copy the sample configuration file with the following command:
cp src/configs/sample.js src/configs/development.js
The configuration file defines all the settings, such as database connection, email, and server address. Open the development.js file with your favorite text editor and adjust the settings to match your environment.
nano src/configs/development.js
Once you have finished configuring the application, you can start the Erxes service with the following command:
npm start
This will start the Erxes service in the background. You can now access the application by opening your preferred web browser and navigating to http://your_server_ip:3030.
If you prefer to use Nginx as your web server, you can configure it to reverse proxy requests to the Erxes service. Create a new configuration file with the following command:
sudo nano /etc/nginx/conf.d/erxes.conf
Add the following configuration to the erxes.conf file and save it:
server {
listen 80;
server_name your_domain.com;
location / {
proxy_pass http://localhost:3030;
proxy_http_version 1.1;
proxy_set_header Upgrade $http_upgrade;
proxy_set_header Connection 'upgrade';
proxy_set_header Host $host;
proxy_set_header X-Real-IP $remote_addr;
proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
proxy_cache_bypass $http_upgrade;
}
}
Activate the new configuration file by running the following command:
sudo systemctl reload nginx.service
You can now access the Erxes application through your domain name.
You have successfully installed Erxes on your Fedora Server. You can now use Erxes to manage customers and streamline your marketing activities.
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!