Question
I need help installing ZenCart on our new VPS
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.
×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.
×wget http://optimate.dl.sourceforge.net/project/zencart/CURRENT%20-%20Zen%20Cart%201.5.x%20Series/zen-cart-v1.5.1-full-fileset-09182012.zipunzip 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 DATABASE zen; CREATE USER 'zenuser'@'localhost' IDENTIFIED BY 'yournewpassword'; GRANT ALL PRIVILEGES ON zencart.* TO 'zencartuser'@'localhost'; FLUSH PRIVILEGES;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 commonrestart 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/graphsGo 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.if someone else like me is following this article new file for wget is
Do it directly in cd /var/www/html/ saves time