How to Install OXID eShop on Linux Mint
This tutorial will guide you through the steps to install OXID eShop on your Linux Mint machine.
Prerequisites
Before starting, make sure you have the following:
- Linux Mint installed
- Apache server installed
- MySQL server installed
- PHP installed (version 7.4 recommended)
Step 1: Download OXID eShop
Visit https://oxidforge.org/en/downloads to download the latest version of OXID eShop.
Step 2: Extract the Files
Extract the downloaded file to your Apache server's web directory. The default web directory is located at "/var/www/html/".
sudo tar -zxvf oxid-version.tar.gz -C /var/www/html/
Step 3: Set Permissions
After extracting the files, you need to set the correct permissions. Run the following commands to set the correct permissions:
sudo chown -R www-data:www-data /var/www/html/oxid
sudo chmod -R 755 /var/www/html/oxid
Step 4: Create MySQL Database
Create a new MySQL database for OXID eShop. Run the following commands to create a new database:
sudo mysql -u root -p
CREATE DATABASE oxid;
CREATE USER 'oxiduser'@'localhost' IDENTIFIED BY 'yourpassword';
GRANT ALL PRIVILEGES ON oxid.* TO 'oxiduser'@'localhost';
FLUSH PRIVILEGES;
exit
Step 5: Configure the eShop
Next, you need to configure the eShop. Open the file "/var/www/html/oxid/source/config.inc.php" in your favorite text editor to add your database details:
$this->dbHost = 'localhost';
$this->dbName = 'oxid';
$this->dbUser = 'oxiduser';
$this->dbPwd = 'yourpassword';
Save the file and exit.
Step 6: Access eShop
To access OXID eShop from your browser, navigate to "http://localhost/oxid" (replace "localhost" with your server's IP address if needed).
Congratulations! You have successfully installed OXID eShop on your Linux Mint machine.