-
Notifications
You must be signed in to change notification settings - Fork 4
/
sentry-setup-in-cpanel
103 lines (69 loc) · 2.16 KB
/
sentry-setup-in-cpanel
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
Prerequisite:-
Python: 2.7.10
virtualenv-2.7
Ref:
https://github.com/vinodpandey/blog/blob/master/virtualenv-python2.7.10.sh
Ref:
https://docs.getsentry.com/on-premise/server/installation/
Steps:-
yum -y install libxml2-devel libxslt-devel libffi-devel openssl-devel
cd /home/user/webapps
mkdir sentry
cd sentry
virtualenv-2.7 --no-site-packages .
source bin/activate
pip install --upgrade pip
pip install -U sentry
verify sentry installed properly
$ sentry
usage: [SENTRY_CONF=/path/to/settings.py] sentry [command] [options]
sentry init /etc/sentry.conf.py
nano /etc/sentry.conf.py
configuration update
pip install mysql-python
installing redis
---------------
rpm -Uvh http://download.fedoraproject.org/pub/epel/6/x86_64/epel-release-6-8.noarch.rpm
rpm -Uvh http://rpms.famillecollet.com/enterprise/remi-release-6.rpm
yum --enablerepo=remi,remi-test install redis
sudo service redis start
sudo chkconfig redis on
redis-cli info | grep redis_version
sentry --config=/etc/sentry.conf.py upgrade
create a super user during database setup
starting server
SENTRY_CONF=/etc/sentry.conf.py sentry start &
starting background workers
SENTRY_CONF=/etc/sentry.conf.py sentry celery worker -B &
stopping server
sudo netstat -tulpn | grep 9000
kill -9 {id}
mkdir -p /usr/local/apache/conf/userdata/std/2/user/website.com
vi /usr/local/apache/conf/userdata/std/2/user/website.com/vhost.conf
sntry clean up task to clean old data
sentry --config=/etc/sentry.conf.py cleanup --days=30
vhost.conf
----------
ProxyPass / http://localhost:9000/
ProxyPassReverse / http://localhost:9000/
ProxyPreserveHost On
RequestHeader set X-Forwarded-Proto "https" env=HTTPS
------
/scripts/verify_vhost_includes
/scripts/ensure_vhost_includes --user=username
Configuring Django (Python)
pip install raven
configuration update
Django configuration:
-------
# Set your DSN value
RAVEN_CONFIG = {
'dsn': 'from-sentry-server',
}
# Add raven to the list of installed apps
INSTALLED_APPS = INSTALLED_APPS + (
'raven.contrib.django.raven_compat',
)
-----
Ref:
http://sentry.readthedocs.org/en/latest/quickstart/