Manually Setting the File and Directory Permissions:
- First, check that all of your Magento directories are readable and executable by your web server’s user. Normally the web server runs as “apache” (running the server as user “nobody” is NOT recommended for security reasons).
- Try to limit permissions to only your ftp/shell username and the web server. You can do this by changing the owner of files to their ftp/shell username and set the group to the web server’s group. chown -r yourname:apache /your/magento
- Make files (not directories) readable by your web server: find /your/magento -type f -exec chmod 640 {} ;
- Set the file permissions for Magento directories to readable and executable: find /your/magento -type d -exec chmod 750 {} ;
- Lastly, set the permissions for directories that need to be writable and executable: chmod 770 /your/magento/app/etc chmod 770 /your/magento/var chmod 770 /your/magento/var/cache chmod 770 /your/magento/media chmod 770 /your/magento/media/downloadable chmod 770 /your/magento/media/import
Take Security Seriously
Setting up and running an e-commerce web server securely is extremely important because of the nature of the website. A compromised web server can allow hackers easy access to thousands of credit card numbers before the security breach is even noticed. If you are unsure about security, it is recommended that you use a scalable e-commerce service or that you hire an experienced and trusted Magento developer.Need help setting up your site on Magento? Find out if Magento is right for your ecommerce website. Contact the web developers at TheeDigital in Raleigh, NC at 919-341-8901 or schedule a consultation.
Tags: Magento