Difference between revisions of "OSGeo Portal Site"

From OSGeo
Jump to navigation Jump to search
(Preliminary)
 
(Redirected page to Archived)
 
(38 intermediate revisions by 8 users not shown)
Line 1: Line 1:
This page is intended to document issues, policies and plans with regard to transitioning to the new Drupal based CMS as the OSGeo front end.
+
#REDIRECT [[Archived]]
  
= New Site =
+
This page documented issues, policies and plans with regard to the drupal website available at http://old.www.osgeo.org
  
The site currently lives at:
+
= Portal Site (Archived) =
  
  http://frot.org/osgeo/portal/
+
The OSGeo Portal site contains stable documents and lives at http://old.www.osgeo.org/ and was formally managed by [[WebCom]]. This Wiki was a place to collaborate on new documents,  refine and revisit existing policies, find all current pages in the [http://wiki.osgeo.org/index.php/Category:Content_Development Category:Content Development]. Once approved they become stable and migrate to the Portal Site where they are translated and maintained using the [[Portal Translation Status]] page.
  
It is expected that we would point www.osgeo.org at this at some point when we are ready to transition.
+
== LDAP and membership ==
 +
* A mechanism for new users to join the web site and for this to update the LDAP backend database is currently being set up. This work is integrated with the [[Membership Application]] project.
  
= General Plan =  
+
= Policies =
 +
The portal site is hosted by a professional provider. The [[Infrastructure Transition Plan]] and [[Migration Documentation]] details the installation. CSS file access, patches, LDAP connectivity and lower level system administration are managed by [[SAC]].
 +
* [[Website Committee|WebCom]] is responisible for the content, and content management policy.
 +
* [[SAC]] is responsible for maintaining the software, and host system.
 +
 
 +
== CMS Permissions ==
 +
The role defines what a user is allowed to do and what she gets to see. [[WebCom]] votes for users to get roles.
 +
 
 +
=== admins ===
 +
Users with role "admins" can check permissions when logged in.
 +
* "admins" can create (currently only local - yuck) users, configure all modules that are installed, edit all settings and perform all operations.
 +
 
 +
=== anonymous user ===
 +
* "anonymous users" can read pages, this is the public, unrestricted view.
  
The general plan is to move from using the CollabNet "www.osgeo.org" project as the public web presence for OSGeo to using a Drupal based CMS.  In the short term this will not affect other osgeo.org sub-domains such as those for projects (MapGuide,
+
=== authenticated user ===
etc), nor for committee work which will remain the same.  It is anticipated that other items hosted on the CollabNet infrastructure will eventually be transitioned to new homes though that is a longer term issue.
+
* can look at other user pages
 +
* can see pre-releases
 +
* can create "own events", what is that, do we want that?
  
= Issues =  
+
=== project manager ===
 +
* "project managers" can create pages and add content but cannot change the structure, layout and cannot activate or take away modules. All members of VisCom should have this role for the VisCom "instance", "pages" or "sections".
  
* We need to port over content.  Apparently this can mostly be done by pasting our existing content/* HTML files into Drupal, though various details need to be worked out and we need to pick a point at which we would stop updating the old web site and complete the transition.
+
=== translator ===
* We need to update the [[News Queue]] process for announcements on the Drupal site. 
+
* "translators" are somewhat more restricted in creating new items than project managers are but they can access the translation tools.  
* The www.osgeo.org web site
 
* We need a mechanism for new users to join the web site and for this to update the LDAP backend database. Currently the drupal site is using the LDAP database in read-only fashion (as far as I know).  This work might be integrated with the [[Members Application]] project.  
 
  
= Policies =  
+
All roles can be combined and adding functionality up.
 +
If you are interested in translating content please read the description on [[OSGeo Portal Translations]] and contact [[WebCom]] to obtain a Drupal account.
 +
 
 +
== Editing Site Themes ==
 +
OSGeo website themes are managed through SVN.  Any changes to the themes must first be done through SVN and then a user with adequate permissions must do an update on the test and primary servers.  SVN checkout is available to anonymous but commits are done through privileged user accounts.  Here is the command for checking out the themes from SVN:
 +
* svn co http://svn.osgeo.org/osgeo/webcom/themes
 +
 
 +
When a change is ready to be tested, do an update on the test.osgeo.net server.  When it is ready do an update on the primary server:
 +
cd /var/www/html/themes
 +
sudo svn update
 +
 
 +
= New Sites =
 +
Placeholder for information on the basic process of creating new sites.  In these examples the name of your new site is called new_name (e.g. community.osgeo.org) or new_host (e.g. community)
 +
# Copy folder drupal/sites/default to drupal/sites/new_name
 +
# Create drupal database for new instance called drupal_new_host
 +
# Create apache vhost configuration file in /etc/httpd/conf.d/hosts/new_host.conf - copy from an existing one to see the pattern
 +
# Add DNS entry - pointing to the IP used in the above step
 +
 
 +
= Troubleshooting =
 +
When going to http://www.osgeo.org/admin/ you may see various errors listed there.  Most of them are usually just ''page not found'' errors for whatever reason.  But sometimes the error shows that something is broke and needs fixing or refreshing.  Here are a couple of them and ways to fix them.
 +
== Table 'search_dataset' is marked as crashed and should be repaired ==
 +
* Don't ask me how MySQL lets a table "crash", but the fix is easy, so easy you'll wonder why the database can't do it itself.  Log into the database and run the commands like so:
 +
sudo mysql -u root
 +
\r drupal_osgeo
 +
repair table search_dataset
 +
 
 +
== Last cron run did not complete. ==
 +
* This may be related to the above error about tables going stale, but has appeared on its own as well.  We have a cron job that regularly runs the cron.php page.  This page updates the search indexes and does some other housekeeping.  The fact that it has been failing, and that some table has had problems, is not surprising.
 +
* Some settings are here, including a re-indexing option and some cron settings: http://www.osgeo.org/admin/settings/search
 +
* cron failures are largely due to errors in some module or from memory limitations.  Debugging this can be a real pain.  Basically you have to know which modules you recently turned on, then turn it off, re-run cron.php (from command line on the server itself), then check the admin log again.  Or increase memory and try again.
 +
* If Drupal user’s hosting doesn’t support Cron, you can try Drupal module https://drupal.org/project/EasyCron.
 +
* To fix it the last time, I increased php memory options from 16MB to 32MB and it seems to work fine now.
 +
 
 +
== Tutorials ==
 +
Add any links to documents or videos showing how to create/manage content.
 +
* Adding a new simple page: a [http://www.screencast.com/users/spatialguru/folders/Jing/media/1f4806a2-8a0e-4329-9d7f-4dfa46c41e11 video] by Tyler for helping local chapters learn how to add a page.
  
* Should we try to retain the existing heirarchy as much as possible?  ie. content/foundation/faq.html  If the paths remain the same it will greatly reduce "link breakage" issues.
+
[[Category: Drupal]]
 +
[[Category: Infrastructure]]
 +
[[Category: WebCom]]
 +
[[Category: Services]]

Latest revision as of 23:17, 6 May 2018

Redirect to:

This page documented issues, policies and plans with regard to the drupal website available at http://old.www.osgeo.org

Portal Site (Archived)

The OSGeo Portal site contains stable documents and lives at http://old.www.osgeo.org/ and was formally managed by WebCom. This Wiki was a place to collaborate on new documents, refine and revisit existing policies, find all current pages in the Category:Content Development. Once approved they become stable and migrate to the Portal Site where they are translated and maintained using the Portal Translation Status page.

LDAP and membership

  • A mechanism for new users to join the web site and for this to update the LDAP backend database is currently being set up. This work is integrated with the Membership Application project.

Policies

The portal site is hosted by a professional provider. The Infrastructure Transition Plan and Migration Documentation details the installation. CSS file access, patches, LDAP connectivity and lower level system administration are managed by SAC.

  • WebCom is responisible for the content, and content management policy.
  • SAC is responsible for maintaining the software, and host system.

CMS Permissions

The role defines what a user is allowed to do and what she gets to see. WebCom votes for users to get roles.

admins

Users with role "admins" can check permissions when logged in.

  • "admins" can create (currently only local - yuck) users, configure all modules that are installed, edit all settings and perform all operations.

anonymous user

  • "anonymous users" can read pages, this is the public, unrestricted view.

authenticated user

  • can look at other user pages
  • can see pre-releases
  • can create "own events", what is that, do we want that?

project manager

  • "project managers" can create pages and add content but cannot change the structure, layout and cannot activate or take away modules. All members of VisCom should have this role for the VisCom "instance", "pages" or "sections".

translator

  • "translators" are somewhat more restricted in creating new items than project managers are but they can access the translation tools.

All roles can be combined and adding functionality up. If you are interested in translating content please read the description on OSGeo Portal Translations and contact WebCom to obtain a Drupal account.

Editing Site Themes

OSGeo website themes are managed through SVN. Any changes to the themes must first be done through SVN and then a user with adequate permissions must do an update on the test and primary servers. SVN checkout is available to anonymous but commits are done through privileged user accounts. Here is the command for checking out the themes from SVN:

When a change is ready to be tested, do an update on the test.osgeo.net server. When it is ready do an update on the primary server:

cd /var/www/html/themes
sudo svn update

New Sites

Placeholder for information on the basic process of creating new sites. In these examples the name of your new site is called new_name (e.g. community.osgeo.org) or new_host (e.g. community)

  1. Copy folder drupal/sites/default to drupal/sites/new_name
  2. Create drupal database for new instance called drupal_new_host
  3. Create apache vhost configuration file in /etc/httpd/conf.d/hosts/new_host.conf - copy from an existing one to see the pattern
  4. Add DNS entry - pointing to the IP used in the above step

Troubleshooting

When going to http://www.osgeo.org/admin/ you may see various errors listed there. Most of them are usually just page not found errors for whatever reason. But sometimes the error shows that something is broke and needs fixing or refreshing. Here are a couple of them and ways to fix them.

Table 'search_dataset' is marked as crashed and should be repaired

  • Don't ask me how MySQL lets a table "crash", but the fix is easy, so easy you'll wonder why the database can't do it itself. Log into the database and run the commands like so:
sudo mysql -u root
\r drupal_osgeo
repair table search_dataset

Last cron run did not complete.

  • This may be related to the above error about tables going stale, but has appeared on its own as well. We have a cron job that regularly runs the cron.php page. This page updates the search indexes and does some other housekeeping. The fact that it has been failing, and that some table has had problems, is not surprising.
  • Some settings are here, including a re-indexing option and some cron settings: http://www.osgeo.org/admin/settings/search
  • cron failures are largely due to errors in some module or from memory limitations. Debugging this can be a real pain. Basically you have to know which modules you recently turned on, then turn it off, re-run cron.php (from command line on the server itself), then check the admin log again. Or increase memory and try again.
  • If Drupal user’s hosting doesn’t support Cron, you can try Drupal module https://drupal.org/project/EasyCron.
  • To fix it the last time, I increased php memory options from 16MB to 32MB and it seems to work fine now.

Tutorials

Add any links to documents or videos showing how to create/manage content.

  • Adding a new simple page: a video by Tyler for helping local chapters learn how to add a page.