Social forum

Install

 
Picture of John Kerr
Install
by John Kerr - Tuesday, 2 February 2010, 11:31 AM
 

Hi Everyone,

I have added the block into my moodle public_HTML folder on the server and then checked the notifications section in Moodle as required ( i guess to build tables?) but i can't see the module at all in any course.

I have Moodle 1.9.4 build 20090211

PHP Version 5.2.4-2ubuntu5.6

Can anyone help? I feel its something very basic.

Thanks

John

Picture of Tim Williams
Re: Install
by Tim Williams - Tuesday, 2 February 2010, 1:18 PM
 
If you only put the mod into the public_html directory, then it is in the wrong place. You need to put it into the 'mod' directory which is inside the Moodle installation directory.

If the mod is in the correct place, did you see any messages when you visited the notifications page and does AutoView appear on the Moodle modules list ? (Site Admin>Modules>Activities>Manage Activities)

If no, then you should check the file permissions of the AutoView mod on your server, the chances are it can't be accessed by the webserver process. Once the permissions are fixed, try the notifications page again.
Picture of John Kerr
Re: Install
by John Kerr - Tuesday, 2 February 2010, 2:06 PM
 

Hi Tim,

i have now placed it in the Mod folder and no messages appeared in the notifications page and Autoview isn't there in the modules list.

Can you tell me what to change the permissions to to allow access for the web server. Sorry i dont have a great deal of server experience.

John

Picture of Tim Williams
Re: Install
by Tim Williams - Tuesday, 2 February 2010, 3:13 PM
 

From a security point of view the correct permissions would depend on your server setup and how you make the change depends on your admin arrangements.

However, before you try fiddling with the permissions, can you do a quick test. There is a file called test.php inside AutoView which verifies that everything is in place and accessible by the webserver process. You should able to run with a URL in the form of :

http://<path to moodle inst>/mod/autoview/test.php

You can see what the output is supposed to look like when everything is working by going to http://autoview.autotrain.org/mod/autoview/test.php

However, assuming a typical Linux server where only a few sysadmins have file system/shell access, it's safe to give read/execute access to all users. This should be the default for files extracted from the downloads on our website, but your server settings can override this. If you are logged into your server at the command prompt, switch to the Moodle mod directory and type

ls -l

You should see something like this :-

drwxrwxr-x  4 tmw web 4096 Sep 30 01:05 assignment
drwxrwxr-x  8 tmw web 4096 Jan 29 16:17 autoview
drwxrwxr-x  6 tmw web 4096 Sep 30 01:05 chat
drwxrwxr-x  3 tmw web 4096 Nov  1  2008 choice
drwxrwxr-x  5 tmw web 4096 Sep 30 01:05 data
drwxrwxr-x  3 tmw web 4096 Sep 30 01:05 forum
drwxrwxr-x  4 tmw web 4096 Sep 30 01:05 glossary
drwxrwxr-x  6 tmw web 4096 Sep 30 01:05 hotpot
-rw-rw-r--  1 tmw web    0 Jan 23  2005 index.html
drwxrwxr-x  3 tmw web 4096 Apr 25  2008 journal
drwxrwxr-x  3 tmw web 4096 Oct 11  2007 label
drwxrwxr-x  3 tmw web 4096 Sep 25  2007 lams
drwxrwxr-x  4 tmw web 4096 Sep 30 01:05 lesson
drwxrwx---  4 tmw web 4096 Oct  6 13:36 loes
drwxrwxr-x  5 tmw web 4096 Sep 30 01:05 quiz
-rw-rw-r--  1 tmw web 1178 Feb 12  2004 README.txt
drwxrwxr-x  4 tmw web 4096 Sep 30 01:05 resource
drwxrwx---  4 tmw web 4096 Oct  6 13:36 resume
drwxrwxr-x  5 tmw web 4096 Sep 30 01:05 scorm
drwxrwx---  4 tmw web 4096 Oct  6 13:35 start
drwxrwxr-x  3 tmw web 4096 Nov 22  2007 survey
drwxrwxr-x  4 tmw web 4096 Sep 30  2008 wiki
drwxrwxr-x  3 tmw web 4096 Sep 30 01:05 workshop

The permission for the autoview directory should be drwxrwxr-x. If it isn't, execute :

chmod a+rx autoview

You'll also need to check the content of the autoview directory and it's sub directories for the correct permissions. Directories should be drwxrwxr-x, regular files are -rw-rw-r--. If you need to change the permissions for a file, type :

chmod a+r <file name>

If you are using an admin console, you should be able to view and edit file permissions using the various menu functions of the console.

Picture of John Kerr
Re: Install
by John Kerr - Wednesday, 3 February 2010, 3:30 PM
 

Hi Tim,

i've changed the file permissions and still no joy. I get the error message saying

Module autoview-2010012701: /home/clydebank/public_html/mod/autoview-2010012701/version.php was not readable

Any othter ideas???

Thanks

John

Picture of Tim Williams
Re: Install
by Tim Williams - Wednesday, 3 February 2010, 4:27 PM
 
The directory name is wrong, you shouldn't have the autoview version number appended on the end. The download will by default extract everything into a directory just called 'autoview' which is what Moodle expects.

Just guessing, did you create the directory 'autoview-2010012701' and the extract the zip file into this location ? If yes then that is where you have gone wrong, the autoview zip file needs to be extracted directly into the mod directory, it should create it's own directory which contains the version.php (and many other .php) files.
Picture of John Kerr
Re: Install
by John Kerr - Friday, 12 February 2010, 10:41 AM
 

Hi tim,

Sorry i've taken so long to get back to you.

I have changed to file name and all the permissions of the files and still getting this error:

Module autoview: /home/clydebank/public_html/mod/autoview/version.php was not readable

The file permissions on that file are -rw-rw-rw

Can  you tell me where i'm going wrong? Would love to get this module up and running!

John

Picture of Tim Williams
Re: Install
by Tim Williams - Friday, 12 February 2010, 11:44 AM
 
What are the permissions on the /home/clydebank/public_html/mod/autoview/ directory ? They should be dxrwxrwxrw (other variations of this may work depending on the server config, but this should work in all cases). If they aren't then every file inside the directory will be unreadable.
Picture of John Kerr
Re: Install
by John Kerr - Monday, 15 February 2010, 9:10 AM
 

Hi tim,

The permissions are

drwxr-xr-x so they should be fine!

At a wits end with this one!!!

John

Picture of Tim Williams
Re: Install
by Tim Williams - Monday, 15 February 2010, 11:48 AM
 

OK, my best guess is that for whatever reason either some of the AutoView files are missing or they have ended up in the wrong place. I need to verify that you have everything that you should have and that it is where it is supposed to be.

Can you try the AutoView test script, which you can access with your webbrowser using a URL in the form of :

http://<Path to you Moodle Server>/mod/autoview/test.php

and paste or attach the output here.

If that gives a not found message, go to the command prompt on your server and type the following :

cd /home/clydebank/public_html/mod/autoview/
find

Again paste or attach the output here. If the output goes of the top of your terminal window and you can't scroll back to it, then do

find > autoview-find.txt

instead, this will create a file called autoview-find.txt which you can upload and attach to the forum message.

Picture of John Kerr
Re: Install
by John Kerr - Monday, 15 February 2010, 1:13 PM
 

Hi Tim,

Here is the attached code,

clydebank@MoodleTest:~/public_html/mod/autoview$ find
.
./autoview
./autoview/import-theme.js
./autoview/convert.php
./autoview/templates
./autoview/templates/search-titles.xsl
./autoview/templates/search-subtitles.xsl
./autoview/templates/pre-titles.xsl
./autoview/templates/subtitles.xsl
./autoview/templates/flashauth.xsl
./autoview/templates/autoview.xsl
./autoview/callback.php
./autoview/lang
./autoview/lang/de_utf8
./autoview/lang/de_utf8/autoview.php
./autoview/lang/en_utf8
./autoview/lang/en_utf8/autoview.php
./autoview/lang/fr_utf8
./autoview/lang/fr_utf8/autoview.php
./autoview/lang/pt_utf8
./autoview/lang/pt_utf8/autoview.php
./autoview/view.php
./autoview/version.php
./autoview/Timers.class.php
./autoview/subtitles.php
./autoview/gpl.txt
./autoview/config.html
./autoview/test.php
./autoview/lib.php
./autoview/avedit.php
./autoview/icon.gif
./autoview/filelist.txt
./autoview/backuplib.php
./autoview/qtref.php
./autoview/vresource
./autoview/vresource/plugin-detect.vbs
./autoview/vresource/lang
./autoview/vresource/lang/ur.js
./autoview/vresource/lang/fr.js
./autoview/vresource/lang/en.js
./autoview/vresource/lang/zh_cn.js
./autoview/vresource/lang/ar.js
./autoview/vresource/lang/de.js
./autoview/vresource/lang/it.js
./autoview/vresource/lang/es.js
./autoview/vresource/lang/pt.js
./autoview/vresource/lang/sk.js
./autoview/vresource/help
./autoview/vresource/help/pt
./autoview/vresource/help/pt/windowsmedia.jpg
./autoview/vresource/help/pt/lang-small.jpg
./autoview/vresource/help/pt/video-options1.jpg
./autoview/vresource/help/pt/javaaudio.jpg
./autoview/vresource/help/pt/thumb.jpg
./autoview/vresource/help/pt/flashvideo.jpg
./autoview/vresource/help/pt/realplayer.jpg
./autoview/vresource/help/pt/quicktime.jpg
./autoview/vresource/help/pt/index.html
./autoview/vresource/help/pt/lang-large.jpg
./autoview/vresource/help/pt/slide-options1.jpg
./autoview/vresource/help/pt/video-options2.jpg
./autoview/vresource/help/pt/thumb-controls.jpg
./autoview/vresource/help/pt/slide-controls.jpg
./autoview/vresource/help/pt/slide-options2.jpg
./autoview/vresource/help/pt/subtitles.jpg
./autoview/vresource/help/pt/videolan.jpg
./autoview/vresource/help/pt/position.jpg
./autoview/vresource/help/help-styles.css
./autoview/vresource/help/en
./autoview/vresource/help/en/windowsmedia.jpg
./autoview/vresource/help/en/lang-small.jpg
./autoview/vresource/help/en/video-options1.jpg
./autoview/vresource/help/en/javaaudio.jpg
./autoview/vresource/help/en/thumb.jpg
./autoview/vresource/help/en/flashvideo.jpg
./autoview/vresource/help/en/realplayer.jpg
./autoview/vresource/help/en/quicktime.jpg
./autoview/vresource/help/en/index.html
./autoview/vresource/help/en/lang-large.jpg
./autoview/vresource/help/en/slide-options1.jpg
./autoview/vresource/help/en/video-options2.jpg
./autoview/vresource/help/en/thumb-controls.jpg
./autoview/vresource/help/en/slide-controls.jpg
./autoview/vresource/help/en/slide-options2.jpg
./autoview/vresource/help/en/subtitles.jpg
./autoview/vresource/help/en/videolan.jpg
./autoview/vresource/help/en/position.jpg
./autoview/vresource/allslides.html
./autoview/vresource/utils
./autoview/vresource/utils/newlang.html
./autoview/vresource/utils/testlangs.html
./autoview/vresource/OVP.xap
./autoview/vresource/jorbis-0.0.15.jar
./autoview/vresource/autoview.js
./autoview/vresource/transcript.css
./autoview/vresource/style.css
./autoview/vresource/test.swf
./autoview/vresource/audio.jar
./autoview/vresource/images
./autoview/vresource/images/transparent.gif
./autoview/vresource/real.html
./autoview/vresource/FlowPlayer.swf
./autoview/vresource/jogg-0.0.7.jar
./autoview/vresource/divs-table.css
./autoview/vresource/divs-layout.css
./autoview/vresource/style-thumbnails.css
./autoview/recieveXML.php
./autoview/avedit
./autoview/avedit/convert.xsl.new
./autoview/avedit/lang
./autoview/avedit/lang/fr.js
./autoview/avedit/lang/en.js
./autoview/avedit/lang/pt_alt.js
./autoview/avedit/lang/newlang.html
./autoview/avedit/lang/pt.js
./autoview/avedit/base64.js
./autoview/avedit/subtitlesrc.js
./autoview/avedit/avedit.xml
./autoview/avedit/avedit.xsl
./autoview/avedit/convert.xsl
./autoview/avedit/slidesrc.js
./autoview/avedit/convert.xml
./autoview/avedit/blank.avx
./autoview/avedit/extension.js
./autoview/avedit/videosrc.js
./autoview/avedit/editor.js
./autoview/avedit/quicksrc.js
./autoview/readme.txt
./autoview/refmovie.inc.php
./autoview/restorelib.php
./autoview/search_document.php
./autoview/db
./autoview/db/install.xml
./autoview/db/upgrade.php
./autoview/db/access.php
./autoview/autoview.php
./autoview/mod.html
./autoview/index.php

John

Picture of Tim Williams
Re: Install
by Tim Williams - Friday, 19 February 2010, 12:04 PM
 
Well you seem to have everything that you should have in the correct place. Did the test script work, or did that give a similar error ?

I have to admit, without having direct access to your server, i'm not sure what else to suggest. Something in your system configuration is causing the AutoView mod directory to be inaccessible to the server process, but there doesn't appear to be anything actually wrong with the permissions or the files you have in place.
Picture of John Kerr
Re: Install
by John Kerr - Friday, 19 February 2010, 1:04 PM
 

The test script gave an error yes!!!

I am trying this install on my Moodle test server which is just a virtual copy of the real thing so i dont see that causing any problems.

I'll have a closer look and i'll get back to you if i have any luck!

John