Technology related solutions, tips, tricks, and other interesting topics
If you notice Sendmail hanging up for many minutes while starting up at boot or while being used such as sending an email from a PHP script, it is probably a DNS lookup problem. Ensure your /etc/hosts file has the appropriate entries for your server that sendmail is running on:
127.0.0.1 [...]
In: General IT Info
6 Jun 2008Command to recursively chmod only directories:
find . -type d -exec chmod 755 {} \;
How to recursively set the execute bit on every directory:
chmod -R a+X *
The +X flag sets the execute bit on directories only
How to recursively chmod only files:
find . -type f -exec chmod 644 {} \;
How to recursively chmod only PHP files (only [...]
To determine what daemon or program is listening on a port in Linux or OS X you can use the lsof command. You need to run the command while logged in as root or if your operating system supports sudo like OS X, you can use that.
Command to run in Linux:
lsof -i -nP
Command to run [...]
This blog is about technology related topics. It will primarily contain problems and solutions to IT problems that I encounter on a day-to-day basis. In addition interesting things I come across either on or off the internet will be posted here as well. I will also include step-by-step tutorials to common tasks people may need to do with their computers.