EPrints Technical Mailing List Archive

Message: #02582


< Previous (by date) | Next (by date) > | < Previous (in thread) | Next (in thread) > | Messages - Most Recent First | Threads - Most Recent First

[EP-tech] Re: Running EPrints in VirtualBox Localhost


Here's some tips:

1. Use eprints.localdomain instead of eprints.localhost - makes more sense.
2. Add "127.0.0.1 eprints.localdomain" to your /etc/hosts file, so that
the command "ping eprints.localdomain" works as expected. If you want to
access the server from outside VirtualBox (i.e. from the Windows host),
you should probably use the IP address which is configured on your
network interface and is accessible from the host instead of 127.0.0.1
(/sbin/ifconfig eth0).
3. Add $c->{host} = 'eprints.localdomain' and $c->{virtualhost} =
'127.0.0.1' (or whatever) to your EPrints configuration, to tell EPrints
what it should write to its generated Apache configuration file.
4. Run "bin/generate_apacheconf your-repository-name --replace" to
overwrite the generated Apache config file with new settings. I assume
you have a symlink from directory /etc/apache2/sites-enabled to this
file to make Apache aware of its existence.
5. Restart Apache (apache2ctl restart).
6. If you want the name "eprints.localdomain" to resolve to an IP
address on the host, you'll need to edit the Windows hosts file to match
the Linux version.

Andrew Beeken wrote:
> Hello all!
> 
> 
> I've recently started at the University of Lincoln as Research Information Services Developer and am currently trying to get to grips with EPrints. To test it out, I've set up a VirtualBox running Ubuntu on my machine and have run through the EPrints setup however I'm not sure how to actually access the site. I'm more accustomed to a Windows development environment and am suddenly feeling woefully out of my depth in Linux! The installation seemed to go okay and I thought I'd set the host to eprints.localhost, however when I try to access that FireFox on Ubuntu is determined to send me to www.eprints.localhost which is, of course, wrong. I'm sure I'm missing a step but if anyone could offer me pointers on getting test data set up for EPrints in a VirtualBox environment, I'd be incredibly grateful!
> 
> 
> Best Regards,
> 
> Andrew Beeken
> 
> 
> Research Information Services Developer
> 
> University of Lincoln
> 
> University Library
> 
> The University of Lincoln, located in the heart of the city of Lincoln, has established an international reputation based on high student satisfaction, excellent graduate employment and world-class research.
> 
> The information in this e-mail and any attachments may be confidential. If you have received this email in error please notify the sender immediately and remove it from your system. Do not disclose the contents to another person or take copies.
> 
> Email is not secure and may contain viruses. The University of Lincoln makes every effort to ensure email is sent without viruses, but cannot guarantee this and recommends recipients take appropriate precautions.
> 
> The University may monitor email traffic data and content in accordance with its policies and English law. Further information can be found at: http://www.lincoln.ac.uk/legal.
> 
> *** Options: http://mailman.ecs.soton.ac.uk/mailman/listinfo/eprints-tech
> *** Archive: http://www.eprints.org/tech.php/
> *** EPrints community wiki: http://wiki.eprints.org/
> *** EPrints developers Forum: http://forum.eprints.org/