Archive for category: Security

Multiple Directories w/ PHP open_basedir

06 Apr
April 6, 2011

I’ve been using PHP’s open_basedir function since I first setup my server, several years ago. It’s a really useful function for securing your servers, although it isn’t perfect. For years, I’ve had problems with the temporary directory not being accessible. Of course, it was a simple fix to use php_admin_value     open_basedir /var/www/vhosts/saebermedia.com php_admin_value     upload_tmp_dir /var/www/vhosts/saebermedia.com/.tmp [...]

Easy PayPal PDT

08 Jun
June 8, 2010

Many of you should be familiar with PayPal and the shopping cart services they offer, namely PDT and IPN. I’ve already dealt with IPN in this post, so now it’s time for PDT. PDT allows visitors to return to your site after a transaction and see the details of what they just purchased. Simply create [...]

PHP File Browsing Script

26 May
May 26, 2010

I made this script for one of my dev servers so I could quickly bring up file listings and files without FTP. It doesn’t have any editing features, and is very simplistic (Maybe I’ll extend it later, or you can as a practice exercise). It shows file/directory permissions and sorts my alphabet. It also limits [...]

Python and Django

15 May
May 15, 2010

I’ve been busy learning Python and Django lately. Python is a great language, and Django is an excellent framework. I still enjoy PHP, especially for scripting, but I also see that it has certain pitfalls that Python doesn’t (And vice versa). Django is a framework for web development, and a good one at that. It [...]

Courier IMAP SSL Certificates

13 May
May 13, 2010

Tonight, I logged into my email only to discover my SSL certificate had expired! So I logged into SSH to create a new one, only to find out how hard it is! So now that I’m done and it’s working all nice and proper, I’d like to share my knowledge. I’ve obtained parts of this [...]