How to Installation OSCommerce on Ubuntu 18.04
INSTALLATION OF OSCOMMERCE ON UBUNTU 18.04
STEP 1.
Install Apache2
sudo apt-get install apache2
After installing Apache2, run the command below to disable directory listing.
sudo sed -i "s/Options Indexes FollowSymLinks/Options FollowSymLinks/" /etc/apache2/apache2.conf
Run the commands below to stop, start and enable Apache2 service
sudo systemctl stop apache2.service sudo systemctl start apache2.service sudo systemctl enable apache2.service
Step 2: Install Mysql
[edit]
sudo apt install mysql-server
sudo mysql_secure_installation
when prompted press enter and povide the information.
Step 3: Install PHP and Related Modules
[edit]sudo apt-get install php php-common php-mbstring php-xmlrpc php-soap php-gd php-xml php-intl php-mysql php-cli php-mcrypt php-ldap php-zip php-curl
Step 4: Create osCommerce Database
Create oscommerce database
sudo mysql -u root -p
Then create a database called oscdb
CREATE DATABASE oscdb;
Create a database user called oscuser with new password
CREATE USER 'oscuser'@'localhost' IDENTIFIED BY 'new_password_here';
Then grant the user full access to the database.
GRANT ALL ON oscdb.* TO 'oscuser'@'localhost' IDENTIFIED BY 'user_password_here' WITH GRANT OPTION;
Finally, save your changes and exit.
FLUSH PRIVILEGES; EXIT;
Step 5: Download osCommerce Latest Release
After downloading, run the commands below to extract the download file into Apache2 root directory.
unzip oscommerce-2.3.4.1.zip sudo mv oscommerce-2.3.4.1 /var/www/html/oscommerce
Change or modify the directory permission to fit Apache2 configuration.
sudo chown -R www-data:www-data /var/www/html/oscommerce sudo chmod -R 755 /var/www/html/oscommerce
Step 6: Configure Apache2
[edit]Configure Apahce2 site configuration file for osCommerce. Create a new configuration file oscommerce.conf
touch oscommerce.conf
Edit the oscommerce.conf file
sudo nano /etc/apache2/sites-available/oscommerce.conf

Step 7: Enable the osCommerce and Rewrite Module
After configuring the VirtualHost ,enable oscomerce,conf file
sudo a2ensite oscommerce.conf sudo a2enmod rewrite
Step 8 : Restart Apache2
Restart Apache2
sudo systemctl restart apache2.service
In the browser try below one