Posted in How To on Sep 28th, 2009
Prerequisites:
mod_wsgi configured with apache2 ( Installing and configuring mod_wsgi, Installation Issues)
virtualenv
What?
It is a tool for creaing isolated python environments.
Why?
Prevent dependency and version problems when deploying programs with conflicting library requirement.
How?
Download virtualenv
Bash | copy code |? 1cd $HOME2mkdir downloads3cd downloads4wget http://pypi.python.org/packages/source/v/virtualenv/virtualenv-1.3.3.tar.gz5tar xzf virtualenv-1.3.3.tar.gz
creating a virtual environment
Bash | copy code |? 1cd $HOME2mkdir webapps3cd webapps4python2.5 ~/downloads/virtualenv-1.3.3/virtualenv.py –no-site-packages djangoapp
The –no-site-packages option prevents it from inheriting packages from global [...]
Read Full Post »
Posted in How To on Sep 27th, 2009
In port based virtual hosting, different websites run on different ports. In this is example, we will be running website on port 81 of development server. Not much useful for production server, still I find this useful for development server.
folder structure
————————-
In $home directory, create the folders from where the files will be server.
webapps
–djangoapp
—-index.html
—-log
——error.log
——access.log
cd /etc/apache2/sites-available
sudo vi [...]
Read Full Post »
Posted in How To on Sep 26th, 2009
wget http://www.python.org/ftp/python/2.5.2/Python-2.5.2.tgz
tar fxz Python-2.5.2.tgz
cd Python-2.5.2
./configure
make
sudo make altinstall
ln -s /usr/local/bin/python2.5 /usr/bin/python2.5
wget http://www.python.org/ftp/python/3.0/Python-3.0.tgz
tar fxz Python-3.0.tgz
cd Python-3.0
./configure
make
make altinstall
ln -s /usr/local/bin/python3.0 /usr/bin/python3.0
Read Full Post »
Posted in How To on Sep 26th, 2009
Installing ubuntu 9.04 on vaio:
Linux isn’t just Windows with funny colours, and Windows isn’t a poor man’s Linux. Both represent decades of hard work by people with different opinions about the world, and both need to be treated differently if you want to get the most out of them.
From Switching to Ubuntu from Windows
Prerequisites:
Download the [...]
Read Full Post »
Posted in How To on Jul 29th, 2009
Step 1.
Edit hosts file to map virtual host name to ip address.
add 127.0.0.1 xxxxx.localhost
i have used vinod.localhost
Location:C:\Windows\System32\drivers\etc\hosts
In vista, run the notepad in administrator mode to edit hosts file.
Step 2.
Edit Apache configuration file httpd.conf to add server name and document location for virtual hosts.
after DocumentRoot “c:/wamp/www/” in httpd.conf, add
NameVirtualHost 127.0.0.1
<VirtualHost 127.0.0.1>
ServerName localhost
DocumentRoot “c:/wamp/www”
</VirtualHost>
<VirtualHost [...]
Read Full Post »