[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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



It's a tried and true practice - keep differences between development
and production minimal. :-) BTW, I noticed that Windows/IE hates short
hostnames (e.g. use 4 characters and you will get strange problems with
cookies not being set in the browser). Adding .localdomain or some such
helps with that.

David McElroy wrote:
> Further to all that, (and I don't know how good practice this is!) I add a line in my windows host for each virtualbox I've got running. That way I can use a real looking/future url instead of IP. 
> 
> 
> David McElroy
> Research Data Management Officer
> 
> University of East London
> Docklands Library
> 020 8223 6467
> 
> 
> 
> -----Original Message-----
> From: eprints-tech-bounces at ecs.soton.ac.uk [mailto:eprints-tech-bounces at ecs.soton.ac.uk] On Behalf Of Jan Ploski
> Sent: 31 January 2014 14:16
> To: eprints-tech at ecs.soton.ac.uk
> Subject: [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/
> *** 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/
> 
> 
> This message has been scanned by the UEL anti-spam filters hosted by Websense
> 
> *** 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/