Archives
- October 2024
- August 2024
- June 2024
- May 2024
- February 2024
- December 2023
- October 2023
- June 2023
- April 2023
- August 2016
- June 2016
- May 2016
- February 2016
- December 2015
- October 2015
- May 2015
- April 2015
- January 2015
- December 2014
- November 2014
- October 2014
- January 2014
- December 2013
- November 2013
- October 2013
- August 2013
- July 2013
- May 2013
- April 2013
- March 2013
- February 2013
- January 2013
- December 2012
- November 2012
- October 2012
- September 2012
- August 2012
- July 2012
- June 2012
- April 2012
Categories
Meta
Monthly Archives: July 2012
Browser-Side Caching with Apache
Browser-side caching relies on HTTP headers to know whether or not the content it has in its local cache is still valid. If it is, then it uses the local copy, rather than downloading the file from the server again. … Continue reading
Posted in Apache, Linux
Leave a comment
Magento Notes
Deleting magento cache: You may safely delete the content of var/cache/* and var/session/* or use the “Refresh Cache” functionality within the Admin. To determine magento version:
Posted in Uncategorized
Leave a comment
Subversion Stuff
To establish a subversion repository anew: svnadmin create /var/svn/myrepos svn mkdir -m “creating the trunk dir” file:///var/svn/myrepos/repo1 svn import -m “Adding first directory” /var/www/vhosts/mydomain.com/wordpress file:///var/svn/myrepos/repo1 **Note that if you don’t specify a directory to copy, subversion is happy to add … Continue reading
Posted in Linux
Leave a comment
Grepping (and egrepping) with Style
Grep is a powerful tool. It can do many things well. It can also be used in conjunction with other tools. If you are new to grep, it is a supercharged search tool. The basic format of the command is: … Continue reading
Posted in Linux
Leave a comment
zend_mm_heap corrupted messages in apache logs
zend_mm_heap corrupted if php5.2. google for patch if php5.3 increase apc memory size in apc.ini
Posted in Linux
Leave a comment
Access Control Lists
Add ACL for apache user: First see what ACLs exist already: root@server1 mysite.org]# getfacl /var/www/vhosts/mysite.org/uploads getfacl: Removing leading ‘/’ from absolute path names # file: var/www/vhosts/mysite.org/uploads # owner: user1 # group: user1 user::rwx group::rwx mask::rwx other::r-x default:user::rwx default:group::rwx default:mask::rwx default:other::r-x … Continue reading
Posted in Linux
Leave a comment
Tune MySQL
wget http://www.day32.com/MySQL/tuning-primer.sh sh tuning-primer.sh
Posted in Linux
Leave a comment
Common rewrite rules
The easiest way to redirect one site to another is by adding the following to the Virtualhost: Redirect 301 / http://newsite.com/ Note: When AllowOverride is set to allow the use of .htaccess files, Apache will look in every directory for … Continue reading
Posted in Linux
Leave a comment
Number of processors/number of cores
cat /proc/cpuinfo | grep processor | wc -l Counts the number of processor lines
Posted in Linux
Leave a comment