I had the same problem. This took care of it:
http://www.mediawiki.org/wiki/User:Robchurch/Getting_PHP_5_on_a_cheap_host
thanks
============
-------- Original Message -------- Subject: [Mediawiki-l] 'index.php' File Will Not Open From: "G. Carter" gcarter2000@gmail.com Date: Wed, May 09, 2007 10:34 am To: MediaWiki-l@lists.wikimedia.org
I'm trying to configure Media Wiki under SUSE Linux Enterprise Server 10. All prerequisite software has been installed and is running. However, when I attempt to open 'index.php' in my /public_html/wiki/config directory I'm presented w/a prompt to either open w/Firefox (the default) or save to disk. If I select 'OK' to open I'm presented w/the very same prompt. Any idea on what setting I need to correct?
Thanks _______________________________________________ MediaWiki-l mailing list MediaWiki-l@lists.wikimedia.org http://lists.wikimedia.org/mailman/listinfo/mediawiki-l
That was the problem/solution!
Thanks
On 5/9/07, Greg Robinson greg@statement.net wrote:
I had the same problem. This took care of it:
http://www.mediawiki.org/wiki/User:Robchurch/Getting_PHP_5_on_a_cheap_host
thanks
============
-------- Original Message -------- Subject: [Mediawiki-l] 'index.php' File Will Not Open From: "G. Carter" gcarter2000@gmail.com Date: Wed, May 09, 2007 10:34 am To: MediaWiki-l@lists.wikimedia.org
I'm trying to configure Media Wiki under SUSE Linux Enterprise Server
All prerequisite software has been installed and is running. However, when I attempt to open 'index.php' in my /public_html/wiki/config directory I'm presented w/a prompt to either open w/Firefox (the default) or save to disk. If I select 'OK' to open I'm presented w/the very same prompt. Any idea on what setting I need to correct?
Thanks _______________________________________________ MediaWiki-l mailing list MediaWiki-l@lists.wikimedia.org http://lists.wikimedia.org/mailman/listinfo/mediawiki-l
MediaWiki-l mailing list MediaWiki-l@lists.wikimedia.org http://lists.wikimedia.org/mailman/listinfo/mediawiki-l
How would I go about allowing users to upload files to my wiki? I've briefly read through the instructions on uploading images, but my wiki doesn't even have an upload page link in the left pane.
Thank you! Mike
--------------------------------- Ahhh...imagining that irresistible "new car" smell? Check outnew cars at Yahoo! Autos.
Sorry, forgot to change the subject :)
Mike xclbur5150@yahoo.com wrote: How would I go about allowing users to upload files to my wiki? I've briefly read through the instructions on uploading images, but my wiki doesn't even have an upload page link in the left pane.
Thank you! Mike
--------------------------------- Ahhh...imagining that irresistible "new car" smell? Check outnew cars at Yahoo! Autos. _______________________________________________ MediaWiki-l mailing list MediaWiki-l@lists.wikimedia.org http://lists.wikimedia.org/mailman/listinfo/mediawiki-l
--------------------------------- Ahhh...imagining that irresistible "new car" smell? Check outnew cars at Yahoo! Autos.
On 11/05/07, Mike xclbur5150@yahoo.com wrote:
How would I go about allowing users to upload files to my wiki? I've briefly read through the instructions on uploading images, but my wiki doesn't even have an upload page link in the left pane.
Read deeper.
Rob Church
In LocalSettings.php, add: $wgEnableUploads = true;
On 5/10/07, Mike xclbur5150@yahoo.com wrote:
How would I go about allowing users to upload files to my wiki? I've briefly read through the instructions on uploading images, but my wiki doesn't even have an upload page link in the left pane.
Thank you! Mike
Ahhh...imagining that irresistible "new car" smell? Check outnew cars at Yahoo! Autos. _______________________________________________ MediaWiki-l mailing list MediaWiki-l@lists.wikimedia.org http://lists.wikimedia.org/mailman/listinfo/mediawiki-l
Thanks alot! That got the upload file link working for me, now I'm having another problem. I want to be able to upload files with the extension of .cmd
As Rob suggested, I read deeper and found that I have to add this to localsettings.php:
$wgFileExtensions = array( 'gif', 'cmd', 'jpg', 'jpeg', 'doc', 'txt' );
which I did, but I still get a message saying ".Cmd" is not a recommended image file format.
Any ideas on this?
Thanks! Mike
Emufarmers Sangly emufarmers@gmail.com wrote: In LocalSettings.php, add: $wgEnableUploads = true;
On 5/10/07, Mike wrote:
How would I go about allowing users to upload files to my wiki? I've briefly read through the instructions on uploading images, but my wiki doesn't even have an upload page link in the left pane.
Thank you! Mike
Ahhh...imagining that irresistible "new car" smell? Check outnew cars at Yahoo! Autos. _______________________________________________ MediaWiki-l mailing list MediaWiki-l@lists.wikimedia.org http://lists.wikimedia.org/mailman/listinfo/mediawiki-l
Mike a écrit :
Thanks alot! That got the upload file link working for me, now I'm having another problem. I want to be able to upload files with the extension of .cmd
As Rob suggested, I read deeper and found that I have to add this to localsettings.php:
$wgFileExtensions = array( 'gif', 'cmd', 'jpg', 'jpeg', 'doc', 'txt' );
which I did, but I still get a message saying ".Cmd" is not a recommended image file format.
Any ideas on this?
cmd is forbidden by the $wgFileBlacklist array (in DefaultSettings.php) use LocalSettings.php to enable it (though if it's forbidden, there is a reason for it ... )
On 11/05/07, Alexis Moinet alexis.moinet@fpms.ac.be wrote:
Mike a écrit :
Thanks alot! That got the upload file link working for me, now I'm
having another problem. I want to be able to upload files with the extension of .cmd
As Rob suggested, I read deeper and found that I have to add this to
localsettings.php:
$wgFileExtensions = array( 'gif', 'cmd', 'jpg', 'jpeg', 'doc', 'txt'
);
which I did, but I still get a message saying ".Cmd" is not a
recommended image file format.
Any ideas on this?
cmd is forbidden by the $wgFileBlacklist array (in DefaultSettings.php) use LocalSettings.php to enable it (though if it's forbidden, there is a reason for it ... )
Aint $wgFileBlacklist has highest priority, so you have no way to upload files with extension in the blacklist, even if you add to $wgFileExtensions array.
I guess, he has to remove the 'cmd' from DefaultSettings.php...
_______________________________________________
MediaWiki-l mailing list MediaWiki-l@lists.wikimedia.org http://lists.wikimedia.org/mailman/listinfo/mediawiki-l
On 11/05/07, Oliver Schalch schalch@gmail.com wrote:
Aint $wgFileBlacklist has highest priority, so you have no way to upload files with extension in the blacklist, even if you add to $wgFileExtensions array.
I guess, he has to remove the 'cmd' from DefaultSettings.php...
The file blacklist is for your safety and your users' safety. Removing the extension from the blacklist would mean that a malicious user would be able to upload a Windows command line script (equivalent to a shell script) which could lead to execution rights on the client if downloaded, especially since Windows has an annoying habit of executing things left, right and centre.
You therefore remove this from the blacklist at your own risk.
Rob Church
IMPORTANT: I cannot imagine any circumstance whereby you would allow
the upload (and possible execution) of a .cmd, .sys, .com, . . . File. Unless you are using this as a developer wiki in an extremely restricted environment, it sounds like a wonderful way to compromise your system.
Well, the wiki is for an online game. Some of the files used to play the game use .cmd extensions. The files that will be uploaded would not be windows executable .cmd files (unless like you said a malicious user uploads something they shouldn't) I will see if there is a way around using the .cmd file type, but if not then am I correct in thinking that it is possible to remove the .cmd from the blacklist in DefaultSettings.php?
Thanks so much for all the help! Mike
Rob Church robchur@gmail.com wrote: On 11/05/07, Oliver Schalch wrote:
Aint $wgFileBlacklist has highest priority, so you have no way to upload files with extension in the blacklist, even if you add to $wgFileExtensions array.
I guess, he has to remove the 'cmd' from DefaultSettings.php...
The file blacklist is for your safety and your users' safety. Removing the extension from the blacklist would mean that a malicious user would be able to upload a Windows command line script (equivalent to a shell script) which could lead to execution rights on the client if downloaded, especially since Windows has an annoying habit of executing things left, right and centre.
You therefore remove this from the blacklist at your own risk.
Rob Church
_______________________________________________ MediaWiki-l mailing list MediaWiki-l@lists.wikimedia.org http://lists.wikimedia.org/mailman/listinfo/mediawiki-l
--------------------------------- The fish are biting. Get more visitors on your site using Yahoo! Search Marketing.
Is it possible to change the file uploads section to include a few more custom fields, and to automatically create a link to the uploaded file on a specified page (hopefully selected by the user in one of the Custom fields)
Thanks! Mike
--------------------------------- Sick sense of humor? Visit Yahoo! TV's Comedy with an Edge to see what's on, when.
On 17/05/07, Mike xclbur5150@yahoo.com wrote:
Is it possible to change the file uploads section to include a few more custom fields, and to automatically create a link to the uploaded file on a specified page (hopefully selected by the user in one of the Custom fields)
Anything is possible.
With regards to actually editing the form, the upload form itself is Special:Upload, and the code for it can be found in includes/SpecialUpload.php. There's a couple of functions in there responsible for generating the actual form that users see; add HTML form fields there as standard.
With regards to it doing something, that depends. If the "custom fields" are going to be preserved, then you'll want to think about exactly how that's to be done in the database; new table, or additional columns to the image tables (which our updaters might not know about, etc.). You would then want to hack a few classes (Image, in particular, although watch out for conflicts when that becomes File in the next version) to make sure the stuff gets saved and loaded as expected.
A custom field that merely alters the upload process is obviously a lot easier, because you'll only need to check it within the upload form handler's logic, and things become a lot easier to maintain hacks for using patches once that's in place.
Rob Church
Mike,
Don't know if this is your problem, but many web servers also have a filter on what they will allow as an extension. For example, in IIS, part of the properties of the web service in IIS Manager->[your web service]->Properties->HTTP Headers->Mime Types is a complete list of all mime types by extensions the server is allowed to serve.
For IIS, go into the IIS Manager, right click on properties for the virtual directory, 'HTTP Headers' tab, "Mime Types" and add it to the type served. Depending on your need, you can add this all the way up to the top (local computer) and it will allow all sub-webs and sub-virtual webs to upload/download that file type.
I can't remember the exact for most other Web Servers, but I'm pretty sure it's in the httpd.conf for Apache.
IMPORTANT: I cannot imagine any circumstance whereby you would allow the upload (and possible execution) of a .cmd, .sys, .com, . . . File. Unless you are using this as a developer wiki in an extremely restricted environment, it sounds like a wonderful way to compromise your system.
Jack D. Pond CIO, Montgomery County, PA (610)278-5200
"Computers are a more fun way to do the same work you'd have to do without them." -----Original Message----- From: mediawiki-l-bounces@lists.wikimedia.org [mailto:mediawiki-l-bounces@lists.wikimedia.org] On Behalf Of Mike Sent: Friday, May 11, 2007 6:24 AM To: MediaWiki announcements and site admin list Subject: [Mediawiki-l] File upload help
Thanks alot! That got the upload file link working for me, now I'm having another problem. I want to be able to upload files with the extension of .cmd
As Rob suggested, I read deeper and found that I have to add this to localsettings.php:
$wgFileExtensions = array( 'gif', 'cmd', 'jpg', 'jpeg', 'doc', 'txt' );
which I did, but I still get a message saying ".Cmd" is not a recommended image file format.
Any ideas on this?
Thanks! Mike
Emufarmers Sangly emufarmers@gmail.com wrote: In LocalSettings.php, add: $wgEnableUploads = true;
On 5/10/07, Mike wrote:
How would I go about allowing users to upload files to my wiki? I've briefly read through the instructions on uploading images, but my wiki doesn't even have an upload page link in the left pane.
Thank you! Mike
Ahhh...imagining that irresistible "new car" smell? Check outnew cars at Yahoo! Autos. _______________________________________________ MediaWiki-l mailing list MediaWiki-l@lists.wikimedia.org http://lists.wikimedia.org/mailman/listinfo/mediawiki-l
-- Emufarmers Sangly Pirate, Cowboy, Hellraiser _______________________________________________ MediaWiki-l mailing list MediaWiki-l@lists.wikimedia.org http://lists.wikimedia.org/mailman/listinfo/mediawiki-l
--------------------------------- Be a better Heartthrob. Get better relationship answers from someone who knows. Yahoo! Answers - Check it out. _______________________________________________ MediaWiki-l mailing list MediaWiki-l@lists.wikimedia.org http://lists.wikimedia.org/mailman/listinfo/mediawiki-l
Ooops - for apache it is in mime.types and/or .htaccess
Jack D. Pond CIO, Montgomery County, PA (610)278-5200
"Never confuse movement with action." -- Ernest Hemingway, 1899-1961 -----Original Message----- From: mediawiki-l-bounces@lists.wikimedia.org [mailto:mediawiki-l-bounces@lists.wikimedia.org] On Behalf Of Jack D. Pond Sent: Friday, May 11, 2007 10:50 AM To: 'MediaWiki announcements and site admin list' Subject: Re: [Mediawiki-l] File upload help
Mike,
Don't know if this is your problem, but many web servers also have a filter on what they will allow as an extension. For example, in IIS, part of the properties of the web service in IIS Manager->[your web service]->Properties->HTTP Headers->Mime Types is a complete list of all mime types by extensions the server is allowed to serve.
For IIS, go into the IIS Manager, right click on properties for the virtual directory, 'HTTP Headers' tab, "Mime Types" and add it to the type served. Depending on your need, you can add this all the way up to the top (local computer) and it will allow all sub-webs and sub-virtual webs to upload/download that file type.
I can't remember the exact for most other Web Servers, but I'm pretty sure it's in the httpd.conf for Apache.
IMPORTANT: I cannot imagine any circumstance whereby you would allow the upload (and possible execution) of a .cmd, .sys, .com, . . . File. Unless you are using this as a developer wiki in an extremely restricted environment, it sounds like a wonderful way to compromise your system.
Jack D. Pond CIO, Montgomery County, PA (610)278-5200
"Computers are a more fun way to do the same work you'd have to do without them." -----Original Message----- From: mediawiki-l-bounces@lists.wikimedia.org [mailto:mediawiki-l-bounces@lists.wikimedia.org] On Behalf Of Mike Sent: Friday, May 11, 2007 6:24 AM To: MediaWiki announcements and site admin list Subject: [Mediawiki-l] File upload help
Thanks alot! That got the upload file link working for me, now I'm having another problem. I want to be able to upload files with the extension of .cmd
As Rob suggested, I read deeper and found that I have to add this to localsettings.php:
$wgFileExtensions = array( 'gif', 'cmd', 'jpg', 'jpeg', 'doc', 'txt' );
which I did, but I still get a message saying ".Cmd" is not a recommended image file format.
Any ideas on this?
Thanks! Mike
Emufarmers Sangly emufarmers@gmail.com wrote: In LocalSettings.php, add: $wgEnableUploads = true;
On 5/10/07, Mike wrote:
How would I go about allowing users to upload files to my wiki? I've briefly read through the instructions on uploading images, but my wiki doesn't even have an upload page link in the left pane.
Thank you! Mike
Ahhh...imagining that irresistible "new car" smell? Check outnew cars at Yahoo! Autos. _______________________________________________ MediaWiki-l mailing list MediaWiki-l@lists.wikimedia.org http://lists.wikimedia.org/mailman/listinfo/mediawiki-l
-- Emufarmers Sangly Pirate, Cowboy, Hellraiser _______________________________________________ MediaWiki-l mailing list MediaWiki-l@lists.wikimedia.org http://lists.wikimedia.org/mailman/listinfo/mediawiki-l
--------------------------------- Be a better Heartthrob. Get better relationship answers from someone who knows. Yahoo! Answers - Check it out. _______________________________________________ MediaWiki-l mailing list MediaWiki-l@lists.wikimedia.org http://lists.wikimedia.org/mailman/listinfo/mediawiki-l
_______________________________________________ MediaWiki-l mailing list MediaWiki-l@lists.wikimedia.org http://lists.wikimedia.org/mailman/listinfo/mediawiki-l
mediawiki-l@lists.wikimedia.org