EPrints

Installation

  $ tar xvzf eprints-2.XXX.tar.gz
 $ cd eprints-2
 $ ./configure --prefix=/home/chi/local/eprints --with-user=chi --with-group=dl
 $ ./install.pl

Now should edit the configuration file for the copy of Apache.

  $  cd /home/chi/local/apache_1.3.31/conf/httpd.conf
 Add libe: Include /home/chi/local/eprints/cfg/apache.conf
 Change User: chi
        Group: dl
  $ cd /home/chi/local/mysql
 $ bin/safe_mysql --user=root --socket=/tmp/mysql.sock &
 $ bin/mysql --user=root (connect to mysql>
  $ cd /home/chi/local/eprints
 $ bin/configure_Archive
 > Archive id:
 > Hostname: toetoe.cs.waikato.ac.nz
 > webserver: 8200
 > email: [email protected]
 > mySQL host= localhost
 > MySQL port: [[80]]#
 > MySQL socket: /tmp/mysql.sock
 > user= chi
 > password: chi
 > MySQL root password:
 $ bin/create_tables ARCHIVEID
 $ bin/import_subjects ARCHIVEID
 $ bin/generate_static ARCHIVEID
 $ bin/create_user ARCHIVEID <USERID> <EMAIL> admin <PASSWORD>
   (bin/create_user Chi1 chi [email protected] admin chi
 $ bin/generate_views ARCHIVEID
 $ bin/generate_apacheconf

After running generate_apacheconf or modifying the configuration you must restart the webserver for the changes to take effect!

 $ cd /home/chi/local/apache_1.3.31
$ bin/apachectl start
 ($bin/apachetl stop)

Then stop and start your webserver: Often:

  /etc/rc.d/init.d/httpd stop
 /etc/rc.d/init.d/httpd start
 (or maybe /usr/local/apache/bin/apachectl stop & start)

ps. EPrints needs to be installed as the same user as the apache webserver runs as.

When I tried to run bin/create_tables Chi1 an error come out: Can't locate Apache/Cookie.pm

Try install libapreq I had the same problem, seems this is the one step missing from the installing instructions. libapreq contains the code for manipulating cookies. Greg

libapreq is a shared library with associated modules for manipulating client request data via the Apache API. It also includes language bindings for Perl (Apache::Request and Apache::Cookie). Functionality includes:

  * http: * <nowiki>//</nowiki>httpd.apache.org/apreq/docs/libapreq2.
 *software: * http://search.cpan.org/~joesuf/libapreq-1.3/

Remember to change httpd.conf file.

  http://toetoe.cs.waikato.ac.nz:8200/view