Category Archives: Unix

add xCode install of git to your path

http://vandadnp.wordpress.com/2012/04/06/git-from-command-line-after-installing-xcode-on-os-x-lion/ export PATH=”/Applications/Xcode.app/Contents/Developer/usr/libexec/git-core/”:$PATH

Posted in OS X, Unix | Comments Off

OS X apache permissions

Setting up a web server on OS X other than the built in one and serving sites from the Document directory always causes permissions headaches this stackoverflow response helped nut it out ( http://stackoverflow.com/questions/2001881/correct-owner-group-permissions-for-apache-2-site-files-folders-under-mac-os-x ) In Summary This is the most … Continue reading

Posted in PHP, Unix, Web Programming, Websites | Comments Off

Chmod Web directories from the command line

find /path/to/base/dir -type d -print0 | xargs -0 chmod 755 find /path/to/base/dir -type f -print0 | xargs -0 chmod 755 these guys rock http://superuser.com/questions/91935/how-to-chmod-755-all-directories-but-no-file-recursively

Posted in Unix | Tagged , | Comments Off

Joomla install with php running as nobody

Use this from command Line > chown -R nobody . Don’t forget to change the owner back to the account or ftp won’t work – never good comes from the instructions here: http://help.joomla.org/content/view/40/132/

Posted in Joomla, Unix | Tagged , , | Comments Off

Getting rid of files from the command line

Dreamweaver’s check in and check out functionality can be quite useful when working with more than one person on a site but it creates heaps of .LCK files. If you want to remove them from the command line go to … Continue reading

Posted in Unix | Tagged , , , , , | Comments Off