Archive for the ‘Sys Admin’ Category

Git Archive Like SVN Export But Better

Posted on March 5th, 2010 in Mac OSX, PHP, Sys Admin, Web Development | No Comments »

If you are switching from Subversion to Git and want to know the best way to export your code similar to svn export then here is a great command to know about.

git archive -o ~/Desktop/project.zip HEAD

That will extract your most recent stuff in your current branch, zip it up, and drop it on your desktop. We do a lot of WordPress plugin development and with this single command we can get our plugin code ready for installation extremely quickly. Here is more information about git archive.

Setup Subversion with cPanel and Apache

Posted on January 21st, 2010 in Everyday Tips, PHP, Sys Admin | 1 Comment »

This is a  summary of how to set up a new svn repository that you can access through apache when your server is configured with cPanel. This is not a tutorial on installing cPanel and Subversion.  The assumption is that you already have subversion installed on your cPanel managed server.

Read the rest of this entry »

How To Tar A Directory

Posted on February 23rd, 2008 in Everyday Tips, Sys Admin | No Comments »

I constantly forget how to tar a directory. I think the ln command and the tar command have their parameters in different orders and I can never seem to remember which parameter is the dir you are archiving and which one is the name for the archive. So here it is:

tar -czf archive.tgz dirName

Ruby on Rails + SSL + ISPConfig + Apache 2.0 + Mongrel

Posted on June 13th, 2007 in Ruby on Rails, Sys Admin, Ubuntu | No Comments »

If you are using ISPConfig to manage the virtual hosts on your web server, you will notice that there is no way to separate SSL vs non-SSL Apache directives using the standard web interface. This is a problem if you are writing Ruby on Rails applications and proxying requests through Apache to a Mongrel cluster because Mongrel won’t know what type of requests it is receiving. Being behind the proxy, Mongrel doesn’t know if the original requests are coming via HTTP or HTTPS. The solution is to add RequestHeader set X_FORWARDED_PROTO ‘https’ as a line in your Apache virtual host configuration for the SSL virtual host. I will tell you how to get ISPConfig to handle that for you. I will also show how to get GoDaddy.com ssl certificates working and how our Apache 2.0 randomized proxy balancer works.

Read the rest of this entry »

FTP Login Delay With Proftpd – Ubuntu Perfect Setup

Posted on June 11th, 2007 in Sys Admin, Ubuntu | 2 Comments »

I manage serveral servers and – for the most part – they are all set up using the Perfect Setup for Ubuntu. Overall the setup is great, but I have been noticing a very annoying delay when trying to log in via FTP. Everything works, but when I initially connect, 5 – 10 seconds pass by before I’m prompted for my login credentials. After many hours of pain and sadness, I finally discovered the solution.

Read the rest of this entry »

Long Delay Before SSH Authentication

Posted on May 18th, 2007 in Sys Admin, Ubuntu | 3 Comments »

If you are experiencing a long, annoying delay when attempting to connect to a remote server via SSH – especially if you have recently noticed this problem after installing/upgrading Ubuntu Feisty – try commenting out the “GSSAPIAuthentication yes” line in your /etc/ssh/ssh_config file:

Read the rest of this entry »

Mail Not Delivered To Hotmail/MSN Accounts

Posted on May 8th, 2007 in Sys Admin, Ubuntu | 8 Comments »

If you have a VPS or your own dedicated server and you can’t send mail to Hotmail or MSN email accounts, the good news is that the solution is easy. I manage a few Postfix mail servers and I was getting lines like this in my /var/log/mail.log file.

Read the rest of this entry »

Get Adobe Flash playerPlugin by wpburn.com wordpress themes