August 5th, 2010 by andrew · No Comments
Looks like consolidation in the hosting space continues as Softlayer is going to be under the same ownership as “The Planet”.
For those who are not aware, GI also owns a large stake in The Planet, and I now have the pleasure of telling you that we are in discussions to merge The Planet with SoftLayer. The goal is for the transaction to be complete in the fourth quarter of this year.
I know you have a lot of questions. To be perfectly honest, we are at the beginning of this and don’t have all the answers. Teams at both companies have just begun discussing how to integrate our organizations, and their work will yield the details we don’t yet know.
Tags: Installation
July 29th, 2010 by andrew · No Comments
I have already mentioned that google will start penalizing your site in search if it is not fast enough. I have recently given a presentation at Drupal Con about Drupal performance and page speed. Below is a video of our session – its currently the fifth most watched session from the conference according to archive.org. Alternatively, there are several different formats there as well.
Tags: Performance · drupal
July 9th, 2010 by marius · 10 Comments
Debian Etch has been discontinued for a while now, and in an ideal world everyone has upgraded to lenny a long time ago. Still, this is not always possible and there are some systems out there that are still running etch, some for a good reason, some just because their admins are lazy
. Recently we worked on a project with such a system that was still running etch, and the devs on the team told us that all is working perfect but they are no longer able to install new packages using apt tools. Hmm… let’s see.
And indeed running apt update was giving a 404 error, as the etch files are no longer in the main ftp archive (on ftp.debian.org):
apt-get update
Ign http://ftp.debian.org etch Release.gpg
Ign http://ftp.debian.org etch Release
Ign http://ftp.debian.org etch/main Packages
Ign http://ftp.debian.org etch/non-free Packages
Ign http://ftp.debian.org etch/contrib Packages
Err http://ftp.debian.org etch/main Packages
404 Not Found [IP: 130.89.149.226 80]
Err http://ftp.debian.org etch/non-free Packages
404 Not Found [IP: 130.89.149.226 80]
Err http://ftp.debian.org etch/contrib Packages
404 Not Found [IP: 130.89.149.226 80]
Fetched 4B in 1s (3B/s)
Reading package lists... Done
W: Couldn't stat source package list http://ftp.debian.org etch/main Packages (/var/lib/apt/lists/ftp.debian.org_debian_dists_etch_main_binary-i386_Packages) - stat (2 No such file or directory)
W: Couldn't stat source package list http://ftp.debian.org etch/non-free Packages (/var/lib/apt/lists/ftp.debian.org_debian_dists_etch_non-free_binary-i386_Packages) - stat (2 No such file or directory)
W: Couldn't stat source package list http://ftp.debian.org etch/contrib Packages (/var/lib/apt/lists/ftp.debian.org_debian_dists_etch_contrib_binary-i386_Packages) - stat (2 No such file or directory)
W: You may want to run apt-get update to correct these problems
and the apt sources line causing this error was (from /etc/apt/sources.list):
deb http://ftp.debian.org/debian/ etch main non-free contrib
We could not upgrade the machine because of internal constrains, and this was not even the scope of our project, but we needed to install some new debian packages we had to point the apt sources to a new place and this is to the archive.debian.org that continues (and will continue) to have the etch files. Basically our new apt sources became:
deb http://archive.debian.org/debian/ etch main non-free contrib
and this made it possible to complete our project and install the needed libraries. A few weeks after we finished the project we were hired for a new project to perform the upgrade to lenny, but this is a different storry.
I hope you found this post useful, in case for some reason you are still running etch and need to find a proper etch mirror to install new softwares as needed. Of course I would urge you to upgrade to lenny, or even to squeeze if possible, as etch is no longer supported, you have no longer security patches, etc.
Tags: Debian
July 9th, 2010 by marius · No Comments
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:
rm -vf $LIST
Tags: CLI · HowTo · Tips and Tricks · sysadmin
June 13th, 2010 by marius · 14 Comments
While working on setting up a backup script for a subversion repository I encountred an interesting problem. I’ve done this before many times, on different repos, and haven’t seen any issues, but in this case the backup command that is using the built-in svnadmin hotcopy command was failing with this error:
svnadmin hotcopy --clean-logs /svn/repo/ /backup/repo/
svnadmin: Can't open file '/svn/repo/db/fsfs.conf': No such file or directory
Hmm… looking at the respective path I can see that the command is not lying and that file fsfs.conf is indeed not present. I could find a file fs-type but not fsfs.conf. So my only assumption was that this is an older repository created with an older svn version than the one we were running currently. Checking the existing svn version I got:
svn --version
svn, version 1.6.11 (r934486)
compiled Apr 20 2010, 00:24:22
and the fact that this repo was very old (~2009) made my assumption sound correct. Ok, now what? Well in this situation my first thought was to use the svnadmin upgrade command; from the manual it looked like this is what I needed to fix this issue: [Read more →]
Tags: Tips and Tricks · svn
June 2nd, 2010 by andrew · No Comments
Funny, here is what you get to those who have not received this yet. I got this while on YouTube unlink accounts:
500 Internal Server Error
Sorry, something went wrong.
A team of highly trained monkeys has been dispatched to deal with this situation.
If you see them, show them this information:
9tE7ZMgxBSriv_77QysO1ltAPvPBKMi_nAq0HsNCM4reIvdRU5qCmvvn-uG9
x4XTgNjGQxteXotgBV7IeeugS_eQq17zaz5OoKdyub6gP7ilQgI3bUWbZQQ7
VX6fbW3FBjOrkkOmvC1ROJHEZkysx_o6a4Y8n_vXzFL3ymU_i87bXN8RBzuk
l2JNYFAGdoNaLq_Q-bPXixNlQPoLwIAKECq7ZHGQPCDMe8tdkZCu6QE3Lz1v
dF5jgpnm-qmwZTPj695svH5zsCh9QkmD9SMsUVj10fETMVqgHwV6HL1XXtfS
w0uSnunW5hdVOMZ85VlQmH8w0lemC2k9C37y3yX69IyK_2NSeu1FE3F6nB90
XLHxG9BkSASeeo9z2BNKuDWoED_p9SJubi-xJ4vl1cPO5yXcwhoDWJ8icF-W
89IBGxsXYOoBshN-kULVBl0qCLx-OAL9b7cwIOpAi10NahEZzhjqsCLAYbh_
55mSawO0JyeQOMGvDH1smY-rm7uyCwoW5gjGf04C_s0pi-gHLduRf1DSlHMj
o11Lxme77acBzZG-gbW_Yvm9TClYQjHbbMEore2qmcRsGc7-PpcjG8I4fmjc
UwXd1jc87ELIafKFhbEfKKSOAEAzu5OjTPLgsexW0oL9LuxEcxAYu6rugY6Q
rlawjjaOloYkQmiKCmIKjKVa8TB3GLn1Q6U00GCpJ0U53s8YnFWFAK9y8XJy
uuPQzDzxpMWKa11FYzxgiSKr_JyDRSDh1Dg65hXyRGcf-Hs0mcdckvOFOWwD
K0dFbrcgxPqXVgsVpEjhxjVJnAftt3AKePsaPcKzW8k3BxlBGsyqWisk_gQ9
DuysZLb9jAI5zZVIGvDbN0uGM9pc6ARffEn3MkVHqdAnnzZ7WusTZ0bMT-vf
dTGlcycgcjx1StBKEcNhTYc1F_1FCf_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rD0BDbPMWyYwTsW0F_Np1qFG6ulr48HqkgexnXKg_MrG2rLHd_FL
-hwtu-0p-nMOSSPx1kdzve-rqiXVBbUqaj5QR2tSq24Flf0HkpDJ-tfGeVKc
rtJ-U1eYWZJho9L0MIaqBlOXgCtqB8lVrHlq8_LuCKMZGKsbn5HowL58Ug-a
zF-EAd7eMuZxjdoZqqiMOXJMK8A56MJFq5GQuvhw_P9tstCczq9688Qh6vUN
OYBiZ39m7L_5FoeN_u3A1NX2FUrb5ocXh8DWC21qTHaL3i0yEKWxZN3RMEY7
BMwO4I9pqYmNVTNHceRw9kjoXyp6qh-Yrf_8yRrb-bf3buk7uldHQjOa4qDw
yMFLTjejxiVpOJWYlymy5bGCGdCJDgf4_F6fYshPVUi6Rai7lF3DDuwJNquu
OwhO6q3b0pubxrw7w64Z9eazfybD2ZrvyVZJnowRHV7O2Ixb0fK016BW2cXq
_7V_fnM55BH5sr97xdJDSRX27WmduvDVqPnRqj2nicvWgaGnIvbsGAKJJXn2
7rICyih2gzF-U-d9YCBktgoCpTk9up_aXqT_oOqkTHwKnt4ksaDPkcwh3laj
9E-9rDEgBZ6Fbn8UpHJrxkxEyta1T1Mf115nJd3YjstAAtpdsZ2afGbyFzvS
dUMkySkLUSDVHJuKnQCaqOZRSQ96zVBc0m8SD5QNKUh0gj0voIMriUAuz_yh
Xl7KadRx4g8PiL8z94CSeBhsa8P_zwHZvAhWpnXqT1YDndz1HCmYy94gFD0F
xG2SmJD7GwGp_8wBAsYMCvQOH-n8keovGuFulosU2UivnVKnmL51mI7XMrpY
F7n6pOactiFAilO27zqXI9iIKYA8ELwbdRyhD3yWXedqSOArEIcSc7HakyNc
Tags: Installation
May 19th, 2010 by gerold · 1 Comment
I happened to setup a Joomla site from other hosting (zipped Joomla files and mysqldump), and after the setup on our server I got the error (below) – not exactly an error but a contents of “index.php” file. I found few Joomla related discussion regarding this issue but there’s no solution.
mark( 'afterLoad' ) : null; /** * CREATE THE APPLICATION * * NOTE : */ $mainframe =& JFactory::getApplication('site'); /** * INITIALISE THE APPLICATION * * NOTE : */ // set the
......
JDEBUG ? $_PROFILER->mark('afterRender') : null; $mainframe->triggerEvent('onAfterRender'); /** * RETURN THE RESPONSE */ echo JResponse::toString($mainframe->getCfg('gzip'));
I found the problem on “.htaccess” file as it contain a line “AddType x-mapp-php5 .php”. I commented out the line because I think it is related to parsing PHP files and this solved my problem. I searched for this code and it is related to servers with PHP 4 and 5 installed – details below from 1and1 hosting.
By default Apache uses PHP 4 for .php extension. If you don’t want to rename all your
scripts to .php5 you can do the following:
Create a .htaccess file and place the following line AddType x-mapp-php5 .php in it.
This will tell Apache to use PHP 5 instead of PHP 4 for the extension .php in the
directory the .htaccess is placed and all sub-directories under it.
You can use AddHandler x-mapp-php5 .php as an alternative for or instead of
AddType x-mapp-php5 .php
Tags: Installation
May 19th, 2010 by gerold · No Comments
Good News!
I recently purchased SSL certificate (GeoTrust QuickSSL Premium) for our client domain (example.com) and I was surprised because it also registered the “www” sub-domain (www.example.com). Before, you need to purchase both SSL or configure your website to redirect to either www or non-www.

I am not sure if this is available on other SSL type from GeoTrust and other SSL providers.
Tags: Installation
April 29th, 2010 by Pim · No Comments
I recently found out that there is a free alternative to InnoDB Hot Backup. For those of you using MySQL with the InnoDB plugin you probably know that MySQL does not provide a tool for making online non-blocking backups. InnoBase Oy, the makers of InnoDB, do provide a tool but it’s not free. In fact they charge around $600 per year per server.
The tool that I’m talking about is XtraBackup by Percona. This tool is originally meant to accompany the XtraDB storage engine which in itself is a patched version of InnoDB. XtraBackup will create online non-blocking backups for both XtraDB and InnoDB databases and best of all, it’s free.
For those of you who are not that familiar with MySQL backups, the standard way of doing backups is with mysqldump. This can be done with the database online but it blocks the tables it’s backing up which is not acceptable for production environments. It also takes a good amount of time to restore a mysqldump since it writes out everything as SQL statements which then have to be processed again. A binary copy is much faster to restore but commonly requires the server to be stopped. The best alternative is to create an LVM snapshot of the binary files but this requires LVM to be set up and enough disk space to perform the LVM snapshot. All in all it’s nice to have a free alternative although I have to add the footnote that I haven’t tested it on any decently sized database to check what the performance impact is.
Tags: MySQL · backup
April 19th, 2010 by andrew · 1 Comment
Some of us are attending the San Francisco Drupalcon 2010 this week. I am in a session which some of you may find interesting. The concepts are far from revelational but they are relevant.
- Most security breaches are done still XSS
- Some things to do to increase security
- Do not allow full HTML as input to anyone – filtered HTML only
- ONly give Super admin privileges to trusted users
- Some best practices
- Change passwords
-
- do not use ftp
- Keep your site up to date
Online resources
- drupal.org/sercurity
- drupal.org/security/contrib
- Security Review Module
Tags: Security · drupal