Sufi Nawaz

SELinux settings to allow apache to send mail

Posted by in Code Snippets, Tutorials

I was working in a WordPress instance today that is installed in a Centos box. The issue was that I could not send any email through wp_mail() function in wordpress, which essentially uses PHP’s mail() function, which in turn, uses sendmail. So the very first thing I’ve tried doing was to create a simple PHP test script and ran it from the machine locally. The email worked fine so I knew sendmail was not the problem. Next, I tried to execute the script over the webserver, and sure enough, the…read more

Better Headshot Photography by Tilting Subject’s Head Forward

Posted by in Photography, Recommended Videos, Tutorials

If you’re into portrait photography like me, you’d find this video highly useful. This video tutorial is by Peter Hurley, a photographer from New York, talks about the importance of jawlines. As trivial as it sounds, his video demonstrates the significance of jawlines in headshots and how you can take great headshots by simply having the subject pull forward their chin and tilting their forehead towards the camera. Under the correct light settings, I’ve had seen the difference myself and this video serves as an enforcement for me. If you…read more

Linux /etc/resolv.conf equivalent in Windows 8 to add Domain Suffixes

Posted by in Tutorials

To add search domain names to resolve in Linux, I can simple add them to /etc/resolv.conf file. But what about in Windows 8? Follow these simple steps to add search domain names in Windows 8. Find your network adapter in Network Connections. In my case, I’m using Wi-Fi adapter. Right click on it and go to Properties. Select TCP/IPv4 and click on Properties. Under General tab, click on Advanced. This will open Advanced TCP/IP Settings window Check on Append these DNS suffixes(in order) and click on Add… Add one or multiple domain suffix….read more

0

How to install WordPress MU 2.9.2

Posted by in Technology, Tutorials

1) Download WordPress MU from here. 2) Extract all files to a directory of choice. For instance, http://[domain]/wp 3) Create an database (without adding tables) named “wordpress” without the quotes. 4) Use http://[domain]/wp to access your blog. On first attempt, it would take you to a window where you can configure the settings. Couple of things to notice here, if you’re installing wordpress MU locally, then use the IP address http://127.0.0.1 instead of typing http://localhost. The reason being, if you use http://localhost, it will ask you to use http://localhost.localdomain which…read more

0