Tuesday, 24 November 2015

Speeding Up WordPress with Leverage Browser Caching

Add the following code into .htaccess file. 

Speeding Up WordPress with Leverage Browser Caching - Wanna Apps


Options All -Indexes
ExpiresActive on

# Your document html
ExpiresDefault "access plus 2 days"
# Media: images, video, audio
ExpiresByType image/gif "access plus 1 month"
ExpiresByType image/jpeg "access plus 1 month"
ExpiresByType image/png "access plus 1 month"

# CSS and JavaScript
ExpiresByType application/javascript "access plus 1 year"
ExpiresByType text/css "access plus 1 year"

Monday, 23 November 2015

How to Install SUPEE-6788 without SSH

October 27, 2015New Magento Security Patch (SUPEE-6788) – Install Immediately


Today, we are releasing a new patch (SUPEE-6788) and Community Edition 1.9.2.2 to address 10+ security issues, including remote code execution and information leak vulnerabilities. This patch is unrelated to the Guruincsite malware issue. Be sure to test the patch in a development environment first, as it can affect extensions and customizations. Download the patch from the Community Edition Download page and learn more at 

http://magento.com/security/patches/supee-6788


Preparations

Warning: This patch may break some third-party modules that makes extensive use of custom variables and custom admin routes. Refer to community maintained list of all known incompatible extensions.

    Applying Magento patches via FTP/sFTP or FileManager / File Upload

    To apply patches in this way we simply replace changed files. This way can not be used blindly if you or your developers have changed any core Magento files (which is a big no-no, by the way). Such changes should be re-applied to patched files, or you loose these changes.
    The following files are changed by SUPEE-6788:
    001
    002
    003
    004
    005
    006
    007
    008
    009
    010
    011
    012
    013
    014
    015
    016
    017
    018
    019
    020
    021
    022
    023
    024
    025
    026
    027
    028
    029
    030
    031
    032
    033
    034
    035
    036
    037
    038
    039
    040
    041
    042
    043
    044
    045
    046
    047
    048
    049
    050
    051
    052
    053
    054
    055
    056
    057
    058
    059
    060
    .htaccess
    .htaccess.sample
    app/code/core/Mage/Admin/Model/Block.php
    app/code/core/Mage/Admin/Model/Resource/Block.php
    app/code/core/Mage/Admin/Model/Resource/Block/Collection.php
    app/code/core/Mage/Admin/Model/Resource/Variable.php
    app/code/core/Mage/Admin/Model/Resource/Variable/Collection.php
    app/code/core/Mage/Admin/Model/Variable.php
    app/code/core/Mage/Admin/etc/config.xml
    app/code/core/Mage/Admin/sql/admin_setup/upgrade-1.6.1.1-1.6.1.2.php
    app/code/core/Mage/Adminhtml/Block/Permissions/Block.php
    app/code/core/Mage/Adminhtml/Block/Permissions/Block/Edit.php
    app/code/core/Mage/Adminhtml/Block/Permissions/Block/Edit/Form.php
    app/code/core/Mage/Adminhtml/Block/Permissions/Block/Grid.php
    app/code/core/Mage/Adminhtml/Block/Permissions/Variable.php
    app/code/core/Mage/Adminhtml/Block/Permissions/Variable/Edit.php
    app/code/core/Mage/Adminhtml/Block/Permissions/Variable/Edit/Form.php
    app/code/core/Mage/Adminhtml/Block/Permissions/Variable/Grid.php
    app/code/core/Mage/Adminhtml/controllers/Permissions/BlockController.php
    app/code/core/Mage/Adminhtml/controllers/Permissions/VariableController.php
    app/code/core/Mage/Adminhtml/etc/adminhtml.xml
    app/code/core/Mage/Catalog/Model/Product/Option/Type/File.php
    app/code/core/Mage/Core/Controller/Front/Action.php
    app/code/core/Mage/Core/Controller/Varien/Router/Admin.php
    app/code/core/Mage/Core/Helper/UnserializeArray.php
    app/code/core/Mage/Core/Model/Email/Template/Filter.php
    app/code/core/Mage/Core/Model/Resource/Setup.php
    app/code/core/Mage/Core/etc/config.xml
    app/code/core/Mage/Core/etc/system.xml
    app/code/core/Mage/Customer/Block/Account/Changeforgotten.php
    app/code/core/Mage/Customer/Block/Account/Resetpassword.php
    app/code/core/Mage/Customer/controllers/AccountController.php
    app/code/core/Mage/Downloadable/Model/Product/Type.php
    app/code/core/Mage/Eav/Model/Resource/Attribute/Collection.php
    app/code/core/Mage/Sales/Model/Resource/Order/Item/Collection.php
    app/code/core/Mage/Sales/controllers/DownloadController.php
    app/code/core/Mage/SalesRule/Model/Resource/Coupon/Collection.php
    app/design/adminhtml/default/default/layout/admin.xml
    app/design/frontend/base/default/layout/customer.xml
    app/design/frontend/base/default/template/customer/form/register.phtml
    app/design/frontend/base/default/template/customer/form/resetforgottenpassword.phtml
    app/design/frontend/base/default/template/persistent/customer/form/register.phtml
    app/design/frontend/default/iphone/layout/customer.xml
    app/design/frontend/default/modern/layout/customer.xml
    app/design/frontend/rwd/default/layout/customer.xml
    app/design/frontend/rwd/default/template/customer/form/resetforgottenpassword.phtml
    app/design/frontend/rwd/default/template/persistent/customer/form/register.phtml
    cron.php
    dev/tests/functional/.htaccess
    errors/processor.php
    lib/Unserialize/Parser.php
    lib/Unserialize/Reader/Arr.php
    lib/Unserialize/Reader/ArrKey.php
    lib/Unserialize/Reader/ArrValue.php
    lib/Unserialize/Reader/Bool.php
    lib/Unserialize/Reader/Dbl.php
    lib/Unserialize/Reader/Int.php
    lib/Unserialize/Reader/Str.php
    lib/Varien/Data/Collection/Db.php
    lib/Zend/Xml/Security.php

    To install the patch via FTP/File Upload
    • select patch bundle archive corresponding to your Magento version from the table below and unpack it
    • upload all files and folders to Magento root directory of your store, replacing all files
    • delete dev/tests/functional/.htaccess from your store (if exists)

    Credits: https://magentary.com/kb/install-supee-6788-without-ssh/