Report this

What is the reason for this report?

I need help installing ZenCart on our new VPS

Posted on October 10, 2013

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

i installed the LAMP stack no problem.



This textbox defaults to using Markdown to format your 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

ahh, thanks

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.

The developer cloud

Scale up as you grow — whether you're running one virtual machine or ten thousand.

Get started for free

Sign up and get $200 in credit for your first 60 days with DigitalOcean.*

*This promotional offer applies to new accounts only.