PrestaShop is a popular open-source e-commerce platform that is widely used worldwide. You can set up your online store with ease and customize it as per your requirements. This tutorial will guide you on how to install PrestaShop on Ubuntu Server.
Before you start with the installation, make sure that you have the following:
First, go to the official PrestaShop website at https://www.prestashop.com/ and download the latest version of PrestaShop. You can download it using the following command:
wget https://www.prestashop.com/download/latest
This will download the latest version of the PrestaShop zip file to your current directory.
Once the download is complete, you need to extract the zip file using the following command:
sudo apt-get install unzip
sudo unzip latest
This will extract the PrestaShop files to a new directory called 'prestashop'.
Now, you need to create a new database for PrestaShop to use. You can do this using the following command:
sudo mysql -u root -p
This will take you to the MySQL prompt. Here, you need to create a new database, a new user, and grant permission to the user for the new database. You can use the following commands to do that:
CREATE DATABASE prestashopdb;
CREATE USER 'prestashopuser'@'localhost' IDENTIFIED BY 'password';
GRANT ALL PRIVILEGES ON prestashopdb.* TO 'prestashopuser'@'localhost';
FLUSH PRIVILEGES;
exit;
Note: Replace "password" with a strong password.
First, you need to create a new Apache virtual host for PrestaShop. You can do this by creating a new file in the '/etc/apache2/sites-available/' directory with the following command:
sudo nano /etc/apache2/sites-available/prestashop.conf
Then, add the following content to the file:
<VirtualHost *:80>
ServerAdmin admin@example.com
DocumentRoot /var/www/prestashop/
ServerName example.com
<Directory /var/www/prestashop/>
Options FollowSymLinks
AllowOverride All
Require all granted
</Directory>
ErrorLog ${APACHE_LOG_DIR}/error.log
CustomLog ${APACHE_LOG_DIR}/access.log combined
</VirtualHost>
Note: Replace "example.com" with your domain name or server IP address.
After that, you need to enable the newly created virtual host using the following command:
sudo a2ensite prestashop.conf
sudo systemctl restart apache2
Now that PrestaShop is ready to be installed, open a web browser and go to the following URL:
http://example.com/install/
Note: Replace "example.com" with your domain name or server IP address.
You will then be redirected to the PrestaShop installation wizard. Follow the instructions and provide the required information such as your database credentials, store information, and administrator login credentials.
Once the installation is complete, you will be redirected to the PrestaShop admin panel.
That's it! You have successfully installed PrestaShop on your Ubuntu Server. You can now customize your store and start selling products.
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!