Question

I need help installing ZenCart on our new VPS

  • Posted October 10, 2013

can someone explain how to install ZenCart on our new VPS?

i installed the LAMP stack no problem.

Subscribe
Share

Submit an answer
You can type!ref in this text area to quickly search our full set of tutorials, documentation & marketplace offerings and insert the link!

These answers are provided by our Community. If you find them useful, show some love by clicking the heart. If you run into issues leave a comment, or add your own answer to help others.

if someone else like me is following this article new file for wget is

wget https://excellmedia.dl.sourceforge.net/project/zencart/CURRENT - Zen Cart 1.5.x Series/zen-cart-v1.5.5e-03082017.zip

Do it directly in cd /var/www/html/ saves time

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

Try going through the installation wizard, it should work fine.

i see the installer page in the web browser <br>http://ipaddress/zen-cart <br>

this line seems to be failing. <br>mv /var/www/zen-cart-* /var/www/zen-cart/ <br> <br>i get ‘no such file or directory’. am not familiar with ‘var/www/…’ <br> <br>can i just move via the ftp? i see the uncompressed folder in the root dir. <br>

ahh, thanks

Did you successfully download the zencart zip file to your server using wget? <br> <br>you have to use the unzip command in the same dir as the downloaded zip file. <br> <br>don’t hesitate to post where you’re stuck, you will be helped.

sorry but i’m already stuck here… <br> <br>i download zipped ZC no problem. in the command line i typed… <br>apt-get install zip <br> <br>no problem. but then i typed… <br>unzip zen-cart-*.zip -d /var/www/ <br> <br> and it said 'no zip files found. <br> <br>do i need to upload to server? via ftp? <br> <br>

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: <br> <br>sudo apt-get update <br>sudo apt-get install curl libcurl3 libcurl3-dev php5-curl <br>service apache2 restart <br>

First, download the latest version of zencart

<pre>wget http://optimate.dl.sourceforge.net/project/zencart/CURRENT - Zen Cart 1.5.x Series/zen-cart-v1.5.1-full-fileset-09182012.zip</pre>

unzip and move to /var/www/ <pre>apt-get install zip unzip zen-cart-.zip -d /var/www/ mv /var/www/zen-cart- /var/www/zen-cart/</pre>

create MySQL db <pre>mysql -u root -p CREATE DATABASE zen; CREATE USER ‘zenuser’@‘localhost’ IDENTIFIED BY ‘yournewpassword’; GRANT ALL PRIVILEGES ON zencart.* TO ‘zencartuser’@‘localhost’; FLUSH PRIVILEGES;</pre>

create Apache vhost https://www.digitalocean.com/community/articles/how-to-set-up-apache-virtual-hosts-on-ubuntu-12-04-lts , for instance <pre> 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</pre> restart Apache <code>service apache2 restart</code>

Prepare installer, change permissions (some folders and files need writable permissions for use in Zen Cart) <pre>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</pre>

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: <pre>ERROR: date.timezone not set in php.ini. Please contact your hosting company to set the timezone in the server PHP configuration before continuing.</pre> fix it: <code>nano /etc/php5/apache2/php.ini</code> search for date, then set for example: <code>date.timezone = “Europe/Amsterdam”</code> Now save, close and restart your apache. <code>service apache2 restart</code>

Happy installing.