Apache · Apache 2.4 · BSD · e-Commerce · FAMP · FreeBSD · FreeBSD 10.0 · Magento · PHP · Web Server

Installing Magento 1.8 on FreeBSD 10

Magento is an open-source e-commerce platform written in PHP. In this article let us see how to install Magento 1.8 on FreeBSD 10.x. This procedure is tested on FreeBSD 10.2.

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

Install the ‘magento’ package using the following command. It also installs the dependencies required.

pkg install magento

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/magento"
<Directory "/usr/local/www/magento">
    Options Indexes FollowSymLinks
    AllowOverride None
    Require all granted

Change the ownership and permissions required by Magento files.

chown -R www:wheel magento
chmod -R +w magento

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 Magento.

mysql -uroot -p
mysql> create database magento;
mysql> GRANT ALL ON magento.* TO 'magentouser'@'localhost' IDENTIFIED BY 'magentopassword';
mysql> quit

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



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


One thought on “Installing Magento 1.8 on FreeBSD 10

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