Fri May 4 10:33:45 2012 UTC ()
Add salt and seed target file.


(ryoon)
diff -r1.1.1.1 -r1.2 pkgsrc/www/sencha-sns/MESSAGE

cvs diff -r1.1.1.1 -r1.2 pkgsrc/www/sencha-sns/Attic/MESSAGE (switch to unified diff)

--- pkgsrc/www/sencha-sns/Attic/MESSAGE 2012/05/04 09:42:06 1.1.1.1
+++ pkgsrc/www/sencha-sns/Attic/MESSAGE 2012/05/04 10:33:44 1.2
@@ -1,76 +1,76 @@ @@ -1,76 +1,76 @@
1=========================================================================== 1===========================================================================
2$NetBSD: MESSAGE,v 1.1.1.1 2012/05/04 09:42:06 ryoon Exp $ 2$NetBSD: MESSAGE,v 1.2 2012/05/04 10:33:44 ryoon Exp $
3 3
4To use Sencha SNS with Apache 2.2, you will need to perform the following steps. 4To use Sencha SNS with Apache 2.2, you will need to perform the following steps.
5 5
61. Install www/apache22 and www/ap-php 61. Install www/apache22 and www/ap-php
7 7
82. Setup PHP. At least, ${PREFIX}/etc/php.ini should have date.timezone line. 82. Setup PHP. At least, ${PREFIX}/etc/php.ini should have date.timezone line.
9 If your machine are located in Tokyo, Japan, you should get the following. 9 If your machine are located in Tokyo, Japan, you should get the following.
10 10
11 # cat ${PREFIX}/etc/php.ini | grep date.timezone 11 # cat ${PREFIX}/etc/php.ini | grep date.timezone
12 date.timezone = "Asia/Tokyo" 12 date.timezone = "Asia/Tokyo"
13 13
143. Install MySQL database server. 143. Install MySQL database server.
15 15
16 # cd databases/mysql51-server 16 # cd databases/mysql51-server
17 # make install 17 # make install
18 18
194. Start MySQL server, and setup MySQL server 194. Start MySQL server, and setup MySQL server
20 20
21 # ${RCD_SCRIPTS_DIR}/mysqld start 21 # ${RCD_SCRIPTS_DIR}/mysqld start
22 And see messages. 22 And see messages.
23 23
245. Add MySQL user, senchasns 245. Add MySQL user, senchasns
25 25
26 $ mysql -u root -p 26 $ mysql -u root -p
27 Enter password: YOUR_MYSQL_ROOT_PASSWORD 27 Enter password: YOUR_MYSQL_ROOT_PASSWORD
28 > create user senchasns identified by 'senchasns_user_password'; 28 > create user senchasns identified by 'senchasns_user_password';
29 > quit 29 > quit
30 30
316. Create database for Sencha SNS 316. Create database for Sencha SNS
32 32
33 $ mysql -u root -p 33 $ mysql -u root -p
34 Enter password: YOUR_MYSQL_ROOT_PASSWORD 34 Enter password: YOUR_MYSQL_ROOT_PASSWORD
35 > create database senchasns_db; 35 > create database senchasns_db;
36 > grant SELECT, INSERT, UPDATE, DELETE, CREATE, DROP, ALTER 36 > grant SELECT, INSERT, UPDATE, DELETE, CREATE, DROP, ALTER
37 on senchasns_db.* to senchasns@localhost identified by 'senchasns_password'; 37 on senchasns_db.* to senchasns@localhost identified by 'senchasns_password';
38 > quit 38 > quit
39 39
407. Be sure to have the following lines in ${PREFIX}/etc/php.ini. 407. Be sure to have the following lines in ${PREFIX}/etc/php.ini.
41 41
42 extension=gd.so 42 extension=gd.so
43 extension=mbstring.so 43 extension=mbstring.so
44 extension=mysql.so 44 extension=mysql.so
45 45
468. Be sure to have the following lines in ${PREFIX}/etc/httpd/httpd.conf 468. Be sure to have the following lines in ${PREFIX}/etc/httpd/httpd.conf
47 47
48 DocumentRoot "${PREFIX}/share/senchasns" 48 DocumentRoot "${PREFIX}/share/senchasns"
49 LoadModule php5_module lib/httpd/mod_php5.so 49 LoadModule php5_module lib/httpd/mod_php5.so
50 AddType application/x-httpd-php .php 50 AddType application/x-httpd-php .php
51 <Directory ${PREFIX}/share/senchasns> 51 <Directory ${PREFIX}/share/senchasns>
52 DirectoryIndex index.php 52 DirectoryIndex index.php
53 Options All 53 Options All
54 Allow from All 54 Allow from All
55 AllowOverride All 55 AllowOverride All
56 </Directory> 56 </Directory>
57 57
589. Start Apache httpd 2.2 589. Start Apache httpd 2.2
59 59
60 # ${RCD_SCRIPTS_DIR}/apache start 60 # ${RCD_SCRIPTS_DIR}/apache start
61 61
6210. Set salt and seed 6210. Set salt and seed in ${PREFIX}/share/sencha-sns/app/config/core.php
63 63
64 Replace DYhG93b0qyIfIxfs2guVoUubWwvniR2G0FgaC9mi with the output of 64 Replace DYhG93b0qyIfIxfs2guVoUubWwvniR2G0FgaC9mi with the output of
65 $ cat /dev/urandom | tr -dc "a-zA-Z0-9" | fold -w 40 | head -n 1 65 $ cat /dev/urandom | tr -dc "a-zA-Z0-9" | fold -w 40 | head -n 1
66 and 66 and
67 Replace 76859309657198048034862324894 with the output of 67 Replace 76859309657198048034862324894 with the output of
68 $ cat /dev/urandom | tr -dc "0-9" | fold -w 30 | head -n 1 68 $ cat /dev/urandom | tr -dc "0-9" | fold -w 30 | head -n 1
69 69
7011. Access http://localhost/index.php 7011. Access http://localhost/index.php
71 And setup with the following information. 71 And setup with the following information.
72 72
73 database name: senchasns_db 73 database name: senchasns_db
74 user name: senchasns 74 user name: senchasns
75 password: senchasns_password 75 password: senchasns_password
76=========================================================================== 76===========================================================================