+ Post New Thread
Results 1 to 3 of 3
Virtual Learning Platforms Thread, Office 2007 file format support in Apache, PHP and Moodle in Technical; Just had to figure this one out, using info from this blog . Either edit /etc/mime.types and add: Code: application/vnd.openxmlformats ...
  1. #1
    Geoff's Avatar
    Join Date
    Jun 2005
    Location
    Fylde, Lancs, UK.
    Posts
    10,963
    Blog Entries
    1
    Thank Post
    104
    Thanked 422 Times in 365 Posts
    Rep Power
    109

    Office 2007 file format support in Apache, PHP and Moodle

    Just had to figure this one out, using info from this blog.

    Either edit /etc/mime.types and add:

    Code:
    application/vnd.openxmlformats       docx pptx xlsx
    Or add the following to your apache.conf

    Code:
    AddType  application/vnd.openxmlformats  .docx .pptx .xlsx
    Then you need to tell Moodle what to do (following instructions are for 1.7.1).

    1) Open lib/filelib.php
    2) find the get_mimetypes_array() function
    3) find the array definition
    4) add the following elements

    Code:
    'docx' => array ('type'=>'application/vnd.openxmlformats', 'icon'=>'word.gif'),
    'pptx' => array ('type'=>'application/vnd.openxmlformats', 'icon'=>'powerpoint.gif'),
    'xlsx' => array ('type'=>'application/vnd.openxmlformats', 'icon'=>'excel.gif'),
    There's other file extensions for templates, etc. But I've ignored them as I don't know what they are and I'm hoping no one will use them (However if anyone wants to post them or let me know so I can, feel free).

  2. #2

    Join Date
    Mar 2006
    Posts
    540
    Thank Post
    2
    Thanked 3 Times in 2 Posts
    Rep Power
    14

    Re: Office 2007 file format support in Apache, PHP and Moodl

    Quote Originally Posted by Geoff
    I've ignored them as I don't know what they are and I'm hoping no one will use them
    LOL Spoken like a 'real' tech

    It shows you're human, I suppose.

  3. #3
    Joedetic's Avatar
    Join Date
    Jan 2006
    Location
    Walsall
    Posts
    1,318
    Thank Post
    6
    Thanked 13 Times in 13 Posts
    Rep Power
    17

    Re: Office 2007 file format support in Apache, PHP and Moodle

    Let's face it...if the sysadmin doesnt know what they are the BOFHs arent likely to really.

SHARE:
+ Post New Thread

Similar Threads

  1. Delete certain file format using a script
    By FN-GM in forum Scripts
    Replies: 3
    Last Post: 27th December 2007, 01:17 AM
  2. Office 2007 file convertors
    By dezt in forum Downloads
    Replies: 10
    Last Post: 5th May 2007, 03:40 PM
  3. MS Office 2007 default 2003 format save
    By zag in forum Educational Software
    Replies: 4
    Last Post: 24th April 2007, 11:44 AM
  4. Office 2007 default save format
    By Geoff in forum Office Software
    Replies: 8
    Last Post: 14th February 2007, 08:59 PM
  5. ical file format to csv convert
    By russdev in forum Windows
    Replies: 2
    Last Post: 1st November 2006, 07:22 AM

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •