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
Thank you for your excellent article, it really helped me.