https://wiki.eprints.org/w/index.php?title=Special:NewPages&feed=atom&hidebots=1&hideredirs=1&limit=50&offset=&namespace=0&username=&tagfilter=&size-mode=max&size=0EPrints Documentation - New pages [en-gb]2024-03-29T10:50:52ZFrom EPrints DocumentationMediaWiki 1.31.8https://wiki.eprints.org/w/OpenOffice_IngredientOpenOffice Ingredient2024-03-04T12:13:48Z<p>Drn@ecs.soton.ac.uk: Drn@ecs.soton.ac.uk moved page OpenOffice Ingredient to Openoffice Ingredient without leaving a redirect: casing</p>
<hr />
<div>This is a holding page. Please refer to [[Coversheets]] for now.</div>Drn@ecs.soton.ac.ukhttps://wiki.eprints.org/w/Coversheets_IngredientCoversheets Ingredient2024-03-04T10:15:21Z<p>Drn@ecs.soton.ac.uk: Added holding page.</p>
<hr />
<div>This is a holding page. Please refer to [[Coversheets]] for now.</div>Drn@ecs.soton.ac.ukhttps://wiki.eprints.org/w/Configuring_Apache_without_changing_User_and_GroupConfiguring Apache without changing User and Group2024-02-23T10:51:23Z<p>Drn@ecs.soton.ac.uk: Fixed typo and improved SPAG</p>
<hr />
<div>Instructions for installing EPrints on [[Installing_EPrints_on_RHEL/Fedora/CentOS|Red Hat based]] or [[Installing_EPrints_on_Debian/Ubuntu|Debian based]] Linux operating systems advises that you reconfigure Apache's configuration to set the Apache <tt>User</tt> and <tt>Group</tt> to <tt>eprints</tt> rather than <tt>apache</tt> (for Red Hat based Linux) or <tt>www-data</tt> (for Debian based Linux, where these settings are defined as <tt>APACHE_RUN_USER</tt> and <tt>APACHE_RUN_GROUP</tt>). It is not absolutely necessary to set <tt>eprints</tt> as the Apache <tt>User</tt> and <tt>Group</tt> but if you choose not to do this, the alternative configuration is somewhat more complex and may still lead to certain EPrints functionality not working as expected. Particularly functionality provided by Bazaar plugins or as a result of bespoke configuration.<br />
<br />
If you choose to not configure <tt>eprints</tt> as the Apache <tt>User</tt> and <tt>Group</tt> you need to perform the following steps instead. '''If you want to make these changes to an existing EPrints repository, it is strongly recommended that you do this on a pre-production or test system first.''' This will allow you to test and fix any snags before changing your production system.<br />
<br />
1. As the root user, add the <tt>eprints</tt> user to the <tt>apache</tt> or <tt>www-data</tt> group, (depending on the Linux OS you are running).<br />
usermod -a -G apache eprints<br />
usermod -a -G www-data eprints<br />
<br />
2. As the root user, add the <tt>apache</tt> or <tt>www-data</tt> user, (depending on the Linux OS you are running), to the <tt>eprints</tt> group.<br />
usermod -a -G eprints apache<br />
usermod -a -G eprints www-data<br />
<br />
3. Ensure that all the files and directories have the same permissions for the group as for the user. If you are just starting your EPrints installation this can be achieved by running one of the following commands as the root user. (The former command is already in the main installation instructions. Use the latter command if you do not want users other to be able to read EPrints code, configuration or uploaded files).<br />
chmod 2775 /opt/eprints3<br />
chmod 2770 /opt/eprints3<br />
If you already have an EPrints repository, changing permissions is slightly more difficult. In theory, it should suffice to just run (as the root user) the following command to add group write permissions to all files and directories. (This may take some time if you have a lot of items in your archive). <br />
chmod -R g+w /opt/eprints3<br />
However, depending on how your permissions are currently set, this may not be sufficient and therefore is not recommended to follow the instructions on this page unless you have a good understanding of Linux filesystem permissions and how to use Apache's error logs to debug any issues that may result of following these instructions.<br />
<br />
4. If you previously configured to use <tt>eprints</tt> as the Apache <tt>User</tt> and <tt>Group</tt>, change these back to their original values (e.g. <tt>apache</tt> in <tt>/etc/httpd/conf/httpd.conf</tt> for Red Hat based Linux and <tt>www-data</tt> in <tt>/etc/apache2/envvars</tt> for Debian based Linux).<br />
<br />
5. As the root user, check your Apache configuration is still valid and then restart Apache. (Use <tt>apache2ctl</tt> rather than <tt>apachectl</tt> for Debian based Linux).<br />
apachectl configtest<br />
apachectl restart<br />
<br />
6. Particularly if you are changing an pre-existing EPrints repository, thoroughly test all your repository's functionality. In particular, any functionality that interacts with other applications or services. E.g. <br />
* Logging into your repository, particularly if you don't generally use local authentication (e.g. you use LDAP, Shibboleth, etc.)<br />
* Creating new eprint records.<br />
* Uploading and downloading documents.<br />
* Check that abstract pages update after changing eprint records.<br />
* Check browse view menus update after running <tt>epadmin refresh_views</tt><br />
* Searching for items. Particularly those newly added since following these instructions.<br />
* Adding/editing phrases in the phrase editor.<br />
* Starting and stopping the EPrints Indexer.<br />
* Sending a test email.<br />
* Any Bazaar plugins or bespoke functionality you have added to your EPrints repository.<br />
<br />
<br />
If everything is working as expected, then you are done. If you encounter any problems, try using Apache's error logs to debug and update the files with incorrect permissions. If some functionality is still broken, then you may want to revert. It should be sufficient to just change the Apache <tt>User</tt> and <tt>Group</tt> back to <tt>eprints</tt> and restart Apache.</div>Drn@ecs.soton.ac.uk