12 May 2008

Installing Magento Commerce in cPanel account

Posted by Norman under: Guides .

Installing Magento is easy, but its tricky if you want to install it when PHP is running on server as CGI , the .tar.gz available for download is made to work when PHP runs as Apache module.

This is updated guide, the final output will be complete online shop like this

http://www.2mhost.com/magento/

if you are 2mhost customer, then simply submit a suppot ticket and tell us where you want to install Magento and we will install the latest version for you.

Notes:

* In the following steps, please replace <username> <database_name> <database_user> <database_pass> <magento_version> with its actual values.
* I presume that you will install magento in domain.com/magento
Setup steps:

1.  create MySQL data base, user and allow user to modify the DB

2. login server via shell and run (do not copy/paste lines start with #):

cd /home/<username>/www
# download and extract the sample data archive which will put sample products in the newly cart setup
wget http://www.magentocommerce.com/downloads/assets/<magento_version>/magento-sample-data-<magento_version>.tar.gz
tar -xf magento-sample-data-<magento_version>.tar.gz

# download and extract magento
wget http://www.magentocommerce.com/downloads/assets/<magento_version>/magento-<magento_version>.tar.gztar -xf magento-<magento_version>.tar.gz
# move the sample catalog in to the cart
mv  magento-sample-data-<magento_version>/media/catalog magento/media/catalog
# fix permissions and ownership of files
chown <username>.<username> -R magento
cd magento
find . -name ‘*.php’ | xargs chmod 755
find . -type d | xargs chmod 755
cd..
# Full fill the sample catalog with products from SQL file
cd magento-sample-data-<magento_version>
mysql <database_name> -u’<database_user>’ -p’<database_pass>’ < magento_sample_data_for_<magento_version>.sql

 
3-Open .htaccess file using the following command line:

pico .htaccess

Remove all lines in the file that start with php_flag then save and

4- Run Magento via browser to start the smooth installation wizard.

http://domain.com/magento

Leave a Reply

Browse

Calendar

May 2008
M T W T F S S
« Apr   Jun »
 1234
567891011
12131415161718
19202122232425
262728293031  

Categories

Links