Prestashop
From Proxmox VE
Appliance Details
| Package: | prestashop |
| Version: | 1.3.6.0.SVN.4842-1 |
| Certified: | no |
| Section: | www |
| Location: | http://www.gnuacademy.org/appliances/debian-6.0-prestashop_1.3.6.0.SVN.4842-1_i386.tar.gz |
| Maintainer: | Ap.Muthu |
| OS: | debian-5.0 |
Introduction
Prestashop is an Open Source Web Shop.
For more details see: Prestashop Site
Virtual Appliances can be downloaded directly via the Central Web-based Management if apm-available is used.
SVN Write Access to Prestashop
Circa 17th Aug 2010: You cannot modify PrestaShop yourself! Only the PrestaShop developers can. Otherwise, anyone would be able to introduce malware or bad code into PrestaShop. You should post a bug report and wait for a PrestaShop developer to fix it on SVN for you.
Recommended settings for Proxmox VE
- Memory (MB): 512
- Swap (MB): 512
- Hard disk (GB): 8
Appliance specific settings
Mysql root password: random and available in /root/.my.cnf. You can change this via command line by:
mysqladmin -u root -p password yournewpasswordhere
- Set the server timezone via command line:
dpkg-reconfigure tzdata
- Restart VM
Prestashop Packages
- Debian Squeeze
- Postfix
- MySQL 5.1
- Apache2
- PHP5 with xsl, xmlrpc and cURL
- zip, unzip, bzip2
- Prestashop v1.3.x SVN
Character Conversion
This template addresses Character Set encoding issues that will default from the current latin1 to UTF8 in later revisions of MySQL.
First steps
Start the VM and open a VNC console and install the latest security updates.
apt-get update apt-get dist-upgrade
It is fully preinstalled with SEF URLs. Admin login credentials with initial password:
Username: admin@mydomain.com Password: presta123
Change the password and admin email id after logging in.
The configuration is stored at:
var/www/prestashop/config/settings.inc.php
The admin url suffix for Prestashop is shown in the first startup logs of the Virtual Machine. The URL with the suffix will be of the form http://__YOURIP_ADDRESS__/adminXXXX where the XXXX is alphanumeric.
If you wish to move the blocks around from their default layout areas, then follow the Transplant-a-Module page.
Recommended Modules
After logging in as an admin, we can install modules we need.
Recommended Modules to be installed:
Advertisement - None Stat Engines: XML/SWF Charts v1.0 ExtJS v1.0 Products: Products Category v1.2.1 Send to a Friend module v1.1 Payment: Bank Wire v0.5 (Configure) Cheque v2.3 (Configure) PayPal v1.7.1 (Configure) Tools: Canonical URL v1.3 (Configure) Home text editor v1.5 (Configure) Blocks: Cart block v1.2 (Configure - Ajax or not) Categories block v1.0 (Configure - depth) Currency block v0.1 Info block v1.1 (Configure) My Account block v1.2 Newsletter block v1.4 (Configure) Quick Search block v1.0 User info block v0.1 Viewed products block v0.9 (Configure - no. of products displayed) Stats: Pages not found v1.0 Search engine keywords v1.0 Software v1.0 Geolocation v1.0 (Configure - Country on Map) Condensed stats for the Back Office homepage v1.0 Visitors online v1.0 Newsletter v1.0 Visitors origin v1.0 Registered Customer Info v1.0 Product details v1.0 Customer accounts v1.0 Sales and orders v1.0 Shop search v1.0 Visits and Visitors v1.0
Under the Blocks above, the Info block v1.1 is the one that shows up the login link.
To install a new currency and payment options:
Shipping -> Countries Options -> Default Country (This template default is Singapore) Payment -> Currency Restrictions -> Click on the heading icon and the check marks get toggled for the entire column Payment -> Currencies -> Add New Payment -> Currencies Options -> Set Default Currency -> Update Exchange Rate
Passwords in PrestaShop v1.3.x
Make a file called pass.php with the following content:
<?php
include(dirname(__FILE__).'/config/config.inc.php');
if(intval(Configuration::get('PS_REWRITING_SETTINGS')) === 1)
$rewrited_url = __PS_BASE_URI__;
$pass = (isset($_REQUEST['p']) ? trim($_REQUEST['p']) : 'presta123');
echo "The PrestaShop v1.3.x encrypted value of <br><b>$pass</b><br> is <br><b>" . md5(pSQL(_COOKIE_KEY_.$pass)) . "</b>";
?>
and place it in /var/www/prestashop and use it to get the encrypted MD5 Hash of a desired password as stored in the ps_employee table. For example, to get the hash for password abcdef1234, browse to:
http://__YOURIPADDRESS__/pass.php?p=abcdef1234
and it returns the md5 encrypted hash. It is this hash that is stored in the password field passwd in the table ps_employee. When moving Prestashop across servers (and / or VMs), please note that this hash is dependant on the _COOKIE_KEY_ defined in the /var/www/prestashop/config/settings.inc.php file.
Upgrading to v1.3.7.0
On the console execute the following:
# Upgrade Start : Prestashop v1.3.6.0 SVN 4842 to v1.3.7.0 SVN 5023 # wget http://www.sacollege.net/files/appliances/prestashop_1360svn4842_1370svn5023.tar.gz tar -zxpf prestashop_1360svn4842_1370svn5023.tar.gz -C /var/www/ rm -f prestashop_1360svn4842_1370svn5023.tar.gz sed -e "s/define('_PS_VERSION_', '1\.3\.6\.0');/define('_PS_VERSION_', '1.3.7.0');/" -i /var/www/prestashop/config/settings.inc.php # # Upgrade End
If you are interested in subscribing for upgrades to PrestaShop and latest releases contact Maintainer above.
Upgrading to v1.4
The Prestashop Development Team has now released v1.4 Final with an extended and altered SQL set. The states (same SQL schema set as before) for Argentina (ID 44) have been introduced and Brazil (ID 58) and China (ID 5) removed. Indian (ID 110) States have not been included despite my submission to the team. All these states can be included in v1.4 with these SQLs.
The Development Team has also released a 4 page Migration Guide from v1.3.x to v1.4.x in PDF format (638 KB).
Install Screenshots PrestaShop v1.4
Needs: apt-get install php5-mcrypt
- Opening Install Page: http://ip.of.prestashop.install/
- System and Permissions: chown -R www-data:www-data /var/www/prestashop
- Database Configuration: Use credentials of pre-created DB
- DB Config Verified
- Shop Configuration
- Finito!
Remove install folder, rename admin folder and remove readme_*.txt files.
Building Prestashop
Documentation and HowTo´s about Prestashop
- Home | Report Bugs | Forums | SVN v1.3.x, v1.4.x
