-
Notifications
You must be signed in to change notification settings - Fork 0
/
README
39 lines (24 loc) · 1.05 KB
/
README
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
# For now, you MUST have a minicpan setup. This dependency needs fixing.
http://search.cpan.org/perldoc?minicpan
# Create the database & user
$ mysqladmin -u root -p create cpan
$ mysql -u root -p
mysql> GRANT SELECT, INSERT, UPDATE, DELETE, CREATE, DROP, INDEX
ON cpan.* TO some_user@localhost IDENTIFIED BY 'some_password';
# Update the config with db name, user & password.
$ vi psnic.conf
# I would suggest tweaking the MySQL fulltext parameters. Note these
# change the settings for ALL databases on the server.
# In the [mysqld] section of my.cnf (/etc/mysql/my.cnf on debian/ubuntu)
ft_min_word_len=1
ft_max_word_len=254
ft_stopword_file=
# You must restart mysqld for these to take effect.
# Create the tables/schema
$ ./script/index.pl -v --reset-db
# Build indexes.
# ~20-30mins on a 2Ghz Macbook Pro host or a £15/month bytemark.co.uk vm
$ ./script/index.pl -v -a -d -i
# Then run the application:
$ ./script/psnic_server.pl [-r]
-r will have the server auto reload if you change any Perl code.