bookmark_borderInstalling PrestaShop with LAMP Stack and Let’s Encrypt SSL on Ubuntu 21.10

Hello,

In this week’s feature highlight, we look at How to Install PrestaShop with LAMP Stack and Let’s Encrypt SSL on Ubuntu 21.10

PrestaShop is a commonly used PHP-based CMS (Content Management System). For small & large businesses PrestaShop can be a good fit.  In this article, we are going to learn how to install PrestaShop on Ubuntu 21.10. So, let’s get started.

Pre-requisites :

  • A system with Ubuntu 21.10 installed and running.
  • root access to the system.
  • LAMP Stack installed and running, for this, you can refer to one of our guides on installing the LAMP Stack (Apache, MariaDB, and PHP).

Once you’re all set, we’ll proceed with PrestaShop installation and configuration.

Create Database

Let us begin with creating a Database and a user. We will then grant the required privileges to the user so it can interact with the Database.

mysql -u root

CREATE DATABASE ccpresta;

CREATE USER 'ccpresta'@'localhost' IDENTIFIED BY 'UYGVc%$#Erfgt*&^%4';

GRANT ALL PRIVILEGES ON ccpresta.* TO 'ccpresta'@'localhost';

FLUSH PRIVILEGES;

quit

The above commands will give complete access to ccpresta Database to the user ccpresta.We would suggest using a strong and long password.

Configure PHP Settings for PrestaShop

Configure PHP Memory Limit, Post max size, and Upload max filesize. You can change the limit as per your need.

sed -i 's/memory_limit = .*/memory_limit = 256M/' /etc/php/7.4/apache2/php.ini

sed -i 's/post_max_size = .*/post_max_size = 64M/' /etc/php/7.4/apache2/php.ini

sed -i 's/upload_max_filesize = .*/upload_max_filesize = 64M/' /etc/php/7.4/apache2/php.ini

Enable Apache module if not already enabled then restart the Web Server.

a2enmod php7.4

systemctl restart apache2

Configuring Apache vHost

Now, create a new Apache configuration file dev.domainhere.info.conf for PrestaShop with the following command. Replace dev.domainhere.info with the domain name of your own for all the below code examples:

vi /etc/apache2/sites-available/dev.domainhere.info.conf

Now, press i to go to INSERT mode and type in the following lines of codes in the dev.domainhere.info.conf file.

<VirtualHost *:80>

ServerName dev.domainhere.info
ServerAlias dev.domainhere.info
ServerAdmin admin@dev.domainhere.info
DocumentRoot /var/www/html/dev.domainhere.info

ErrorLog ${APACHE_LOG_DIR}/dev.domainhere.info_error.log
CustomLog ${APACHE_LOG_DIR}/dev.domainhere.info_access.log combined

<Directory /var/www/html/dev.domainhere.info>
Options FollowSymlinks
AllowOverride All
Require all granted
</Directory>

</VirtualHost>

Now make directory for PrestaShop files:

mkdir -p /var/www/html/dev.domainhere.info/

Enable SSL and Rewrite:

a2ensite dev.domainhere.info

a2enmod rewrite ssl

Restart Apache:

systemctl restart apache2

Install Let’s Encrypt SSL Certificate

Let’s issue an SSL certificate for the domain for this we will need a snap package for Debian operating system.

We will update and install the snap package on the system:

apt update

apt install -y snapd

snap install core && sudo snap refresh core

Next, with the help of snap, we will install the certbot client which is used to create Let’s Encrypt certificates:

snap install --classic certbot

ln -s /snap/bin/certbot /usr/bin/certbot

Install SSL Certificate

Use the certbot command to issue a Let’s Encrypt certificate. The command will auto-detect the domains available or configured in the vHost configuration:

certbot --apache

SSL certificates are valid for 90 days. The renewal process is now automated, you do not have to renew this manually.

Enable http and https ( 80/443 ):

To enable http and https connection through the firewall, follow the commands:

sudo ufw allow 80/tcp

sudo ufw allow 443/tcp

Download PrestaShop

Let’s download PrestaShop:

cd /etc/www/html/dev.domainhere.info

Check PrestaShop Latest Versions Here.

wget https://www.prestashop.com/en/system/files/ps_releases/prestashop_1.7.8.2.zip

unzip prestashop_1.7.8.2.zip

unzip prestashop.zip

rm prestashop_1.7.8.2.zip

rm prestashop.zip

chown -R www-data:www-data /var/www/html/dev.domainhere.info/

Configuring PrestaShop

Now open the IP address from your browser, this will redirect you to configuring the final parts of PrestaShop installation.

https://dev.domainhere.info

Replace the dev.domainhere.info with the actual IP or domain configured on the server.

Now we should remove the installtion directory using below commad:

sudo rm -rf /var/www/html/dev.domainhere.info/{install,docs,README.md}

Input the Database details which was configured earlier. Follow the below steps:

Now you have successfully installed PrestaShop with LAMP Stack and Let’s Encrypt SSL on Ubuntu 21.10.

bookmark_borderInstalling Winter CMS with LAMP Stack on Ubuntu 21.10

Hello,

In this week’s feature highlight, we look at How to Install Winter CMS with LAMP Stack on Ubuntu 21.10

Winter is a free, open-source content management system based on the Laravel PHP framework. Developers and agencies all around the world rely upon Winter for its quick prototyping and development, safe and secure codebase, and dedication to simplicity. In this article, we are going to learn how to install Winter CMS on Ubuntu 21.10. So, let’s get started.

Checkout the Winter CMS Project Here .

Get started with $5 VPS from CrownCloud. Check our latest offers : CrownCloud VPS [ 24×7 In-House Customer Support ].

Pre-requisites :

  • A system with Ubuntu 21.10 installed and running.
  • root access to the system.
  • LAMP Stack installed and running, for this, you can refer to one of our guides on installing the LAMP Stack (Apache, MariaDB, and PHP).

Once you’re all set, we’ll proceed with Winter CMS installation and configuration.

Create Database

Let us begin with creating a Database and a user. We will then grant the required privileges to the user so it can interact with the Database.

mysql -u root

CREATE DATABASE ccwintercms;

CREATE USER 'ccwintercms'@'localhost' IDENTIFIED BY 'UYGVc%$#Erfgt*&^%4';

GRANT ALL PRIVILEGES ON ccwintercms.* TO 'ccwintercms'@'localhost';

FLUSH PRIVILEGES;

QUIT

The above commands will give complete access to the user ccwintercms. We would suggest using a strong and long password.

Configuring Apache vHost

Now, create a new Apache configuration file dev.domainhere.info.conf for Winter CMS with the following command.

Replace dev.domainhere.info with the domain name of your own for all the below code examples:

vi /etc/apache2/sites-available/dev.domainhere.info.conf

Now, press i to go to INSERT mode and type in the following lines of codes in the dev.domainhere.info.conf file.

<VirtualHost *:80>

ServerName dev.domainhere.info
ServerAlias dev.domainhere.info
ServerAdmin admin@dev.domainhere.info
DocumentRoot /var/www/html/wintercms

ErrorLog ${APACHE_LOG_DIR}/dev.domainhere.info_error.log
CustomLog ${APACHE_LOG_DIR}/dev.domainhere.info_access.log combined

<Directory /var/www/html/wintercms/>
Options FollowSymlinks
AllowOverride All
Require all granted
</Directory>

</VirtualHost>

Now make directory for Winter CMS files:

mkdir -p /var/www/html/wintercms/

Enable SSL and Rewrite:

a2ensite dev.domainhere.info

a2enmod rewrite ssl

Restart Apache:

systemctl restart apache2

Enable http and https ( 80/443 )

To enable http and https connection through the firewall, follow the commands:

ufw allow 80/tcp

ufw allow 443/tcp

Download Winter CMS

Let’s download Winter CMS:

cd /etc/www/html/wintercms

wget https://github.com/wintercms/web-installer/releases/latest/download/install.zip

unzip install.zip

chown -R www-data:www-data /var/www/html/wintercms/

chmod -R 775 /var/www/html/wintercms/

Configuring Winter CMS

Now open the domain name with a /install.html from your browser, this will redirect you to configuring the final parts of the Winter CMS installation.

https://dev.domainhere.info/install.html

Replace the dev.domainhere.info with the actual IP or domain configured on the server.

Input the Database details which was configured earlier. Follow the below steps:

Now you have successfully installed Winter CMS with LAMP Stack on Ubuntu 21.10.

bookmark_borderIntel 12th Gen Core i9 series 12900K KVM SSD Plans now available

Hello

We are excited to announce the launch of our brand new Intel 12th Gen Core i9 series of KVM SSD VPSes

The series is powered by the brand new Intel i9-12900K processor which has the best single threaded performance currently across various benchmarks and offers massive gains across the board over previous generation of Intel powered processors.

As this is a brand new processor/lineup, we have it available at our Frankfurt, Germany (DE1) datacenter currently, we will have this product available at our other datacenters as soon as possible.

Check out our Intel 12th Gen Core i9 plans starting at $8/month, here.

https://crowncloud.net/ssd_intel_i9_kvm.php

Stay tuned for more!

Thanks,

-Team CrownCloud.

bookmark_borderInstalling Chevereto-Free with LAMP Stack on Ubuntu 21.10

Hello,

In this week’s feature highlight, we look at How to Install Chevereto-Free with LAMP Stack on Ubuntu 21.10

Chevereto-Free allows you to create a full-featured image hosting website on your server. It’s your hosting and your rules, say goodbye to closures and restrictions. In this article, we are going to learn how to install Chevereto on Ubuntu 21.10. So, let’s get started.

Checkout the Chevereto-Free Project Here.

Pre-requisites :

  • A system with Ubuntu 21.10 installed and running.
  • root access to the system.
  • LAMP Stack installed and running, for this, you can refer to one of our guides on installing the LAMP Stack (Apache, MariaDB, and PHP).

Once you’re all set, we’ll proceed with Chevereto-Free installation and configuration.

Create Database

Let us begin with creating a Database and a user. We will then grant the required privileges to the user so it can interact with the Database.

mysql -u root

CREATE DATABASE ccchevereto;

CREATE USER 'ccchevereto'@'localhost' IDENTIFIED BY 'UYGVc%$#Erfgt*&^%4';

GRANT ALL PRIVILEGES ON ccchevereto.* TO 'ccchevereto'@'localhost';

FLUSH PRIVILEGES;

QUIT

The above commands will give complete access to the user ccchevereto. We would suggest using a strong and long password.

Configuring Apache vHost

Now, create a new Apache configuration file dev.domainhere.info.conf for Chevereto with the following command.

Replace dev.domainhere.info with the domain name of your own for all the below code examples:

vi /etc/apache2/sites-available/dev.domainhere.info.conf

Now, press i to go to INSERT mode and type in the following lines of codes in the dev.domainhere.info.conf file.

<VirtualHost *:80>

ServerName dev.domainhere.info
ServerAlias dev.domainhere.info
ServerAdmin admin@dev.domainhere.info
DocumentRoot /var/www/html/chevereto

ErrorLog ${APACHE_LOG_DIR}/dev.domainhere.info_error.log
CustomLog ${APACHE_LOG_DIR}/dev.domainhere.info_access.log combined

<Directory /var/www/html/chevereto/>
Options FollowSymlinks
AllowOverride All
Require all granted
</Directory>

</VirtualHost>

Now make directory for Chevereto files:

mkdir -p /var/www/html/chevereto/

a2enmod rewrite

Enable SSL and Rewrite:

a2ensite dev.domainhere.info

a2enmod rewrite ssl

Restart Apache:

systemctl restart apache2

Enable http and https ( 80/443 )

To enable http and https connection through the firewall, follow the commands:

ufw allow 80/tcp

ufw allow 443/tcp

Download Chevereto-Free

Let’s download Chevereto:

cd /etc/www/html/chevereto

wget https://github.com/rodber/chevereto-free/releases/download/1.6.0/1.6.0.zip

unzip 1.6.0.zip

chown -R www-data:www-data /var/www/html/chevereto/

chmod -R 775 /var/www/html/chevereto/

Configuring Chevereto-Free

Now open the Domain name from your browser, this will redirect you to configuring the final parts of the Chevereto installation.

https://dev.domainhere.info

Replace the dev.domainhere.info with the actual IP or domain configured on the server.

Input the Database details which was configured earlier. Follow the below steps:

Now you have successfully installed Chevereto-Free with LAMP Stack on Ubuntu 21.10.