Apache · Apache 2.4 · BSD · e-Commerce · FAMP · FreeBSD · FreeBSD 11 · OpenCart · Web Server

Installing OpenCart on FreeBSD 11

The installation of OpenCart is FreeBSD is pretty straight forward. The following article can be used as a procedure to do a basic install of OpenCart on FreeBSD. This is tested on FreeBSD 11.

For installing OpenCart on FreeBSD, we need to have a FAMP stack. Check this article to install FAMP stack.

Install the ‘opencart’ package. This also installs the dependencies required.

pkg install opencart

Once the package and its dependencies are installed, edit the file /usr/local/etc/apache24/httpd.conf and make the following changes.

DocumentRoot "/usr/local/www/opencart"
<Directory "/usr/local/www/opencart">
    Options Indexes FollowSymLinks
    AllowOverride None
    Require all granted

Restart Apache service once the changes are made.

/usr/local/etc/rc.d/apache24 restart

Let us now create the database and the user required by OpenCart.

mysql -uroot -p
mysql> create database opencart;
mysql> GRANT ALL ON opencart.* TO 'opencartuser'@'localhost' IDENTIFIED BY 'opencartpassword';
mysql> quit

The installation can be started by using the following URL on the browser.


Complete the installation through the web pages. Once the installation is complete remove the install directory.

rm -rf install

Now you can login to the admin console using the following URL


Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out /  Change )

Twitter picture

You are commenting using your Twitter account. Log Out /  Change )

Facebook photo

You are commenting using your Facebook account. Log Out /  Change )

Connecting to %s