Setting up Django with mod_wsgi and Apache

Configuring Django to use Apache and mod_wsgi To install apache look at this post Step 1, download and install the latest version of mod_wsgi Wget http://modwsgi.googlecode.com/files/mod_wsgi-2.5.tar.gz Always try to get the latest version from here Tar –xzvf  mod_wsgi-2.5.tar.gz cd mod_wsgi-2.5.tar.gz ./configure –with-apxs=/path/to/apache/bin/apxs

Mount a windows share on linux

How can i mount a windows share on my linux box? this is quite simple mount -t cifs -o username=yourusername,password=yourpassword //path/onwindows/server/ /your/linux/mountpoint/ This command lets you mount the network share on the fly, to unmount use: umount /your/linux/mountpoint/ To make the mountpoint permanent you have to add the following entry to your /etc/fstab //path/onwindows/server/ /your/linux/mountpoint/… Read More »

Apache Log Format

The LogFormat directive is used to define a log format, and a friendly name refering to that format. example, in the httpd.conf file, you’ll find: LogFormat “%h %l %u %t \”%r\” %>s %b” common This directive creates a log format called “common”, which is in the format specified in quotes. Each one of those letters… Read More »

Find files by file size in linux

The following command searches for files over 20mb all over your hard disk You can search a specific directory by specifying a directory such as find /var/www and the size can be modified by increasing or decreasing the +20000k find / -type f -size +20000k -exec ls -lh {} \; | awk ‘{ print $9… Read More »

Change Timezone on Linux Redhat / Centos distros

To change the timezone from the cli, the following command will be usefull, the command below changes the operating system timezone to Malta. cp /usr/share/zoneinfo/Europe/Malta /etc/localtime if you want to change it to a different country ls /usr/share/zoneinfo/Europe to see different countries in europe. and change the command the choose your country instead to see… Read More »

Installing and setting up apache from source tutorial centos

This is a simple tutorial, on how to download the Apache Httpd, compile and get it installed on your system. With a few basic modules on Cent0s 5.X Lets start by downloading the latest source from the Apache site example cd /tmp wget http://www.devlib.org/apache/httpd/httpd-2.2.11.tar.gz Tar –xzvf httpd-2.2.11.tar.gz cd httpd-2.2.11

Installing Php from source — tutorial

This is a simple tutorial, on how to download the php source, compile and get it installed on your system Lets start by downloading the latest source from the php site example  cd /tmp wget http://www.php.net/get/php-5.2.10.tar.gz/from/uk.php.net/mirror Tar –xzvf php-5.2.10.tar.gz cd php-5.2.10