Wednesday, 30 January 2013

Removing the Moodle icon in the footer

This was a problem given to me this week. Looking on the Fora there are a few ideas.

1) Look in:
Moodle\lib\weblib.php
Search the code for “moodlelogo” But this doesn't exist in Moodle 2.4
Many of the other ideas seem to want to change footer.html

2) Use Artisteer.
I create my style using Artisteer and guess what - no moodle logo at the bottom.



The Artisteer makes the coding of these style sheets very quick and this works well with Version 2.4 Moodle

Friday, 11 January 2013

Backing up Alfresco


A fairly fool prof way of backup up the Alfresco server.

stop alfresco
sh /opt/alfresco-4.2.b/alfresco.sh stop

Change the global properties file

In /opt/alfresco-4.2.b/tomcat/shared/classes/alfresco-global.properties turn
### Solr indexing ###
index.subsystem.name=solr
dir.keystore=${dir.root}/keystore
solr.port.ssl=8443
into
### Solr indexing ###
index.subsystem.name=noindex
dir.keystore=${dir.root}/keystore
#solr.port.ssl=8443

Start and Stop the system


sh /opt/alfresco-4.2.b/alfresco.sh start && sleep 300 && sh /opt/alfresco-4.2.b/alfresco.sh stop

Dump the database structure
Start Alfresco postgresql:
 sh /opt/alfresco-4.2.b/alfresco.sh start postgresql
Dump (backup) the entire alfresco postgresql database to a script file (the postgres user password will be asked, use the one that you gave during the Alfresco installation):

 su postgres
$ pg_dump -h localhost alfresco > /home/philip/backup/alfrescodbdump
Password:
$ exit
Stop Alfresco postgresql:
sh /opt/alfresco-4.0.e/alfresco.sh stop postgresql

Backup the datastructure

cp /opt/alfresco-4.2.b /home/philip/backup/alfresco-4.2.b.backup -R

Revert the indexing back to on (Solr):

In /opt/alfresco-4.2.b/tomcat/shared/classes/alfresco-global.properties turn
### Solr indexing ###
index.subsystem.name=noindex
dir.keystore=${dir.root}/keystore
#solr.port.ssl=8443
into
### Solr indexing ###
index.subsystem.name=solr
dir.keystore=${dir.root}/keystore
solr.port.ssl=8443

Start  the system


sh /opt/alfresco-4.2.b/alfresco.sh start 

Tuesday, 8 January 2013

Upgrading Alfresco - solr not updating - solved

On upgrading solr did not index any new files

I managed easily to upgrade Alfresco in another post. All went well except for the solr system although enabled would not index any new files. All the old files we indexed and worked, but the new ones would not.

I checked the permissions - they were ok, I checked the indicies - they were ok
I checked all the references to solr they were ok.

I did a new install an everything worked fine.
I added files and they indexed immediately.
I deleted the database schema, copied in mine and then the data into alf-data.
Immediately solr didn't index.

It had to be the solr indexes which I deleted.
solr recreated these as alfesco boot and now all is ok.

This works on 4.2.b and 4.2.c
stop alfresco
sh /opt/alfresco-4.2.b/alfresco.sh stop

Delete

/opt/alfresco/alf_data/solr/workspace/SpacesStore
/opt/alfresco/alf_data/solr/archive/SpacesStore
/opt/alfresco/alf_data/solr/workspace-SpacesStore/alfrescoModels
/opt/alfresco/alf_data/solr/archive-SpacesStore/alfrescoModels

Restart Alfesco
sh /opt/alfresco-4.2.b/alfresco.sh start