Ubuntu :: MIME Types Setup For Apache / MediaWiki

Jan 28, 2010

I'm trying on getting the MIME types setup correctly for Apache/MediaWiki. I think I've modified every config file known to man to no avail. Here's some info on what I've got going on. I'm trying to get the Office 2007 MIME types configured for MediaWiki 1.14 so that we can upload/download the files. Out of frustration/lack of need I went the less secure route and I modified the LocalSettings.php config file to disable MIME type verification for uploads.

Code:
$wgVerifyMimeType = false;

This works great for the uploads, and I can upload .DOCX, .XLSX, and .PPTX all day long, however when downloading them, they download as a .ZIP file with all the XML info inside of it. No biggie for me personally as I can just rename .ZIP to .DOCX and it works fine, however for the average user it's not going to fly. So, I figured that MIME types would be the source of my pain and started doing some research.

I have modified the following config files to include the MIME types listed below.
/etc/mime.types
/var/www/.htaccess (created to try and force them)
/var/www/mediawiki-1.14.0/.htaccess (created to try and force them)
/var/www/mediawiki-1.14.0/includes/mime.types

Code:
application/vnd.ms-word.document.macroEnabled.12 .docm
application/vnd.openxmlformats-officedocument.wordprocessingml.document docx
application/vnd.openxmlformats-officedocument.wordprocessingml.template dotx
application/vnd.ms-powerpoint.template.macroEnabled.12 potm
application/vnd.openxmlformats-officedocument.presentationml.template potx
application/vnd.ms-powerpoint.addin.macroEnabled.12 ppam
application/vnd.ms-powerpoint.slideshow.macroEnabled.12 ppsm
application/vnd.openxmlformats-officedocument.presentationml.slideshow ppsx
application/vnd.ms-powerpoint.presentation.macroEnabled.12 pptm
application/vnd.openxmlformats-officedocument.presentationml.presentation pptx
application/vnd.ms-excel.addin.macroEnabled.12 xlam
application/vnd.ms-excel.sheet.binary.macroEnabled.12 xlsb
application/vnd.ms-excel.sheet.macroEnabled.12 xlsm
application/vnd.openxmlformats-officedocument.spreadsheetml.sheet xlsx
application/vnd.ms-excel.template.macroEnabled.12 xltm
application/vnd.openxmlformats-officedocument.spreadsheetml.template xltx
It doesn't seem to matter where I put the code, I can't get the MIME types to register with Apache/MediaWiki.

View 1 Replies


ADVERTISEMENT

Ubuntu :: Can't Edit Mime Types In Thunderbird

Feb 18, 2010

associate html attachment in emails with Firefox and tried to edit mime type extensions in Thunderbird through Edit/Preferences/Attachments/Download Actions/View & Edit Actions but it is empty and there is no way to add extensions there. Is there a different way to do it? I tried to choose Firefox while opening the attachment. It works but does not remember it for further actions.

View 2 Replies View Related

Ubuntu :: Applications Ignoring Mime Types?

May 24, 2011

Files downloaded with Firefox, Chromium, Miro etc. will not open correctly. Clicking to open the file (e.g. jpg or ogg) should result in the file opening with eog or audacious. Results - from Nautilus this works correctly, however from other applications the result is a Nautilus window. Placing a file 'test.torrent' on the desktop and using terminal to do

Code:
gnome-open test.torrent
or
Code:
xdg-open test.torrent
results in the same behaviour. However, simply clicking the file in Nautilus opens it in Deluge (correct behaviour).

View 4 Replies View Related

Software :: Wine Set It As Default Handler For Many Mime-types?

Dec 24, 2010

I don't have wine installed. But I use teamviewer [URL] to remote support my friends. Teamviewer provide an "linux version" using wine wrapper. Every time I run it, some mime types such as .jpg, .wmv, .txt, .ini, v.v... was set to be handle by a "A Wine application". So, nothing happen when I open those file, I have to reset their handler to proper linux application.

1. How can I completely remove those "A wine application" handler? Is there a tool, or a settings applet in gnome that allow me to do that. Currently, I have to find those files in nautilus, right click and change the open with settings, that's frustrated.

2. Can I lock mime type handling settings from being changed by some application? Or even lock it from any changed at all? I don't mind remove the write permission from some settings file, I won't likely to change my current mime type handling settings in near future.

View 4 Replies View Related

Ubuntu :: Edit Mime Types To Remove A File Type Association?

Oct 30, 2010

I installed a trial copy of Anquet Map V06 under Wine then decided to remove it. Afterwards I could find many remnants associated with the Anquet program which I've deleted. Except what remains is an association between my .gpx files with Anquet and that includes and any new gpx file I download. My interpretation is that during the install process an association has been created with the gpx file type and the Anquet map program. This is what I want to stop. If I download a .gpx file and look at it's properties I see- Type: GPX File -Anquet Mapsv06 (application/x-wine-extension-gpx) I found this file and it's contents-

/.local/share/mime/application/x-wine-extension-gpx.xml
<mime-type type="application/x-wine-extension-gpx">
−
<!--

[code]....

Running "sudo update-mime-database /usr/share/mime" and rebooting didn't remove the association. How can I stop the Anquet name making as association with my gpx files?

View 9 Replies View Related

Debian Multimedia :: Freedekstop MIME Types Versus Update Alternatives

Aug 15, 2010

I would like to know if there exists an article explaining how update-alternatives integrates with Freedesktop.org MIME. How do these systems coexist? How do they cooperate? Lately KDE and GNOME apps seemed to agree on default applications more and more; it seems there still exists an ordering problem [URL] , section Default application ordering), but things are generally working.

However, now I notice that some applications (which I've known for a long time to not be very Linux desktop friendly, I'm looking at Mozilla first, but this time I can't blame them without reason) use some totally different system, Alternatives. The example that comes to mind now is Icedove. Is there going to be a consensus on the default system or we'le have different applications using different systems?

View 3 Replies View Related

Ubuntu :: Setup MediaWIki As Personal Wiki (pim)?

Jul 15, 2010

I have changed to ubuntu a few months ago from windows, where I used to have a mediawiki set up on a local server. This wiki was used for notes, archiving, document management, file storage, calendaring, almost everything that most people do with a normal directory tree on their drives.

Unfortunately, I have not yet managed to install a local media wiki on my ubuntu 10.04 LTS system so far. I have tried it once and messed up the php-stuff so badly that I had to reinstall the entire system in order for it to work in a acceptable speed.

how to set up a current version mediawiki (or an older version, if that's the only chance) as a local wiki in 10.04 LTS? There is no network access to the wiki, just local access using a firefox browser on the machine where it is installed.

View 1 Replies View Related

Server :: Apache MIME Icons Is Missing - Slackware 13.1

Mar 5, 2011

Apache 2.2 on Slackware 13.1 seems to be missing the MIME icons when i visit a directory containing files.

This command returned nothing related to httpd

Code:
find | grep /icons

Where do i find the icons and how do i enable them ?

View 2 Replies View Related

Ubuntu Servers :: Apache2-svn Mime - Tell Apache To Treat Script Files As Plain-text?

Apr 5, 2010

I've got an apache-svn server up and running fine but I'm struggling with an irritating problem. I need the apache server to display .vbs, .cs., vb., .sh, .pl., .c, .h, .cpp, etc, etc files in the browser. Whenever our users click on a script they get a download dialog instead of the script being displayed in the browser as plain/text. I have added:

Code: AddType text/plain .vbs Into /etc/apache2/mods-enabled/mime.conf but it seems to be getting ignored. how I can tell apache to treat script files as plain-text?

View 1 Replies View Related

Debian Multimedia :: MATE Desktop - Setup Default Apps (MIME-Type)

Aug 28, 2015

I can't setup or change MIME-Types in Mate/Caja (filemanager)

I use MATE Desktop on Debian 8.1 - File Manager is Caja (1.8.2) - I put in a USB Stick whit Pics. In the Popup Window they came up, normally i can setup a Default behavior for Pics, Music ... But, in my Window the Options are not available. (Grey) The same in "Settings" from Caja (Datenträger) Data Medium.

What can i do to set MIME Types in Mate?

View 0 Replies View Related

Server :: Technology For Detecting Types Of Traffic And Allowing To Run Multiple Types?

Apr 9, 2011

I would like port 80 to have a small daemon running on it that detects HTTP traffic and sends a small redirect response, and any other traffic begins streaming data from my VPN daemon. I was wondering if this has already been made, or any kind of technology for detecting types of traffic and allowing you to run multiple types of servers on the same port.

View 4 Replies View Related

Programming :: Conflicting Type Declarations Between Sys/types.h And Linux/types.h

Sep 12, 2010

I'm trying to use "netlink" to get ip address of a Linux box. But the linux/types.h included from "linux/rtnetlink.h" introduced many conflicting type declarations with "sys/types.h".

#include <rtnetlink.h>
#include <sys/types.h>
#include <sys/socket.h>
int main (int argc, char *argv[])
{
return 0;
}

The program will demonstrate such type conflicts.

View 3 Replies View Related

Ubuntu :: Grsync - Filtering File Types / Getting Only Some File Types Getting Included And Not Others?

Sep 1, 2011

I'm using Grsync and I want to be able to plug in any drive into my laptop and run rsync on it to back up all the user documents on there to another external hdd and to exclude everything else. Working on the principle that user documents don't always appear where we'd expect I want rsync to look through the whole drive and filter what it backs up by file type. I am only having partial success, however.

I am using the 'filter' option in the 'additional options' box. I am using the command
Code:
filter='merge /home/tim/Desktop/filter'
and I am attaching the filter file I have written. (I have added the .txt extention to upload it).

I have tested this script on my home folder and here's what's going wrong. Rsync will copy the entire directory structure regardless of whether there are any files to be copied over in those directories. I am also getting only some file types getting included and not others. .odt and .ods files are copied, for instance, but not .doc or .rtf.

View 3 Replies View Related

Ubuntu :: Apache Tomcat Setup To Run On SSL

Feb 22, 2010

I want to setup tomcat and apache to run on SSL. I did set up apache to run with ssl and tomcat (wo ssl). Tomcat is on 8081 and apache is on standard HTTP/HTTPS ports. Now I installed JK module and I want to access "host-manager" application on tomcat with ssl, but when I try https://localhost/host-manager/ I get 503 error and when I try [URL]. I get 404 error. Here's my /etc/apache2/sites-available/default conf:


Code:
<VirtualHost *:80>
ServerAdmin webmaster@localhost
DocumentRoot /var/www
<Directory />
Options FollowSymLinks
AllowOverride None
</Directory>
<Directory /var/www/>
Options Indexes FollowSymLinks MultiViews
AllowOverride None
Order allow,deny
allow from all
</Directory> .....

Here is /etc/apache2/mods-enabled/jk.load:

Code:
LoadModule jk_module /usr/lib/apache2/modules/mod_jk.so
JkWorkersFile /etc/apache2/workers.properties
JkLogFile /var/log/apache2/mod_jk.log
JkLogLevel info
JkLogStampFormat "[%a %b %d %H:%M:%S %Y] "
JkOptions +ForwardKeySize +ForwardURICompat -ForwardDirectories
JkRequestLogFormat "%w %V %T"
and here is workers.properties:

Code:
worker.list=worker1
worker.testWorker.port=8009
worker.testWorker.host=localhost
worker.testWorker.type=ajp13

View 1 Replies View Related

Ubuntu :: Setup Apache To Serve Only The Computers In The LAN?

Jun 10, 2010

I use to keep a running instance of Apache in order to test my sites locally. I'm usually not that fussy about security, assuming my 80 and 8080 ports are closed (and, well, also the other ones).Anyway this evening I was just logging into PHPMyAdmin when I found the default username was a string of garbled characters. When I entered PHPMyAdmin, I was greeted with the message

Code: Additional features have been disabled in order to work with linked tables. To find out why click here.So I clicked and it seems that the error comes from the table

Code:
$cfg['Servers'][$i]['tracking']
which has been disabled. Everything else SEEMS ok at first sight.So now I have got a few questions.

1) I checked via canyouseeme.org and the default ports are still closed. This mean it should be impossible to even try to do something on my Apache remotely, right?

2) How do I reenable the additional features?

3) How do I check if someone else logged in?

4) What about the garbled name at the login? This should be just a Firefox thing, or actually PHPMyAdmin does suggest the name of the latest login?

5) How do I set up Apache to serve only the computers in the LAN? At worst, even only the local computer would be good.

View 4 Replies View Related

Ubuntu :: What Files Should Be Configured To Setup Apache

Jul 19, 2011

At this moment I got a question asking what files should I configure to setup Apache and the client to access should insert something like http://10.0.0.10/mywebsite:8080. I have already installed APache2, and change the listen ports to 8080 at ports.conf (Listen 8080 | Name VirtualHost *:8080) and at /etc/apache2/default (VirtualHosts *:8080). I also found the index.html at /var/www folder. I also changed IP address at /etc/network/interfaces. With this changing, now I can access using http://10.0.0.10:8080. But the problem is, what about the "mywebsite" part?

View 6 Replies View Related

Ubuntu Servers :: 9.1 Setup - How To Get Apache To Display Website

Jan 10, 2010

I have Ubuntu 9.1 setup, with ISPCONFIG3, squirrel mail, apache2, mysql, phpmyadmin, phpbb3 so now what, what do I need to do next to setup to get apache to display my website and where do I need to put my web files?

View 1 Replies View Related

Server :: Ubuntu 9.10 Setup - Open AVI Links In Apache

Mar 12, 2010

I have my Ubuntu 9.10 server setup with apache2 and it will load web pages. The cgi-bin perl programs do run in the web server. What I would like to know is how to have it access video files and download then from a link. The video files are at /media/usb-drive/Movies/movies

I think my Alias is setup.
ScriptAlias /movies/ /media/usb-drive/movies/
<Directory "/media/usb-drive/movies/">
AllowOverride None
Options +ExecCGI -MultiViews +SymLinksIfOwnerMatch
Order allow,deny
Allow from all
</Directory>

When I make a web page with a link to a file
<a href="/media/usb-drive/movies/Movies/test.avi">Video</a>
I get the error
Internal Server Error

The server encountered an internal error or misconfiguration and was unable to complete your request. Please contact the server administrator, webmaster@localhost and inform them of the time the error occurred, and anything you might have done that may have caused the error. More information about this error may be available in the server error log.
Apache/2.2.12 (Ubuntu) Server at usha.homelinux.com Port 80

If I make a link to a file I do not have it get this error
<a href="/media/usb-drive/movies/Movies/nofil.avi">Video</a>
Not Found
The requested URL /movies/Movies/W1.avi was not found on this server. I do not know what the misconfiguration is.

View 3 Replies View Related

CentOS 5 :: How To Setup Apache To Tomcat

May 7, 2011

I installed the Tomcat5.5, but when i test the port 8080 didn't work, where i can edit to work it properly? and then help me how to setup apache to tomcat? specific command, directory where i can edit and configure the scripts? and where i can put the web application file?

View 1 Replies View Related

Ubuntu Servers :: UEC Accessing Mediawiki Demo Appliance

Apr 17, 2010

I have downloaded the Mediawiki demo appliance from UEC store. I have installed it and also it is running. I would like to know how to access the mediawiki demo appliance. I tried accessing it as [URL] but is not accessible.

View 2 Replies View Related

Ubuntu Installation :: Installing Latest Mediawiki From Source

May 28, 2011

I downloaded latest mediawiki, moved the tarball to /usr/share/ exploded the tarball via

Code:

then

Code:

Then in your web browser point to local host 127.0.0.1/wiki

It will then bring you to the wiki configuration setup pages, and you may install databases for this package via phpmyadmin. im going to remove the alias to php my admin after i am done using it again to cut off outside world from seeing the php my admin login page for security reasons.

Im going to do this by adding a # infront of the alias in /etc/apache2/conf.d/phpmyadmin.conf and making it look like this.

Code:

My next to default ubuntu install says we should install caching, and pecl.

Pecl search in synaptic shows dh-make-php as first result. install that, then install [url] extension for mediawiki. i already have apache mysql and php installed, but if you dont have those installed they are requried.

download latest [url], tar -xf intl* to explode package.

## im clearly going to have to refine this.... php-apc shows up in synaptic, installing it does not stop the wiki installer page from throwing errors. going to try [url] to see if that resolves one

download the latest source of eaccelerator.
[url]

tar -xf eaccelerator source package to explode it,

phpize command tells me i need php-dev package, i pull the package from synaptic. i also grab libicu-dev while i am at it.

Code:

goes through, then


Code:

Code:

add to the top of the file the e accelerator info.

Code:

Code:

Code:

Then purge eaccelerator source directory and pure the tarball out of your system.

At this point we are going to make a database for the mediawiki by uncommenting the alias that keeps phpmyadmin shut off from attacks.

Code:

Then

Code:

Then point the browser @ 127.0.0.1/phpmyadmin

Then setup your database for wikipedia, i named mine wiki

Make a user, i named mine wiki.

Password your database, and follow prompts in the media wiki package

Comment the alias of phpmyadmin to disable the phpmyadmin pannel/address

Restart apache and your good to go on linking the wiki.

View 1 Replies View Related

Ubuntu Security :: Ways To Secure Server Setup With Apache?

Jun 19, 2010

I've set up a server for the first time today and I'm reading up on how to secure it. But I was wondering if anyone here would give me some tips from personal experience on what to do before going online with my website for the whole world to see. I'm running Ubuntu Server edition and Apache. Am I good to go with default settings or is there anything recommended that I should first do?

View 9 Replies View Related

Ubuntu Servers :: Setup Puppet To Install And Configure Apache

Jul 7, 2010

I'm trying to setup puppet to install and configure apache on several servers. Having found: [URL] I thought I was onto something. However I'm a little lost, does anyone know of or can anyone write a small howto on how to get this module working on certain nodes. My current state is puppet is running and connected to the puppetmaster. I can do simple things but the apache install have lost me a little.

View 1 Replies View Related

Ubuntu Servers :: Setup Puppet To Install And Configure Apache?

Nov 23, 2010

I'm trying to setup puppet to install and configure apache on several servers. Having found:

[URL]

I thought I was onto something. However I'm a little lost, does anyone know of or can anyone write a small howto on how to get this module working on certain nodes.My current state is puppet is running and connected to the puppetmaster. I can do simple things but the apache install have lost me a little.

View 4 Replies View Related

Ubuntu Servers :: Setup A Home Web For Personal Site Using 11.04 And Apache

Jul 23, 2011

I am trying to set up a home web server for my personal site using Ubuntu 11.04 and Apache. I have set up a user called www and given it FTP access to its home area (/home/www) using vsftpd. I then edited /etc/apache2/sites-available/default and set the DocumentRoot directive to /home/www. When I made a test index.html file in that directory it worked fine. Then I FTP'd to the server (as www) from another PC and uploaded the site files. Now when I try to access the site I get an error 403 (forbidden).Obviously I'm doing something wrong here but I'm not sure what. What should I do to fix this.

View 2 Replies View Related

Software :: Installing 'mediawiki' On Computer

Aug 7, 2010

Ubuntu

Installing 'Mediawiki' and using the instructions found at this website. [URL]

I get this error during installation.

Quote:

dave@dave:~$ sudo apt-get install mediawiki
(Reading database ... 321919 files and directories currently installed.)
Unpacking mediawiki (from .../mediawiki_1%3a1.15.1-1ubuntu2.1_all.deb) ...
Setting up mediawiki (1:1.15.1-1ubuntu2.1) ...
* Reloading web server config apache2

[Code].....

View 1 Replies View Related

Fedora Servers :: Setup The ERuby On Apache?

Jun 17, 2009

I'm trying to setup eRuby on my Apache server, and I'm having problems. Currently, I have this in a separate config file in "/etc/httpd/conf.d/eruby.conf":

Code:

AddType application/x-httpd-eruby .rhtml
Action application/x-httpd-eruby /cgi-bin/eruby
DirectoryIndex index.rhtml

I have a file named "index.rhtml" in a folder called "test" that's in the root of my server. When I try to get to the file I get this, though:

Code:

You don't have permission to access /cgi-bin/eruby/test/index.rhtml on this server.

View 3 Replies View Related

OpenSUSE :: Setup PHP / Apache / MySQL For Development?

Mar 16, 2011

On Windows and Mac it's as simple as downloading some WAMP and XAMP stack and clicking "install".

On OpenSUSE I'm trying to do it myself. I went into YaST and installed the "Web and LAMP Server" pattern.

Then I edited the default-server.conf file to point towards my website by changing the DocumentRoot and <Directory "blah blah"> lines.

Then I tried to start apache, but got the following error:

Code:
# apache2ctl restart
httpd2: Syntax error on line 188 of /etc/apache2/httpd.conf: Could not open configuration file /etc/apache2/sysconfig.d/include.conf: No such file or directory
So I just went into httpd.conf and commented out that line.

[Code].....

View 7 Replies View Related

Debian :: Webserver Setup With Apache Worker And PHP?

May 26, 2011

I need to setup a web server with apache (worker) and php. What is the cleanest way to this with Debian Squeeze?

View 1 Replies View Related

General :: Apache 2.2 Setup On Debian - About Name Servers?

Jan 5, 2011

I'm setting up my Debain machine to host my homepage, and I have installed Apache 2.2, and a browser-based GUI for it called Webmin. I have a domain name with co.cc, it is www.patmore.co.cc. On the domain name site, there are two fields for name servers. Presently, they are set to the name servers for my hosting company. Apache is working on my machine. When I type my host name in my browser, it goes to index.html in the document root, as it should. When I key in my Debain machine's IP address on another machine on the same network, it also goes to index.html.

Attached, there is a screenshot of the Virtual Server Details in the Webmin GUI. I think I have the server name set right, but what do I type in the Address field? What do I need to type in for my name servers on the domain name site?

View 3 Replies View Related







Copyrights 2005-15 www.BigResource.com, All rights reserved