How to secure you Magento installation from possible hacks

Magento is widely used as a powerful e-commerce platform, hence it is popular and widely used there are more hacks and malware created from outside world to attack magento to steal information or redirecting users to advertisement pages. Here I will tell you how you can protect your magento installation files, there are other steps […]

Linux: Add permission only on directory or files

That’s why I love linux, it has great deep level control over system, you can set permissions on just directories and skip files or just on files and skip directories. Isn’t that wonderful? In a web environment you don’t want to make core files writable but you want to have permissions for execute and read, […]

Magento Error 404 on every page

That is possible due to mod rewrite not working properly To solve this check either mod_rewrite is enabled if enabled then check your virtual host file and change it to following Often virtualhost file contains AllowOverride none that actually restricts magento .htacess files to execute. You need to put it to AllowOverride all.

Change file permissions recursively using php

You often ran into a position where you need to deploy your script on hosting and you have only ftp access. Your web server configuration may need to have right permissions on files to execute them. Normally on linux servers directory permissions are set to 0755 and file permissions are 644, but if security is […]

non-www to www redirection or www to non-www redirection

Introduction You are setting up a website? In more cases you will experience an odd situation where some of your links are working and some not or links starting with wwww are working but starting with http:// are not working and some might experience www is working but http is not. This happens because apache […]

How to remove “index.php” from all urls in Magento

Magento by default uses index.php for routing to urls. It is because some time you are on shared hosting and your apache is not configured with url rewrites = on or even on dedicated server you don’t have configured apache to work with url rewrites. To remove “index.php” from magento urls you need to turn […]