Zen Cart® truly is the art of e-commerce; free, user-friendly, open source shopping cart software. The ecommerce web site design program is developed by a group of like-minded shop owners, programmers, designers, and consultants that think ecommerce web design could be, and should be, done differently.
Zen Cart® provides basic functionality, but the skin and the layout is not good looking, and need some important modules. Such as database backup, source code backup,SEO,image handlesr and so on. I use v1.5.1 is because there are more useful mature plugins. The folder Plugins contains the import plugins in the changes, including:
ultimate_seo_urls_212
Simple_Google_Analytics_6
Image_Handler4_v4_3_2
backup_mysql_plugin_v5
WishLists
backup_zc_v1
Reset-Customer-Password
sitemapXML(v1.3.8-v1.5.1)
zen-cart-vChinese-simplified-utf8
All the plugins are fully merged and debugged. List some plugins in Admin:
This is the product detailed page after merging image handler, GPE, product tag etc.
Please also look at the folder images to see the all the differences.
/var/www: includes the source code for zencart.
/etc/apache2: includes the configure file for apache, such as port 80.
/db.sql: the database backup.
ubuntu14.04 + apache2 + php + mysql
sudo apt-get update
sudo apt-get install apache2
sudo add-apt-repository ppa:eugenesan/ppa
sudo apt-get install php5
sudo apt-get install phpmyadmin
sudo ln -s /usr/share/phpmyadmin /var/www
sudo apt-get install mysql-client-core-5.6
sudo apt-get install mysql-client-5.6
sudo apt-get install mysql-server-5.6
- Add below lines in file /etc/apache2/apache2.conf
AddType application/x-httpd-php .php .htm .html
AddDefaultCharset UTF-8
ServerName 172.17.171.41 #your ip, not 127.0.0.1
DirectoryIndex index.htm index.html index.php - Change "AllowOverride None" to =>"AllowOverride All"
- Open port 80.
refer to: https://help.aliyun.com/knowledge_detail/59367.html#ubuntu
netstat -an | grep 80
tcp 0 0 0.0.0.0:80 0.0.0.0:* LISTEN
tcp 0 0 172.17.171.41:41904 140.205.140.205:80 ESTABLISHED - Change directory to /var/www/
WampServer is a Windows web development environment. It allows you to create web applications with Apache2, PHP and a MySQL database. Alongside, PhpMyAdmin allows you to manage easily your database.But you want your web get viewed by others, your should move it to the server and open the port 80. I use ECS of aliyun.
This is the steps:
- Prepare the environment as before, linux, apach2, PHP, etc.
- Install the same zencart software V1.5.1. with the same username and password as WampServer.
- Backup /includes/configure.php and /admin/includes/configure.php on the server.
- Overwrite all the files on the server with local code.
- Restore /includes/configure.php and /admin/includes/configure.php on the server.
- Log on the phpMyAdmin and clean the database, use new datebase db.sql
- If you got error like 404, please check /var/www/.htaccess.
- Open apache rewrite.
- Set the configure.php as read only.
- Change the file admin/login.php
define('ADMIN_PASSWORD_EXPIRES_INTERVAL', strtotime('- 90 day'));
or change $message to true, you can use any password.
if ($message == false) {
$_SESSION['admin_id'] = $result->fields['admin_id'];
if (SESSION_RECREATE == ‘True’) {
zen_session_recreate();
}
zen_redirect(zen_href_link(FILENAME_DEFAULT, ”, ‘SSL’));
}
- Enter into phpmyadmin, open database of admin and run below code in SQL mode. After reset, the password is admin.
DELETE FROM admin WHERE admin_name = 'Admin';
INSERT INTO admin (admin_name, admin_email, admin_pass, admin_profile)
VALUES ('Admin', 'admin@localhost', '351683ea4e19efe34874b501fdbf9792:9b', 1);
- SSL, OpenSSL, CURL
- PayPal
- Test "west Union"
- Find a way to clean "sql log"