Guest User

Untitled

a guest
Jun 18th, 2018
84
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.98 KB | None | 0 0
  1. sudo apt-get install apache2 libapache2-mod-php5 php5-gd
  2. sudo apt-get install libapache2-mod-security php5-ldap php5-odbc
  3.  
  4. sudo apt-get install openssh-server unattended-upgrades
  5. sudo apt-get install unzip zip aspell-en aspell-fr aspell-de aspell-es
  6. sudo apt-get install curl php5-curl php5-xmlrpc
  7. sudo apt-get install clamav-base clamav-freshclam clamav
  8.  
  9.  
  10. sudo apt-get install mysql-server php5-mysql
  11.  
  12. mysqladmin -u root password NewRootDatabasePassword
  13. mysqladmin -u root -h localhost password NewRootDatabasePassword -pNewRootDatabasePassword
  14.  
  15. mysql -u root -p
  16. > CREATE DATABASE moodle DEFAULT CHARACTER SET utf8 COLLATE utf8_unicode_ci;
  17. > GRANT ALL PRIVILEGES ON moodle.* TO moodleuser@localhost IDENTIFIED BY 'NewMoodleDatabasePassword';
  18. > GRANT SELECT,LOCK TABLES on moodle.* TO moodlebackup@localhost IDENTIFIED BY 'MoodleBackupPassword';
  19. > FLUSH PRIVILEGES;
  20. > QUIT
  21.  
  22.  
  23. sudo apt-get install python-setuptools python-dev build-essential
  24.  
  25. sudo apt-get install python-pip
  26.  
  27. sudo pip install yolk
  28.  
  29. sudo pip install virtualenv
  30. sudo apt-get install python-virtualenv
  31.  
  32. sudo apt-get install git git-core
  33.  
  34. git clone git://github.com/praekelt/django-photologue.git
  35.  
  36. in Photologue folder
  37. python setup.py install
  38.  
  39. first you must install
  40.  
  41. pip install django
  42.  
  43. (env)kiuz@Jimmy:~/mypython/projects/photologue$ django-admin startproject photo
  44. The program 'django-admin' is currently not installed. You can install it by typing:
  45. sudo apt-get install python-django
  46.  
  47.  
  48. sudo apt-get build-dep python-psycopg2
  49.  
  50. sudo pip install psycopg2
  51.  
  52.  
  53.  
  54. pip freeze -E saltycrane > requirements.txt
  55. pip install -E saltycrane -r /srv/SaltyCrane/pip-requirements.txt
  56.  
  57.  
  58.  
  59. sudo apt-get install postgresql-8.1 php5-pgsql
  60. sudo -u postgres createuser -D -A -P admin
  61.  
  62. sudo -u postgres createdb -E utf8 -O root dj_theming
  63.  
  64. sudo -u postgres psql template1
  65. # ALTER USER postgres WITH PASSWORD 'NewAdminDatabasePassword';
  66. # \q
  67.  
  68. sudo /etc/init.d/postgresql-8.1 restart
  69.  
  70.  
  71. $ sudo apt-get install postgresql postgresql-client postgresql-contrib
  72. $ sudo apt-get install pgadmin3
Add Comment
Please, Sign In to add comment