john kaczmarowski wrote:
Tomer Chachamu wrote:
On 28/06/05, john kaczmarowski jkacz@completeis.com wrote:
Today, I modified (for about the 10th time) the DefaultSettings.php file in the Includes directory so that I could upload a .exe file (yes, trouble, but this is in a relatively secure environment). Anyway, the exe was a flash demo that I was attaching to a wiki page.
You should not edit DefaultSettings.php. When you need to change a setting, copy the setting line to LocalSettings.php (the main one) (or whatever it's called) and edit it there.
I'm not sure what you can do now.
Thanks for the note, here's the deal:
- The specific changes were as follows:
$wgFileExtensions = array( 'doc', 'pdf', 'xls', 'mpp', 'vsd', 'pdm', 'png', 'gif', 'jpg', 'jpeg' );
(note I added doc, pdf, xls, mpp, vsd and pdm) I also added exe, but since have taken it out.
- These settings do not exist in LocalSettings, and in fact, this sort
of edit has workd well in the past.
- I can replace the DefaultSettings file with the originally delivered
default settings file, and I acheive slightly better results. To wit:
a. Main_Page returns (prior returning DefaultSettings, this page would yield only a <html></html> page just like all the rest.
b. Many pages have returned to pre-crash state while others return only a <html></html> opage.
c. Special Pages, login pages, etc. all return <html> </html>
last thing:
I re-installed the wiki (clean on a new machine physically closer to me by a factor of about 1000)
I copied the wikidb from the old wiki server to the new wiki server
I copied the /images directory from old to new
I created a new main_page (some reason that one didn't come along with the database)
All is now good.
Simply replacing the defaultsettings.php with a fresh one from the wiki install tarball didn't work, nor did various attempts to work around the problems. Very strange, but fixed nonetheless...
kacz