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
</Directory>

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.

http://<ip-address>

 

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

http://<ip-address>/index.php/admin
Advertisements

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 )

Google+ photo

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

Connecting to %s