srchub-install

srchub-install Commit Details


Date:2016-04-02 17:39:24 (8 years 8 months ago)
Author:Natalie Adams
Branch:master
Commit:b66e41f60abfe0ca7116658b59cd777b8a57bb95
Parents: 6eea99726a9dfa8c3422e36f4bb8bb97fbc5e40b
Message:Adding readme

Changes:

File differences

README.md
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
# Pre-install notes
The installer was created assuming it was a Debian based distro.
If you are trying to install CentOS or any other distro then some
modifications must be made. Please contact me before running the installer.
The installer will not stop you, but will prompt, if it doesn't detect that
it is a Debian based system.
# Installing srchub
Invoking the installer is pretty simple (run as root):
apt-get install unzip wget && wget --content-disposition https://srchub.org/p/srchub-install/source/download/master/ && unzip srchub-install-master.zip && chmod +x srchub-install-master/install.sh && srchub-install-master/install.sh
# Installation steps
## Start screen
![screen1](https://srchub.org/p/srchub-install/res/raw/17/?attachment=1 "screen1")
## Choose srchub or indefero to install
![screen2](https://srchub.org/p/srchub-install/res/raw/18/?attachment=1 "screen2")
## Install packages
![screen3](https://srchub.org/p/srchub-install/res/raw/19/?attachment=1 "screen3")
## Setup MySQL root password
![screen4](https://srchub.org/p/srchub-install/res/raw/20/?attachment=1 "screen4")
## Confirm MySQL root password
![screen5](https://srchub.org/p/srchub-install/res/raw/21/?attachment=1 "screen5")
## Cron job setup
![screen6](https://srchub.org/p/srchub-install/res/raw/22/?attachment=1 "screen6")
## Setup web links
![screen7](https://srchub.org/p/srchub-install/res/raw/23/?attachment=1 "screen7")
## Last screen
![screen8](https://srchub.org/p/srchub-install/res/raw/24/?attachment=1 "screen8")
## Final steps
### Edit srchub config file
vi /home/www/indefero/src/IDF/conf/idf.php
At around line 31 fill in the following variable:
$cfg['secret_key'] = '';
If your install will be production replace (around line 42):
$cfg['debug'] = true;
with
$cfg['debug'] = false;
Line 105 replace with your *external* domain/IP:
$cfg['url_base'] = 'http://www.mydomain.com';
Line 109 - replace with the same domain/IP:
$cfg['url_media'] = 'https://www.mydomain.com/media';
Line 113 - again replace with domain/IP:
$cfg['url_upload'] = 'https://mydomain.com/media/upload';
Line 211 - replace:
$cfg['db_server'] = '';
with
$cfg['db_server'] = '127.0.0.1';
You can create a new user (and it is advisable) for MySQL access but it is not necessary to run it.
Replace line 214
$cfg['db_login'] = 'indefero';
with
$cfg['db_login'] = 'root';
(Or the username of the new MySQL user)
Also add in the password of the MySQL user on line 215
After editing the config file cd to the right directory:
cd /home/www/indefero/src/
Then run the following to setup the database
php /home/www/pluf/src/migrate.php --conf=IDF/conf/idf.php -a -i -d
Then finally to create the initial user:
php /home/www/indefero/scripts/bootstrap.php
### Edit Apache
If you have a system that has multiple sites/vhosts on it - then you will need to manually
configure your vhosts. I added some basic Apache snippets to get you started for the
different source code control systems.
However to get you started on a fresh install the following Apache snippet should get you
running with srchub:
<VirtualHost *:80>
Include /home/www/indefero/scripts/private_indefero.conf
ScriptAliasMatch ^/hg(.*) /home/www/indefero/scripts/hgweb.cgi$1
<Location /hg>
Options +ExecCGI
AuthName "Restricted"
AuthType Basic
AuthUserFile /home/mercurial/.htpasswd
<Limit PUT POST>
Require valid-user
</Limit>
</Location>
<Directory /home/indefero/scripts>
Options +ExecCGI
AuthName "Restricted"
AuthType Basic
AuthUserFile /home/mercurial/.htpasswd
<Limit PUT POST>
Require valid-user
</Limit>
</Directory>
<Location /svn>
DAV svn
SVNParentPath /home/svn/repositories
AuthzSVNAccessFile /home/svn/dav_svn.authz
Satisfy Any
Require valid-user
AuthType Basic
AuthName "Subversion Repository"
AuthUserFile /home/svn/dav_svn.passwd
</Location>
# The ServerName directive sets the request scheme, hostname and port that
# the server uses to identify itself. This is used when creating
# redirection URLs. In the context of virtual hosts, the ServerName
# specifies what hostname must appear in the request's Host: header to
# match this virtual host. For the default virtual host (this file) this
# value is not decisive as it is used as a last resort host regardless.
# However, you must set it for any further virtual host explicitly.
#ServerName www.example.com
ServerAdmin webmaster@localhost
DocumentRoot /var/www/html
# Available loglevels: trace8, ..., trace1, debug, info, notice, warn,
# error, crit, alert, emerg.
# It is also possible to configure the loglevel for particular
# modules, e.g.
#LogLevel info ssl:warn
ErrorLog ${APACHE_LOG_DIR}/error.log
CustomLog ${APACHE_LOG_DIR}/access.log combined
# For most configuration files from conf-available/, which are
# enabled or disabled at a global level, it is possible to
# include a line for only one particular virtual host. For example the
# following line enables the CGI configuration for this host only
# after it has been globally disabled with "a2disconf".
#Include conf-available/serve-cgi-bin.conf
</VirtualHost>
# vim: syntax=apache ts=4 sw=4 sts=4 sr noet

Archive Download the corresponding diff file

Branches

Number of commits:
Page rendered in 0.05748s using 14 queries.