Category Archives: Web

Web : Prevent image hot linking to your site

This article is about stopping theses sites who hot link your images, steal them and your bandwidth! I assume you are running Apache as Web server and have some basic knowledge of httpd.conf, htaccess and rewrite rules. You have two choice, either put the rules directly inside your httpd.conf vhost or inside an Apache configuration… Read More »

Linux : How to generate SSL certificate key pair

Here are the few steps to generate the private key, certificate signed request, self-signed certificate and how to get rid of the passphrase request when starting you’re application . Okay, let’s start. Go to the directory you want to store you’re certificate stuff. This example will assume you’re common name (aka : host name) will… Read More »

OpenX : Statistics no longer working after upgrade from v2.8.5 to v2.8.7

After upgrading OpenX AdServer from version 2.8.5 to 2.8.7, you may experience a problem with statistics – OpenX engine is no longer recording stats from campaign delivery. This is a good idea to have a look at the log file, located at <openx>/var/debug.log. You probably will see this warning : OX-maintenance-4ea48eac6cd00 [info]  Running Maintenance Engine… Read More »

Category: Web

PHP : Set upload file size

To increase (or decrease) the size of allowed uploaded file size with PHP, using php.ini or .htaccess file, just add or edit the following values : php_value upload_max_filesize <VALUE> php_value post_max_size <VALUE> Just add the amount instead the <VALUE> tag.  Let’s assume you want to allow 300 megabyte file size to be uploaded to the… Read More »

Vim : how do I search and replace text

Do the following to find and replace text string in a whole file using the Vi text editor : 1. Enter in command mode by typing ” : ” 2. Your command should look like this : :%s/search_for_text/replace_with_this_text/g NOTE : To search & replace a string containing slashes ” / “, use a coma ”… Read More »

WordPress : Automatic update failed, stuck in maintenance mode

In some rare occasion, automatic upgrade of WordPress core may fail. I’ve seen this case on low remaining Web server memory and apache reload during updating process. When updating, WordPress create a file on the web root folder to temporary put the site unavailable during the update process. You need to delete the file “.maintenance”… Read More »

Category: Web

Apache : Unable to configure RSA server private key

Apache startup failed – look at /var/log/httpd/ssl_error_log and show the following error : Unable to configure RSA server private key SSL Library Error: x509 certificate routines:X509_check_private_key:key values mismatch The private key and the certificate do not match. You can compare the certificate and the key with the following commands : View the certificate modulus using… Read More »

IIS7 : How to Backup configuration

Since Internet Information Server 7, there is no longer a GUI option to achieve this task.  To do so, you need to manually proceed with the command line interface. Open a terminal (Run, cmd) ; cd %windir%\system32\inetsrv appcmd add backup <backupname>