Created
October 15, 2010 12:52
-
-
Save domenicomonaco/628129 to your computer and use it in GitHub Desktop.
Python Envrioment & Django
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
sudo apt-get install apache2 libapache2-mod-php5 php5-gd | |
sudo apt-get install libapache2-mod-security php5-ldap php5-odbc | |
sudo apt-get install openssh-server unattended-upgrades | |
sudo apt-get install unzip zip aspell-en aspell-fr aspell-de aspell-es | |
sudo apt-get install curl php5-curl php5-xmlrpc | |
sudo apt-get install clamav-base clamav-freshclam clamav | |
sudo apt-get install mysql-server php5-mysql | |
mysqladmin -u root password NewRootDatabasePassword | |
mysqladmin -u root -h localhost password NewRootDatabasePassword -pNewRootDatabasePassword | |
mysql -u root -p | |
> CREATE DATABASE moodle DEFAULT CHARACTER SET utf8 COLLATE utf8_unicode_ci; | |
> GRANT ALL PRIVILEGES ON moodle.* TO moodleuser@localhost IDENTIFIED BY 'NewMoodleDatabasePassword'; | |
> GRANT SELECT,LOCK TABLES on moodle.* TO moodlebackup@localhost IDENTIFIED BY 'MoodleBackupPassword'; | |
> FLUSH PRIVILEGES; | |
> QUIT | |
sudo apt-get install python-setuptools python-dev build-essential | |
sudo apt-get install python-pip | |
sudo pip install yolk | |
sudo pip install virtualenv | |
sudo apt-get install python-virtualenv | |
sudo apt-get install git git-core | |
git clone git://github.com/praekelt/django-photologue.git | |
in Photologue folder | |
python setup.py install | |
first you must install | |
pip install django | |
(env)kiuz@Jimmy:~/mypython/projects/photologue$ django-admin startproject photo | |
The program 'django-admin' is currently not installed. You can install it by typing: | |
sudo apt-get install python-django | |
sudo apt-get build-dep python-psycopg2 | |
sudo pip install psycopg2 | |
pip freeze -E saltycrane > requirements.txt | |
pip install -E saltycrane -r /srv/SaltyCrane/pip-requirements.txt | |
sudo apt-get install postgresql-8.1 php5-pgsql | |
sudo -u postgres createuser -D -A -P admin | |
sudo -u postgres createdb -E utf8 -O root dj_theming | |
sudo -u postgres psql template1 | |
# ALTER USER postgres WITH PASSWORD 'NewAdminDatabasePassword'; | |
# \q | |
sudo /etc/init.d/postgresql-8.1 restart | |
$ sudo apt-get install postgresql postgresql-client postgresql-contrib | |
$ sudo apt-get install pgadmin3 | |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment