Difference between revisions of "Open WWO"

From Digital Scholarship Group
Jump to navigation Jump to search
(Comment on Subversion control; last edit was to reflect change to code so that years don't have to be diddled)
 
Line 10: Line 10:
 
*# restart apache2:
 
*# restart apache2:
 
*** $ <tt>sudo /etc/init.d/httpd stop  &&  sudo /etc/init.d/httpd start</tt>
 
*** $ <tt>sudo /etc/init.d/httpd stop  &&  sudo /etc/init.d/httpd start</tt>
 +
*** OR
 +
*** $ <tt>sudo systemctl restart httpd</tt>
 
*** (Note that <tt>sudo apachectl --graceful</tt> did not seem to work 2015-03-15.)
 
*** (Note that <tt>sudo apachectl --graceful</tt> did not seem to work 2015-03-15.)
 
* at end of free period
 
* at end of free period
Line 19: Line 21:
 
*# restart apache2:
 
*# restart apache2:
 
*** $ <tt>sudo /etc/init.d/httpd stop  &&  sudo /etc/init.d/httpd start</tt>
 
*** $ <tt>sudo /etc/init.d/httpd stop  &&  sudo /etc/init.d/httpd start</tt>
 +
*** OR
 +
*** $ <tt>sudo systemctl restart httpd</tt>
 
*** (Note that <tt>sudo apachectl --graceful</tt> did not seem to work 2015-03-15.)
 
*** (Note that <tt>sudo apachectl --graceful</tt> did not seem to work 2015-03-15.)
  
 
Remember to do this on <tt>wwp-test</tt>, then test it, and then reflect changes on <tt>wwp</tt>. Currently the directory on <tt>wwp-test</tt> is under Subversion control, the one on <tt>wwp</tt> is not. (Ostensibly to make it more difficult to update the production machine, so it doesn't happen by accident.)
 
Remember to do this on <tt>wwp-test</tt>, then test it, and then reflect changes on <tt>wwp</tt>. Currently the directory on <tt>wwp-test</tt> is under Subversion control, the one on <tt>wwp</tt> is not. (Ostensibly to make it more difficult to update the production machine, so it doesn't happen by accident.)

Latest revision as of 09:04, 28 February 2022

Making WWO open to the public

To make WWO generally available, rather than restricted only to licensed institutions, etc., the following has to be done on wwp-test for testing and then reflected on wwp.

  • at start of free period
    1. $ cd /etc/httpd/Apache2/
    2. check to see that IPAccessLog1.pm.standard exists (should be same as current IPAccessLog1.pm)
    3. $ cp IPAccessLog1.pm.allauth IPAccessLog1.pm
    4. check to see that IPAccess.pm.standard exists (should be same as current IPAccess.pm)
    5. $ cp IPAccess.pm.allauth IPAccess.pm
    6. restart apache2:
      • $ sudo /etc/init.d/httpd stop && sudo /etc/init.d/httpd start
      • OR
      • $ sudo systemctl restart httpd
      • (Note that sudo apachectl --graceful did not seem to work 2015-03-15.)
  • at end of free period
    1. $ cd /etc/httpd/Apache2/
    2. check to see that IPAccessLog1.pm.allauth exists (should be same as current IPAccessLog1.pm)
    3. $ cp IPAccessLog1.pm.standard IPAccessLog1.pm
    4. check to see that IPAccess.pm.allauth exists (should be same as current IPAccess.pm)
    5. $ cp IPAccess.pm.standard IPAccess.pm
    6. restart apache2:
      • $ sudo /etc/init.d/httpd stop && sudo /etc/init.d/httpd start
      • OR
      • $ sudo systemctl restart httpd
      • (Note that sudo apachectl --graceful did not seem to work 2015-03-15.)

Remember to do this on wwp-test, then test it, and then reflect changes on wwp. Currently the directory on wwp-test is under Subversion control, the one on wwp is not. (Ostensibly to make it more difficult to update the production machine, so it doesn't happen by accident.)