Category Archives: linux

HTTP Compression

Test if a site has compression enabled: Enable compression by adding the following line to .htaccess: AddOutputFilterByType DEFLATE text/html text/css text/plain text/xml application/x-javascript  

Posted in linux, web development | Leave a comment

FTP Notes

Proftpd connections: ftptop – show current connections in realtime in a ‘top’ like format ftpwho – list current connections Restart Proftpd (Parallels Plesk/Cent OS): /etc/init.d/xinetd restart Active vs Passive FTP: A good article on this subject can be found here. MS-DOS … Continue reading

Posted in computing, linux, windows | Leave a comment

Apache reset/delete logs The correct procedure is to move the logfile, then signal Apache to tell it to reopen the logfiles. Apache is signaled using the SIGHUP (-1) signal. e.g. mv access_log access_log.old kill -1 `cat` Note: is a file containing the process id of the Apache httpd … Continue reading

Posted in computing, linux | Leave a comment

Vi Commands

Movement: h, j, k, l  – left, down, up, right spacebar – right Copy/paste: Y – copy one or more lines p – paste line below current cursor P – paste line above current cursor Line numbers: :set number

Posted in computing, linux | Leave a comment

Linux Notes

Hard links: ln /path/file1 /path/file2 Associates one physical file with another name (file2). Both access the same file. Can’t be used with directories. Can’t cross file system boundaries. Soft (symbolic) links: ln -s /path/source /path/alias Creates an alias to a … Continue reading

Posted in computing, linux | Leave a comment