How to Install PrestaShop on CentOS 7

Install PrestaShop on CentOS 7

In this tutorial we’ll learn how to install PrestaShop on CentOS 7. We will also install and configure its prerequisites. PrestaShop is an open-source e-commerce solution which lets you maintain your own online store. It’s written in PHP programming language with support for the MySQL database management system. It also supports a variety of payment gateway systems such as PayPal, Google Checkout etc. PrestaShop supplies a motif by default and users can change the theme of the store without changing its content. Additionally, it supports add-on modules which expand the software’s built in functionalities.

I recommend to use a minimal CentOS server setup as a basis for the tutorial, that can be a virtual or a root server image with an CentOS 7 minimal install from a web hosting company or you use our minimal server tutorial to install a server from scratch.

Install PrestaShop on CentOS 7

Step 1. First, ensure your system and apt package lists are fully up-to-date by running the following:

yum -y install epel-release
yum -y update

Step 2. Installing LAMP on Ubuntu 16.04.

You should check out this LAMP stack install tutorial for Ubuntu 16.04, if you haven’t installed LAMP yet. Once it’s installed, come back here and read on. We also will install the required packages for LAMP stack and the important PHP extension that PrestaShop relies on:

apt-get install php7.0-mysql php7.0-curl php7.0-json php7.0-cgi php7.0 libapache2-mod-php7.0 php7.0-mcrypt php7.0-gd php7.0-mbstring php7.0-zip php7.0-dom php7.0-xml

Step 3. Installing PrestaShop.

Next, you will need to download the latest stable version of the PrestaShop. You can download it with the following command:

wget https://download.prestashop.com/download/releases/prestashop_1.7.2.4.zip
unzip prestashop_1.7.2.4.zip
sudo mkdir -p /var/www/html/prestashop
sudo unzip prestapshop.zip -d /var/www/html/prestashop/

Now just set the right permissions for the folders:

chmod 755 /var/www/html/prestashop/ -R
chown apache. * /var/www/html/prestashop/ -R

Step 4. Create a database for PrestaShop.

Next, we need to create a database for the PrestaShop installation:

mysql -uroot -p

Run the following command to create a database for PrestaShop:

MariaDB> CREATE DATABASE prestashopdb;
MariaDB> GRANT ALL PRIVILEGES ON prestashopdb.* TO 'prestashop'@'localhost' IDENTIFIED BY 'your-password' WITH GRANT OPTION;
MariaDB> FLUSH PRIVILEGES;
MariaDB> exit

Step 5. Configure Web Server.

If you are using Apache as a web server, you need to edit your ‘/etc/httpd/conf/httpd.conf’ file. Open it with your favorite text editor and add the following lines:

<VirtualHost *:80>
    ServerAdmin webmaster@yourdomain.com
    DocumentRoot /var/www/html/prestashop
    ServerName yourdomain.com
    ErrorLog logs/prestashop.yourdomain.com-error_log
    CustomLog logs/prestashop.yourdomain.com-access_log common
</VirtualHost>

Save the file and restart your web server:

systemctl restart apache2

Step 6. Accessing PrestaShop.

Now you can access the PrestaShop web install wizard in your browser by entering the domain name or http://your_ip/prestashop to continue your PrestaShop installation.

Congratulation’s! You have successfully install PrestaShop on your CentOS 7 server. Thanks for using this tutorial for installing PrestaShop open source e-commerce on CentOS 7 system.

How to Install Virtualmin on Ubuntu 16.04

Install Virtualmin on Ubuntu 16.04

In this tutorial we will show you how to install Virtualmin on Ubuntu 16.04. We will also install and configure its prerequisites. Virtualmin is a Webmin module that’s typically utilized to manage multiple virtual hosts through a single interface, similar to cPanel. It supports numerous functions such as creating/managing Apache virtual servers, MySQL database creation/management, creating DNS zones, managing mailboxes, and much more.

I recommend to use a minimal Ubuntu server setup as a basis for the tutorial, that can be a virtual or a root server image with an Ubuntu 16.04 minimal install from a web hosting company or you use our minimal server tutorial to install a server from scratch.

Install Virtualmin on Ubuntu 16.04

Step 1. First, ensure your system and apt package lists are fully up-to-date by running the following:

apt-get update -y
apt-get upgrade -y

Step 2. Installing Virtualmin.

First, you can download this script:

wget http://software.virtualmin.com/gpl/scripts/install.sh

Make the script executable:

chmod +x install.sh

Next run the installer:

./install.sh

Install Virtualmin on Ubuntu 16.04

Step 3. Accessing the Virtualmin.

Now our Virtualmin is installed successfully and port 10000 is also exposed by the firewall program, we will point our web browser to our server as https://yourIPaddress:10000 in our web browser.

Congratulation’s! You have successfully install and configured Virtualmin on your Ubuntu 16.04 server. Thanks for using this tutorial installing Virtualmin control panel on Ubuntu 16.04 LTS (Xenial Xerus) system.

How to Install Eclipse on Ubuntu 16.04

Install Eclipse on Ubuntu 16.04

In this tutorial we will show you how to install Eclipse on Ubuntu 16.04. We will also install and configure its prerequisites. Eclipse is an open-source development environment used to develop applications. It supports various programming languages and can be installed on all Operating systems (Windows, Linux, Mac)

I recommend to use a minimal Ubuntu server setup as a basis for the tutorial, that can be a virtual or a root server image with an Ubuntu 16.04 minimal install from a web hosting company or you use our minimal server tutorial to install a server from scratch.

Install Eclipse on Ubuntu 16.04

Step 1. First, ensure your system and apt package lists are fully up-to-date by running the following:

apt-get update -y
apt-get upgrade -y

Step 2. Installing Java.

Eclipse requires Java to be available on your machine. So, go and install the Java:

sudo apt-get install openjdk-8-jre

Verify the Java version on your machine:

java -version

Step 3. Installing Eclipse.

First, Download Eclipse Installer here for either 32bit or 64bit:

wget http://artfiles.org/eclipse.org//oomph/epp/neon/R2a/eclipse-inst-linux64.tar.gz
tar xf eclipse-inst-linux64.tar.gz
cd eclipse-installer

Install eclipse with sudo if you want to install it in /opt directory:

sudo ./eclipse-inst

After the installer loads > click on “Eclipse IDE for Java Developer” or any of the other options you desire.

Install Eclipse on Ubuntu 16.04

Check and confirm the install path is correct > Click Install

Install Eclipse on Ubuntu 16.04

Accept License and certificate.

Install Eclipse on Ubuntu 16.04

After install is done > Click Launch.

Step 4. Create Launcher Icon.

Create the following file “eclipse.desktop” > edit as well as copy and paste entry below (ensure the path to where you installed eclipse is correct) > save:

nano ~/.local/share/applications/eclipse.desktop

Add the following content:

[Desktop Entry]
Encoding=UTF-8
Name=Eclipse 4.7
Comment=Eclipse Oxygen
Exec=/usr/bin/eclipse
Icon=/usr/eclipse/icon.xpm
Categories=Application;Development;Java;IDE
Version=1.0
Type=Application
Terminal=0

Then add execution permission to the file using the following command:

chmod +x ~/.local/share/applications/eclipse.desktop

Finally steps ,open the file location for eclipse.desktop, drag and drop it on the launcher. Note you have to enable “Show hidden files”

Congratulation’s! You have successfully install and configured Eclipse on your Ubuntu 16.04 server. Thanks for using this tutorial installing Eclipse Neon on Ubuntu 16.04 LTS (Xenial Xerus) system.

How to Install VirtualBox on CentOS 7

Install VirtualBox on CentOS 7

In this tutorial we’ll learn how to install VirtualBox on CentOS 7. We will also install and configure its prerequisites. Virtualbox is an advanced virtualization platform. It runs on Windows, Linux, Macintosh, and Solaris hosts and supports a great number of guest operating systems. It is available as Open Source Software (GPL2). It’s lightweight and actively developed, so it is acceptable for use in workstations.

I recommend to use a minimal CentOS server setup as a basis for the tutorial, that can be a virtual or a root server image with an CentOS 7 minimal install from a web hosting company or you use our minimal server tutorial to install a server from scratch.

Install VirtualBox on CentOS 7

Step 1. First, ensure your system and apt package lists are fully up-to-date by running the following:

yum -y install epel-release
yum -y update

Step 2. Installing VirtualBox.

First, Install all Virtualbox dependencies:

yum install gcc make patch dkms qt libgomp kernel-headers kernel-devel fontforge binutils glibc-headers glibc-devel

Now install VirtualBox Latest Version 5.2:

yum install VirtualBox-5.2

Once VirtualBox package is installed then rebuild the kernel modules using the following command:

/usr/lib/virtualbox/vboxdrv.sh setup

Add your user name in to vboxuser group:

usermod -a -G vboxusers rezkia

We have just finished to install VirtualBox on CentOS 7 and now we can start VirtualBox by using command:

virtualbox

Or simply open Applications –> System Tools –> Oracle VM VirtualBox.

Congratulation’s! You have successfully install VirtualBox on your CentOS 7 server. Thanks for using this tutorial for installing VirtualBox virtualization on CentOS 7 system.

How to Install Virtualmin on CentOS 7

Install Virtualmin on CentOS 7

In this tutorial we’ll learn how to install Virtualmin on CentOS 7. We will also install and configure its prerequisites. Virtualmin is a Webmin module that’s typically utilized to manage multiple virtual hosts through a single interface, similar to cPanel. It supports numerous functions such as creating/managing Apache virtual servers, MySQL database creation/management, creating DNS zones, managing mailboxes, and much more.

I recommend to use a minimal CentOS server setup as a basis for the tutorial, that can be a virtual or a root server image with an CentOS 7 minimal install from a web hosting company or you use our minimal server tutorial to install a server from scratch.

Install Virtualmin on CentOS 7

Step 1. First, ensure your system and apt package lists are fully up-to-date by running the following:

yum -y install epel-release
yum -y update

Also you need to make sure that you server has a hostname.Use the following command to check your current hostname:

hostname -f

Step 2. Installing Virtualmin.

Download the Virtualmin installer script using wget:

wget http://software.virtualmin.com/gpl/scripts/install.sh

Make the script executable:

chmod +x install.sh

Now it is time to install VirtualMin. To do so, use the command below:

sh install.sh

Install Virtualmin on CentOS 7

Step 3. Accessing the Virtualmin.

Now our Virtualmin is installed successfully and port 10000 is also exposed by the firewall program, we will point our web browser to our server as https://yourIPaddress:10000 in our web browser.

Congratulation’s! You have successfully install Virtualmin Control Panel on your CentOS 7 server. Thanks for using this tutorial for installing Virtualmin on CentOS 7 system.

How to Install VirtualBox on Ubuntu 16.04

Install VirtualBox on Ubuntu 16.04

In this tutorial we will show you how to install VirtualBox on Ubuntu 16.04. We will also install and configure its prerequisites. Virtualbox is an advanced virtualization platform. It runs on Windows, Linux, Macintosh, and Solaris hosts and supports a great number of guest operating systems. It is available as Open Source Software (GPL2). It’s lightweight and actively developed, so it is acceptable for use in workstations.

I recommend to use a minimal Ubuntu server setup as a basis for the tutorial, that can be a virtual or a root server image with an Ubuntu 16.04 minimal install from a web hosting company or you use our minimal server tutorial to install a server from scratch.

Install VirtualBox on Ubuntu 16.04

Step 1. First, ensure your system and apt package lists are fully up-to-date by running the following:

apt-get update -y
apt-get upgrade -y

Step 2. Installing VirtualBox.

First, add a VirtualBox repository, edit /etc/apt/sources.list file:

### For Ubuntu 17.10 ("Artful") ###
deb http://download.virtualbox.org/virtualbox/debian zesty contrib

### For Ubuntu 16.04 ("Xenial") ###
deb http://download.virtualbox.org/virtualbox/debian xenial contrib

After adding the required apt repository on your system, download and import the Oracle public key for apt-secure:

wget -q https://www.virtualbox.org/download/oracle_vbox_2016.asc -O- | sudo apt-key add -
wget -q https://www.virtualbox.org/download/oracle_vbox.asc -O- | sudo apt-key add -

Then all left to do is update local package index and install Virtualbox:

sudo apt-get update
sudo apt-get install virtualbox-5.2

You can access Virtualbox using Ubuntu Unity Dash or from the applications menu in other Ubuntu flavors. Open Dash (press SUPER key) and type something like “virtual”

Congratulation’s! You have successfully install and configured VirtualBox on your Ubuntu 16.04 server. Thanks for using this tutorial installing VirtualBox virtualization on Ubuntu 16.04 LTS (Xenial Xerus) system.

How to Install PrestaShop on Ubuntu 16.04

Install PrestaShop on Ubuntu 16.04

In this tutorial we’ll learn how to install PrestaShop on Ubuntu 16.04. We will also install and configure its prerequisites. PrestaShop is an open-source e-commerce solution which lets you maintain your own online store. It’s written in PHP programming language with support for the MySQL database management system. It also supports a variety of payment gateway systems such as PayPal, Google Checkout etc. PrestaShop supplies a motif by default and users can change the theme of the store without changing its content. Additionally, it supports add-on modules which expand the software’s built in functionalities.

I recommend to use a minimal Ubuntu server setup as a basis for the tutorial, that can be a virtual or a root server image with an Ubuntu 16.04 minimal install from a web hosting company or you use our minimal server tutorial to install a server from scratch.

Install PrestaShop on Ubuntu 16.04

Step 1. First, ensure your system and apt package lists are fully up-to-date by running the following:

apt-get update -y
apt-get upgrade -y

Step 2. Installing LAMP on Ubuntu 16.04.

You should check out this LAMP stack install tutorial for Ubuntu 16.04, if you haven’t installed LAMP yet. Once it’s installed, come back here and read on. We also will install the required packages for LAMP stack and the important PHP extension that PrestaShop relies on:

apt-get install php7.0-mysql php7.0-curl php7.0-json php7.0-cgi php7.0 libapache2-mod-php7.0 php7.0-mcrypt php7.0-gd php7.0-mbstring php7.0-zip php7.0-dom php7.0-xml

Step 3. Installing PrestaShop.

Next, you will need to download the latest stable version of the PrestaShop. You can download it with the following command:

wget https://download.prestashop.com/download/releases/prestashop_1.7.2.4.zip
unzip prestashop_1.7.2.4.zip
sudo mkdir -p /var/www/html/prestashop
sudo unzip prestapshop.zip -d /var/www/html/prestashop/

Now just set the right permissions for the folders:

sudo chown -R www-data:www-data /var/www/html/prestashop/
sudo chmod -R 755 /var/www/html/prestashop/

Step 4. Create a database for PrestaShop.

Next, we need to create a database for the PrestaShop installation:

mysql -uroot -p

Run the following command to create a database for PrestaShop:

MariaDB> CREATE DATABASE prestashopdb;
MariaDB> GRANT ALL PRIVILEGES ON prestashopdb.* TO 'prestashop'@'localhost' IDENTIFIED BY 'your-password' WITH GRANT OPTION;
MariaDB> FLUSH PRIVILEGES;
MariaDB> exit

Step 5. Configure Apache web server for PrestaShop.

For this you can take the default config as a template:

cp /etc/apache2/sites-available/000-default.conf /etc/apache2/sites-available/prestashop.conf

Now edit the currently created Config as follows:

nano /etc/apache2/sites-available/prestashop.conf

Modify the virtual host file for your PrestaShop site to resemble the example below:

<VirtualHost my-domain.tld:80>

ServerName my-domain.tld
ServerAlias www.my-domain.tld
ServerAdmin webmaster@localhost
DocumentRoot /var/www/html/prestashop/

<Directory /var/www/html/prestashop/>
Options Indexes FollowSymLinks MultiViews
AllowOverride All
</Directory>

ErrorLog ${APACHE_LOG_DIR}/error-moodle.log
CustomLog ${APACHE_LOG_DIR}/access-moodle.log combined
</VirtualHost>

Now just activate the newly created Config, mod_rewrite and SSL:

sudo a2ensite prestashop.conf && sudo a2enmod SSL && sudo a2enmod rewrite

Finally, reload the web server as suggested, for the changes to take effect:

systemctl restart apache2

Step 6. Accessing PrestaShop.

Now you can access the PrestaShop web install wizard in your browser by entering the domain name or http://your_ip/ to continue your PrestaShop installation.

Congratulation’s! You have successfully install and configured PrestaShop on your Ubuntu 16.04 LTS server. Thanks for using this tutorial for installing PrestaShop open source e-commerce on Ubuntu 16.04 LTS (Xenial Xerus) system.

How to Install Vesta Control Panel on CentOS 7

Install Vesta Control Panel on CentOS 7

In this tutorial we’ll learn how to install Vesta Control Panel on CentOS 7. We will also install and configure its prerequisites. VestaCP is an open source web hosting control panel which you may install on machines operating RedHat/CentOS or Ubuntu. It’s notable for having an extremely clean and clear graphical interface that is perfect for inexperienced users looking to change and adjust the configurations of their hosted services.

I recommend to use a minimal CentOS server setup as a basis for the tutorial, that can be a virtual or a root server image with an CentOS 7 minimal install from a web hosting company or you use our minimal server tutorial to install a server from scratch.

Install Vesta Control Panel on CentOS 7

Step 1. First, ensure your system and apt package lists are fully up-to-date by running the following:

yum -y install epel-release
yum -y update

Step 2. Disable SElinux.

setenforce 0
sed -i 's/enforcing/disabled/' /etc/sysconfig/selinux

Step 3. Installing Vesta Control Panel.

First, download the script by executing the following command:

curl -O http://vestacp.com/pub/vst-install.sh

Make this script executable and start the installation:

chmod +x vst-install.sh
bash vst-install.sh

Do not forget to change ‘your-domain.com’ with your actual domain name and use a strong password for your VestaCP Admin user.

If everything is OK, you should receive an output like this:

=======================================================

 _|      _|  _|_|_|_|    _|_|_|  _|_|_|_|_|    _|_|   
 _|      _|  _|        _|            _|      _|    _| 
 _|      _|  _|_|_|      _|_|        _|      _|_|_|_| 
   _|  _|    _|              _|      _|      _|    _| 
     _|      _|_|_|_|  _|_|_|        _|      _|    _| 


Congratulations, you have just successfully installed Vesta Control Panel

    https://192.168.1.100:8083
    username: admin
    password: rezkia

We hope that you enjoy your installation of Vesta. Please feel free to contact us anytime if you have any questions.
Thank you.

--

Once the VestaCP installation is complete, Open https://your_server_IP:8083, enter the username and password and click ‘Log in’. From this page you can add domains, create email accounts, databases, FTP accounts, add/modify DNS records etc.

Congratulation’s! You have successfully install Vesta Control Panel on your CentOS 7 server. Thanks for using this tutorial for installing VestaCP on CentOS 7 system.