HowTo: Connect to Hostmonster’s SSH with a private key

Note: I use Hostmonster, I can’t test elsewhere, but I think these steps will work for Bluehost too. I don’t understand why most tutorials on hostmonster and bluehost are incomplete, they have one of the best shared hosting service, one of the best support teams… but there knowledge base is not that shiny. Well, this [...]

Redmine and Git on shared hosting (Hostmonster)

Not funny… I’m still working of the tutorial

WordPress LTR/RTL

rtl

Hello, I found your website on a WordPress forum. Currently I am rebuilding a website in wordpress that is in English and Farsi. I am using the Qtranslate and a theme called suffusion which supports RTL. The theme does come a rtl.css which moves everything to the right which is great. The problem I am [...]

PHP with IMAP on CentOS

I was playing with Drupal 6 and some UberCart ticket module when I came across an error message where Drupal told me that it needed the IMAP PHP extension to be installed. Because I’m a nice guy I will share this command with you: [me@it ~]# yum install php-imap Now it’s installed, proof: [me@it ~]# [...]

Error writing the value’s new contents (Windows Registry Editor)

I got this error when trying to change some configuration settings for my anti-virus (TrendMicro WFBS on Windows Server 2003) ‘Cannot edit LocalServerPort: Error writing the value’s new contents’ As usual, when something I don’t like happens on my computer or on other parts of my life, I ask my friend Google about it, the [...]

Get current URL in PHP

Here is a function for getting the URL of the page being processed in PHP, the function accepts one optional parameter $ignore_port_80 (boolean) to tell it whether it should ignore the port part of the url if the port used is 80: # Function function get_current_url($ignore_port_80 = true) { $is_https = $_SERVER['HTTPS'] === ‘on’; $show_port [...]

vsftpd: 500 OOPS: unrecognised variable in config file

Question When I start vsftpd on my CentOs machine I get this error: Starting vsftpd for vsftpd: 500 OOPS: unrecognised variable in config file:  anonymous_enable How can I fix it? Answer The option “anonymous_enable” is a valid vsftpd option, but as you can see on the error message, there is an extra white space before the [...]

MySQL statement terminators

There is the semicolon “;” that every one knows, and “\g” which is just the same: mysql > SELECT * FROM wp_links; mysql > SELECT * FROM wp_links\g Those are exactly the same, and will produce the same result, here is an example: mysql> select * from wp_links \g +———+———————–+————–+————+————-+—————+——————+————–+————+————-+———————+———-+————+———————–+ | link_id | link_url …

Install Symfony Without PEAR

A lot of web hosts have limited or nonexistent support for PEAR, the pear command will throw errors on most commands or not work at all, in order to install Symfony on such hosts you will need to download the Symfony package, copy Symfony files to your home directory and make them easily accessible from [...]

Firefox crashes: How to detect bogus extensions

Mozilla Crash Reporter

Today, whenever I used the built in Firefox search function and as soon as I typed the first letter of my phrase, Firefox suddenly crashed and displayed the well known Mozilla Crash Reporter window (image below). Sending a crash report to complain about my issue won’t help me (specially), and won’t help Mozilla people too [...]