I need help installing ZenCart on our new VPS

October 10, 2013 4.7k views
can someone explain how to install ZenCart on our new VPS? i installed the LAMP stack no problem.
9 Answers
First, download the latest version of zencart
wget http://optimate.dl.sourceforge.net/project/zencart/CURRENT%20-%20Zen%20Cart%201.5.x%20Series/zen-cart-v1.5.1-full-fileset-09182012.zip
unzip and move to /var/www/
apt-get install zip 
unzip zen-cart-*.zip -d /var/www/ 
mv /var/www/zen-cart-* /var/www/zen-cart/
create MySQL db
mysql -u root -p 
CREATE USER 'zenuser'@'localhost' IDENTIFIED BY 'yournewpassword'; 
GRANT ALL PRIVILEGES ON zencart.* TO 'zencartuser'@'localhost'; 
create Apache vhost https://www.digitalocean.com/community/articles/how-to-set-up-apache-virtual-hosts-on-ubuntu-12-04-lts , for instance
ServerAdmin you@your.tld 
DocumentRoot /var/www/zen-cart/ 
ServerName your.tld 
ServerAlias www.your.tld 
ErrorLog logs/your.tld-error_log 
CustomLog logs/your.tld-access_log common
restart Apache service apache2 restart Prepare installer, change permissions (some folders and files need writable permissions for use in Zen Cart)
cd /var/www/zen-cart/ 
mv admin/includes/dist-configure.php admin/includes/configure.php 
mv includes/dist-configure.php includes/configure.php 
chmod 777 admin/includes/configure.php 
chmod 777 includes/configure.php 
chmod 777 cache 
chmod 777 includes/languages/english/html_includes 
chmod 777 logs 
chmod 777 media 
chmod 777 pub 
chmod 777 images/ 
chmod 777 admin/backups 
chmod 777 admin/images/graphs
Go to http://your.tld/zc_install to complete the installation. To finish, delete / dir & reset permissions /admin/includes/ /includes/ files to read-only mode 644. Rename /admin to something else. configure.phpand configure.phpof zc_installthe You might stumble upon the following error:
ERROR: date.timezone not set in php.ini. Please contact your hosting company to set the timezone in the server PHP configuration before continuing.
fix it: nano /etc/php5/apache2/php.ini search for date, then set for example: date.timezone = "Europe/Amsterdam" Now save, close and restart your apache. service apache2 restart Happy installing.
by Etel Sverdlov
This tutorial shows you how to set up a new directory, how to grant the correct permissions, how to add content to a new page, how to turn on virtual hosting, and how to, if needed, set up local hosts. Virtual Hosts are used to run more than one domain off of a single IP address and allows you to run multiple sites off of a single DigitalOcean droplet. This tutorial describes how to set up virtual hosts with Apache.
Also, some payment and shipping modules of Zendesk require cURL in order to talk to an external server to request real-time quotes or payment authorizations. To install cURL:

sudo apt-get update
sudo apt-get install curl libcurl3 libcurl3-dev php5-curl
service apache2 restart
sorry but i'm already stuck here...

i download zipped ZC no problem. in the command line i typed...
apt-get install zip

no problem. but then i typed..
unzip zen-cart-*.zip -d /var/www/

and it said 'no zip files found.

do i need to upload to server? via ftp?

Did you successfully download the zencart zip file to your server using wget?

you have to use the unzip command in the same dir as the downloaded zip file.

don't hesitate to post where you're stuck, you will be helped.
this line seems to be failing.
mv /var/www/zen-cart-* /var/www/zen-cart/

i get 'no such file or directory'. am not familiar with 'var/www/..'

can i just move via the ftp? i see the uncompressed folder in the root dir.
i see the installer page in the web browser
Try going through the installation wizard, it should work fine.

You can also easily install Zen Cart on DigitalOcean via Cloudways. Here is a short tutorial we have written recently on our blog.

Have another answer? Share your knowledge.