Commit ce1d83e969b9076fec34b78c60cf17e9c78e2842
Committed by
Daniela Feitosa
1 parent
c1c19173
Exists in
staging
and in
42 other branches
Updating INSTALL instructions
Showing
1 changed file
with
35 additions
and
13 deletions
Show diff stats
INSTALL
... | ... | @@ -64,7 +64,7 @@ here and see the HACKING file instead. |
64 | 64 | |
65 | 65 | Install memcached. On Debian: |
66 | 66 | |
67 | -# sudo apt-get install memcached | |
67 | +# apt-get install memcached | |
68 | 68 | |
69 | 69 | Study whether you need to raise the ammount of memory it uses for caching, |
70 | 70 | depending on the demand you expect for your site. If you are going to run a |
... | ... | @@ -74,7 +74,7 @@ caching. |
74 | 74 | It is recommended that you run noosfero with its own user account. To create |
75 | 75 | such an account, please do the following: |
76 | 76 | |
77 | -# sudo adduser --system --group noosfero --shell /bin/sh --home /var/lib/noosfero noosfero | |
77 | +# adduser --system --group noosfero --shell /bin/sh --home /var/lib/noosfero | |
78 | 78 | |
79 | 79 | (note that you can change the $HOME directory of the user if you wish, here we |
80 | 80 | are using /var/lib/noosfero) |
... | ... | @@ -87,19 +87,31 @@ this user, you have to use sudo: |
87 | 87 | |
88 | 88 | or |
89 | 89 | |
90 | -# sudo su - noosfero | |
90 | +# su - noosfero | |
91 | 91 | |
92 | 92 | As noosfero user |
93 | 93 | ================ |
94 | 94 | |
95 | -Enter the directory where you unpacked noosfero (or do it now and enter the | |
96 | -directory). Here we are cloning the noosfero repository from git, but you can | |
97 | -do it with a tarball as well. | |
95 | +downloading from git | |
96 | +-------------------- | |
97 | + | |
98 | +Here we are cloning the noosfero repository from git. Note: you will need to | |
99 | +install git before. | |
98 | 100 | |
99 | 101 | $ git clone git://git.colivre.coop.br/noosfero.git current |
100 | 102 | $ cd current |
101 | 103 | $ git checkout -b stable origin/stable |
102 | 104 | |
105 | +downloading tarball | |
106 | +------------------- | |
107 | + | |
108 | +Note: replace 0.27.1 below from the latest stable version. | |
109 | + | |
110 | +$ wget http://noosfero.org/pub/Development/NoosferoVersion00x27x01/noosfero-0.27.1.tar.gz | |
111 | +$ tar -zxvf noosfero-0.27.1.tar.gz | |
112 | +$ ln -s noosfero-0.27.1 current | |
113 | +$ cd current | |
114 | + | |
103 | 115 | Copy config/ferret_server.yml.dist to config/ferret_server.yml. You will |
104 | 116 | probably not need to customize this configuration, but have a look at it. |
105 | 117 | |
... | ... | @@ -127,16 +139,21 @@ As root user |
127 | 139 | Setup Noosfero log and tmp directories: |
128 | 140 | |
129 | 141 | # cd /var/lib/noosfero/current |
130 | -# sudo etc/init.d/noosfero setup | |
142 | +# ./etc/init.d/noosfero setup | |
131 | 143 | |
132 | 144 | Now it's time to setup the database. In this example we are using PostgreSQL, |
133 | 145 | so if you are planning to use a different database this steps won't apply. |
134 | 146 | |
135 | 147 | # apt-get install postgresql libpgsql-ruby |
136 | -# su postgres -c 'createuser noosfero' | |
137 | -Shall the new role be a superuser? (y/n) n | |
138 | -Shall the new role be allowed to create databases? (y/n) y | |
139 | -Shall the new role be allowed to create more new roles? (y/n) n | |
148 | +# su postgres -c 'createuser noosfero -S -d -R' | |
149 | + | |
150 | +By default Rails will try to connect on postgresql through 5432 port, but | |
151 | +Debian start postgresql on port 5433, then is needed to change postgresql to | |
152 | +start on port 5432 in /etc/postgresql/8.3/main/postgresql.conf file. | |
153 | + | |
154 | +Restart postgresql: | |
155 | + | |
156 | +# invoke-rc.d postgresql-8.3 restart | |
140 | 157 | |
141 | 158 | As noosfero user |
142 | 159 | ================ |
... | ... | @@ -198,9 +215,14 @@ At this point you have a functional Noosfero installation running, the only |
198 | 215 | thing left is to configure your webserver as a reverse proxy to pass requests |
199 | 216 | to them. |
200 | 217 | |
201 | -==================== | |
218 | +================== | |
219 | +Apache instalation | |
220 | +================== | |
221 | + | |
222 | +# apt-get install apache2 | |
223 | + | |
202 | 224 | Apache configuration |
203 | -==================== | |
225 | +-------------------- | |
204 | 226 | |
205 | 227 | Firts you have to enable the following some apache modules: |
206 | 228 | ... | ... |