Here is a quick tip on how to remove a list of files. Let’s say you have the list of files inside a file called files_to_remove. Usually I would do something like this: LIST=`cat files_to_remove` and then ls -al $LIST just to check what is in the list and if it looks good. And finally: [...]
Entries Tagged as 'sysadmin'
HowTo remove a list of files
July 9th, 2010 · No Comments
Tags: CLI · HowTo · Tips and Tricks · sysadmin
Google will use site performance and page load speed in SERP ranking – sysadmin SEO here we come
April 13th, 2010 · 1 Comment
Page Load speed just became a lot more important – Google announced recently that it will use page speed in its SERP rankings. Here is a quote that will make the SEO and marketing folks knock on sysadmin doors: We encourage you to start looking at your site’s speed (the tools above provide a great [...]
Tags: Performance · sysadmin
Enable/Disable APC on virtual host level
March 18th, 2010 · No Comments
APC (Alternative PHP Cache) is a free, open, and robust framework for caching and optimizing PHP intermediate code. APC is a great tool to speed up a php driven site and I can’t even think of a big site running on a php framework without an opcode cache (other good choices are eaccelerator or xcache). [...]
Tags: Performance · Tips and Tricks · sysadmin
Mail Relay Issue on Cpanel Server
February 16th, 2010 · 1 Comment
I noticed lots of email being relayed on one of our shared hosting server, CentOS5 with Cpanel and running Exim, and the strange thing is that the email server (MX) for these accounts are pointing to Google (GoogleApps), and we have correct entries for localdomains and remotedomains for these account. The relayers (‘From’ server/address) looks [...]
Tags: Centos · Security · hosting · sysadmin
Change Squid outgoing address
October 19th, 2009 · No Comments
Typically Squid caching proxy server listen and outgoing IP address are the same. Sometimes, for various reasons we want to alter the outgoing IP address. The new address must first be brought up as an interface on the squid server. In squid.conf look for tcp_outgoing_address line, uncomment it and replace the default IP value with [...]
Tags: Installation · Tips and Tricks · sysadmin
HowTo display PHP errors when you don’t have access to php.ini
September 15th, 2009 · 1 Comment
If you are using a shared server, or just have a limited account on your company servers, you might not have access to your php configuration file php.ini (this is usually found under /etc/php.ini in rhel/centos and /etc/php5/apache2/php.ini in debian/ubuntu). Still, in many situations it might be needed to enable php errors in the browser [...]
Tags: CLI · Centos · Debian · HowTo · Tips and Tricks · sysadmin
CentOS 4.8 finally released!
September 1st, 2009 · No Comments
After a long development time, Centos 4.8 was finally released on the 21st August. This is a good thing that after the latest problems between the centos developers, they were able to pull this out finally and now be able to focus on the upcoming 5.4 release. There are no major changes in this update, [...]
Tags: Centos · Security · sysadmin
Using wildcards in nginx valid_referers
August 25th, 2009 · 1 Comment
This quick post will show how we can easily allow only certain http referrers see some location using nginx. This might be useful for example if you are using nginx as a static content provider and want to not allow everyone hot-linking your images and only your own sites. Doing something like this in nginx [...]
Tags: HowTo · Tips and Tricks · sysadmin
Using svn+ssh with a non-standard ssh port
August 17th, 2009 · No Comments
Many people use subversion over ssh for a simple and secure way to work on remotely hosted svn repositories. This is normally as simple as running: svn co svn+ssh://user@server/repo . If the remote ssh server is not running on the default ssh port (tcp 22) then this needs a little tweaking to get it working. [...]
Tags: CLI · HowTo · Tips and Tricks · sysadmin
System Admin Day – July 31st
July 30th, 2009 · 2 Comments
We will celebrate the Linux System Administrator Appriciation day tomorrow. Yes, there is such a thing, if its in wikipedia (wiki system administrator appreciation Day), than it must be true! See what its all about here: System Administrator Appreciation Day, also known as Sysadmin Day, SysAdminDay or SAAD, was created by system administrator Ted Kekatos. Kekatos was inspired to [...]
