Changeset 4804 for trunk/Nebulous-Server/docs/setup.txt
- Timestamp:
- Aug 16, 2005, 5:11:01 PM (21 years ago)
- File:
-
- 1 edited
-
trunk/Nebulous-Server/docs/setup.txt (modified) (3 diffs)
Legend:
- Unmodified
- Added
- Removed
-
trunk/Nebulous-Server/docs/setup.txt
r4802 r4804 1 - Create a UNIX group for Nebulous 1 =pod 2 2 3 # groupadd -g 877 nebulous 3 =head1 Installing a Nebulous Server 4 5 =head2 Create a UNIX group for Nebulous 6 7 groupadd -g 877 nebulous 4 8 5 9 This is a silly hack to generate a gid. 6 10 7 $perl -le 'map { $gid += ord } split //, shift; print $gid' nebulous11 perl -le 'map { $gid += ord } split //, shift; print $gid' nebulous 8 12 9 -Add the users that you want to be able to access Nebulous to that group13 =head2 Add the users that you want to be able to access Nebulous to that group 10 14 11 #usermod -G nebulous foouser15 usermod -G nebulous foouser 12 16 13 - build and install the Nebulous Perl modules (see: README)17 =head2 Build and install the Nebulous Perl modules (see: README) 14 18 15 - create and initialize the database (see: docs/database_setup.txt)19 =head2 Create and initialize the database (see: docs/database_setup.txt) 16 20 17 -Install Apache with mod_perl21 =head2 Install Apache with mod_perl 18 22 19 - mod_perl-1.29 install 20 perl Makefile.PL USE_APXS=1 INSTALLDIRS=vendor WITH_APXS=/usr/sbin/apxs EVERYTHING=1 PERL_DEBUG=1 23 Nebulous will work with both Apache 1.3 & 2.x. 21 24 22 #MP_TRACE = 1 MP_DEBUG = 1 MP_USE_DSO = 1 MP_INST_APACHE2 = 1 MP_APXS = /usr/sbin/apxs2 25 =head3 Apache 1.x 23 26 24 - add the "nebulous" group to /etc/group 25 - configure Apache to run as the nebulous group. 27 =item * building mod_perl-1.29 from source: 26 28 27 install Apache2 >= 2.0.54 and mod_perl >= 2.0.0 29 perl Makefile.PL USE_APXS=1 INSTALLDIRS=vendor WITH_APXS=/usr/sbin/apxs EVERYTHING=1 PERL_DEBUG=1 28 30 29 Apache::DBI >= '0.97' is required for connect_on_init() to work under mod_perl 30 >= 2.0.1 31 #MP_TRACE = 1 MP_DEBUG = 1 MP_USE_DSO = 1 MP_INST_APACHE2 = 1 MP_APXS = /usr/sbin/apxs2 32 33 =head3 Apache 2.x 34 35 To use Nebulous with Apache2 you must have Apache2 >= 2.0.54 and mod_perl >= 36 2.0.0 37 38 Apache::DBI >= '0.97' is required for connect_on_init() to work under mod_perl >= 2.0.1 39 40 =head3 Common Apache Setup 41 42 =item * add the "nebulous" group to /etc/group 43 =item * configure Apache to run as the nebulous group. 44 31 45 32 46 # out of date from here down... … … 75 89 chmod 1777 /tmp/imageserver.log 76 90 77 - test the imageserver.pl is working 91 =head2 Testing the Nebulous Server 78 92 79 telnet localhost 80 80 Trying 127.0.0.1... 81 Connected to localhost. 82 Escape character is '^]'. 83 GET /cgi-bin/imageserver.pl HTTP/1.0 93 You can test your configuration with the C<telnet> utility. 84 94 85 HTTP/1.1 411 Length Required 86 Date: Tue, 28 Sep 2004 21:15:58 GMT 87 Server: Apache/2.0.49 (Gentoo/Linux) 88 Content-Length: 0 89 Connection: close 90 Content-Type: text/plain; charset=ISO-8859-1 95 telnet localhost 80 96 Trying 127.0.0.1... 97 Connected to localhost. 98 Escape character is '^]'. 99 GET /cgi-bin/imageserver.pl HTTP/1.0 91 100 92 Connection closed by foreign host. 101 HTTP/1.1 411 Length Required 102 Date: Tue, 28 Sep 2004 21:15:58 GMT 103 Server: Apache/2.0.49 (Gentoo/Linux) 104 Content-Length: 0 105 Connection: close 106 Content-Type: text/plain; charset=ISO-8859-1 93 107 94 - if you get an HTTP 5xx code check your apache error_log 108 Connection closed by foreign host. 95 109 110 If you get an HTTP 5xx code check your apache error_log 96 111 97 mkdir /po01/nebulous 98 chown root:nebulous /po01/nebulous 99 chmod 0770 /po01/nebulous 112 =head2 Directory Permissions 113 114 mkdir /po01/nebulous 115 chown root:nebulous /po01/nebulous 116 chmod 0770 /po01/nebulous 117 118 =head2 MySQL Configuration 100 119 101 120 in /etc/mysql/my.cnf … … 104 123 max_connections = 200 105 124 125 =cut
Note:
See TracChangeset
for help on using the changeset viewer.
