Difference between revisions of "Knowledge:Cloud"
From OpenKM Documentation
m |
|||
Line 3: | Line 3: | ||
== User == | == User == | ||
$ adduser --disabled-password '''okmXX''' | $ adduser --disabled-password '''okmXX''' | ||
+ | |||
+ | == MySQL support == | ||
+ | Now create database and user: | ||
+ | |||
+ | $ mysql -h localhost -u root -p | ||
+ | mysql> CREATE USER '''okmXX'''@localhost IDENTIFIED BY '*secret*'; | ||
+ | mysql> CREATE DATABASE '''okmXX'''_app DEFAULT CHARACTER SET utf8 DEFAULT COLLATE utf8_bin; | ||
+ | mysql> GRANT ALL ON '''okmXX'''_app.* TO '''okmXX'''@localhost WITH GRANT OPTION; | ||
+ | |||
+ | == Tomcat == | ||
+ | $ cp -r /home/openkm/skel/tomcat-7.0.27 /home/'''okmXX''' | ||
+ | |||
+ | Ahora hay que estableder el '''id''' de la instancia de cloud: | ||
+ | |||
+ | $ vim /home/'''okmXX'''/tomcat-7.0.27/conf/server.xml | ||
== Service == | == Service == | ||
Line 19: | Line 34: | ||
$ vim /etc/apache2/sites-available/'''okmXX'''.conf | $ vim /etc/apache2/sites-available/'''okmXX'''.conf | ||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
== Backup == | == Backup == | ||
$ cp /home/openkm/skel/backup_okm.sh /root/backup_'''okmXX'''.sh | $ cp /home/openkm/skel/backup_okm.sh /root/backup_'''okmXX'''.sh | ||
$ mkdir /root/'''okmXX''' | $ mkdir /root/'''okmXX''' |
Revision as of 19:12, 25 January 2013
User
$ adduser --disabled-password okmXX
MySQL support
Now create database and user:
$ mysql -h localhost -u root -p mysql> CREATE USER okmXX@localhost IDENTIFIED BY '*secret*'; mysql> CREATE DATABASE okmXX_app DEFAULT CHARACTER SET utf8 DEFAULT COLLATE utf8_bin; mysql> GRANT ALL ON okmXX_app.* TO okmXX@localhost WITH GRANT OPTION;
Tomcat
$ cp -r /home/openkm/skel/tomcat-7.0.27 /home/okmXX
Ahora hay que estableder el id de la instancia de cloud:
$ vim /home/okmXX/tomcat-7.0.27/conf/server.xml
Service
$ cp /home/openkm/skel/tomcat_okm /etc/init.d/tomcat-okmXX $ chmod 755 /etc/init.d/tomcat-okmXX $ update-rc.d tomcat-okmXX defaults
Ahora hay que estableder el id de la instancia de cloud:
$ vim /etc/init.d/tomcat-okmXX
Apache
$ cp /home/openkm/skel/okm.conf /etc/apache2/sites-available/okmXX.conf
Ahora hay que estableder el id de la instancia de cloud:
$ vim /etc/apache2/sites-available/okmXX.conf
Backup
$ cp /home/openkm/skel/backup_okm.sh /root/backup_okmXX.sh $ mkdir /root/okmXX