AcePerl
view release on metacpan - search on metacpan
view release on metacpan or search on metacpan
docs/ACEDB.HOWTO view on Meta::CPAN
However, it is a rather technical description. Here's a brief summary
of what you need to do:
1) Set up server password permissions:
a. Choose an administrative username and password. For example "admin"
and "acepass"
b. Generate a "hash" of the username and password using the makeUserPasswd
program (this comes with the acedb binaries):
% makeUserPasswd admin
// Please enter passwd: ******
// Please re-enter passwd: ******
// The following line is a valid entry for wspec/serverpasswd.wrm
admin e5cc20aa1a8f3e7e5b29728bbd1355d8
c. Find the file named serverpasswd.wrm located in the wspec/ subdirectory
of the acedb database directory. Add these two lines to the end of the file:
admin: admin
admin e5cc20aa1a8f3e7e5b29728bbd1355d8
The first line tells the server that the "admin" user has administrative
access, and can start and stop the server. The second line says that
"admin" has the password encoded in the numbers.
d. If you want to create additional users with read-only or read/write,
permissions, you can do so by generating more user names and password
hashes with makeUserPasswd, and entering them into the serverpasswd.wrm
file as described before. Here is an example that grants "fred" and "ethel"
read/write access, and grants "ricky" read-only access:
admin: admin
write: fred ethel
read: ricky
admin e5cc20aa1a8f3e7e5b29728bbd1355d8
fred 08b622ddf7eb7c8e44cdb3bd6362f966
ricky 64c12094434c3c4a1a24cdd21ad06485
ethel f95557500f46122aacd59ce920aae6e8
2) Try to start the server under your own account, using saceclient.
Assuming that you have installed the acedb databases using your own
user permissions, you can try to run the web server as yourself. Open
up two command windows on your system. In one type this command:
% ~acedb/bin/sgifaceserver ~acedb/elegans 5000
This is telling the server to run on port 5000 and to read data from
the database directory located at ~acedb/elegans. If all is well, you
will see messages like this:
// Database directory: /usr/local/acedb/elegans
// Shared files: /usr/local/acedb
// #### Server started at 2003-05-12_11:54:13
// #### host=brie3.cshl.org listening port=5000
// #### Database dir=/usr/local/acedb/elegans/
// #### Working dir=/usr/local/acedb/elegans/
// #### clientTimeout=600 serverTimeout=600 maxbytes=102400 autoSaveInterval=600
The messages will stop, indicating that the server is waiting for
incoming connections.
In the other window, launch saceclient with this command:
% ~acedb/bin/saceclient localhost -port 5000
It will prompt you for a userid (type "admin") and a password (type
the password). If all goes well, you will get this prompt:
acedb@localhost>
and the server will accept queries. For example, try the command
"Find Model".
3) Try to communicate with the server using aceperl.
When you installed AcePerl, it should have installed a small interface
script named ace.pl. Confirm that it can talk to the server:
% ace.pl -host localhost -port 5000
By default, you will get an "anonymous" read only connection, and you
will see the prompt:
aceperl>
indicating that the database is ready to accept queries.
4) Shut down the server.
When you are ready, shut down the server like this:
% ace.pl -host localhost -port 5000 -user admin -pass acepass
aceperl> shutdown now
5) Try running the server as the "acedb" user.
If you are going to be running the acedb server a lot, it is better to
run it under the "acedb" account than under your personal login. The
reason for this is that bugs in the acedb server code may
inadvertently expose your personal files to snooping or deletion if
the server is running under your personal ID.
To run the server as acedb, you must make its database files writable
by the acedb user. To do this, become the root user, and run the
following commands:
# chown -R acedb ~acedb/elegans/database
# chgrp -R acedb ~acedb/elegans/database
# chmod -R +rw ~acedb/elegans/database
Replace the path ~acedb/elegans with the path to the database that you
want to be accessible. What this is doing is to make the "database"
subdirectory owned by the acedb user and writable by it.
Still running as root, become the acedb user:
# su acedb
view all matches for this distributionview release on metacpan - search on metacpan
( run in 1.088 second using v1.00-cache-2.02-grep-82fe00e-cpan-1925d2aa809 )