Hi there,
Thanx for the help last week.
So now I can successfully configure a new wiki by connecting to a remote
machine,
using a remote database that pre-exists, and creating a new table in
that database.
Now I want to configure a new wiki by creating an entirely new remote
database,
and when I do that I am getting this error, "Couldn't create database
wikidb2; try
with root access or check your username/pass".
"Something's not quite right yet; make sure everything below is filled
out correctly".
And in the spot where DB root password gets entered "<-Enter", even
though I am
typing the correct remote database password.
Any ideas ?
thanx,
Lori
Permissions?
-----Original Message-----
From: mediawiki-l-bounces(a)Wikimedia.org
[mailto:mediawiki-l-bounces@Wikimedia.org] On Behalf Of Boyd Timothy
Sent: Tuesday, September 06, 2005 3:18 PM
To: mediawiki-l(a)Wikimedia.org
Subject: [Mediawiki-l] Unable to upload images
I setup a mediawiki (1.4.9) site on one of my test servers and had
image uploading working perfectly. Then I migrated the entire site to
a production server and image uploading stopped working. When I
attempt to upload a file, the Upload File page just reloads itself
without doing anything.
There are other mediawiki sites running on this same server and the
image upload works fine on them so I figure it's not an issue with the
PHP configuration.
I've attempted to debug the problem by manually editing
includes/SpecialUpload.php and seeing where the code ends up. The
code is always ending up going through the last "else" block in this
code snippet:
if( $this->mReUpload ) {
$this->unsaveUploadedFile();
$this->mainUploadForm();
} else if ( 'submit' == $this->mAction || $this->mUpload
) {
$this->processUpload();
} else {
$this->mainUploadForm();
}
For whatever reason, which has to be part of the problem,
$this->mAction and $this->mUpload variables are NULL/empty every time
I attempt to upload a file.
I've modified my file upload variables in LocalSettings.php to be the
same as the other wiki on the server that works. Here are the things
I've modified there:
$wgUploadPath = "$wgScriptPath/files";
$wgUploadDirectory = "$IP/files";
$wgDisableUploads = false;
## The list of allowed upload file types
$wgFileExtensions = array( 'png', 'gif', 'jpg', 'jpeg', 'ogg', 'zip',
'pdf', 'svg', 'tar.gz', 'gz', 'txt', 'doc', 'xls', 'ppt', 'mp3',
'sxc', 'swf' );
$wgFileBlacklist = array(
# HTML may contain cookie-stealing JavaScript and web bugs
'html', 'htm',
# PHP scripts may execute arbitrary code on the server
'php', 'phtml', 'php3', 'php4', 'phps',
# Other types that may be interpreted by some servers
'shtml', 'jhtml', 'py', 'cgi',
# May contain harmful executables for Windows victims
'exe', 'scr', 'dll', 'msi', 'vbs', 'bat', 'com', 'pif', 'cmd',
'vxd', 'cpl');
Does anyone have any idea on what I should try next or has anyone else
ever seen this problem before?
-Boyd
_______________________________________________
MediaWiki-l mailing list
MediaWiki-l(a)Wikimedia.org
http://mail.wikipedia.org/mailman/listinfo/mediawiki-l
I setup a mediawiki (1.4.9) site on one of my test servers and had
image uploading working perfectly. Then I migrated the entire site to
a production server and image uploading stopped working. When I
attempt to upload a file, the Upload File page just reloads itself
without doing anything.
There are other mediawiki sites running on this same server and the
image upload works fine on them so I figure it's not an issue with the
PHP configuration.
I've attempted to debug the problem by manually editing
includes/SpecialUpload.php and seeing where the code ends up. The
code is always ending up going through the last "else" block in this
code snippet:
if( $this->mReUpload ) {
$this->unsaveUploadedFile();
$this->mainUploadForm();
} else if ( 'submit' == $this->mAction || $this->mUpload ) {
$this->processUpload();
} else {
$this->mainUploadForm();
}
For whatever reason, which has to be part of the problem,
$this->mAction and $this->mUpload variables are NULL/empty every time
I attempt to upload a file.
I've modified my file upload variables in LocalSettings.php to be the
same as the other wiki on the server that works. Here are the things
I've modified there:
$wgUploadPath = "$wgScriptPath/files";
$wgUploadDirectory = "$IP/files";
$wgDisableUploads = false;
## The list of allowed upload file types
$wgFileExtensions = array( 'png', 'gif', 'jpg', 'jpeg', 'ogg', 'zip',
'pdf', 'svg', 'tar.gz', 'gz', 'txt', 'doc', 'xls', 'ppt', 'mp3',
'sxc', 'swf' );
$wgFileBlacklist = array(
# HTML may contain cookie-stealing JavaScript and web bugs
'html', 'htm',
# PHP scripts may execute arbitrary code on the server
'php', 'phtml', 'php3', 'php4', 'phps',
# Other types that may be interpreted by some servers
'shtml', 'jhtml', 'py', 'cgi',
# May contain harmful executables for Windows victims
'exe', 'scr', 'dll', 'msi', 'vbs', 'bat', 'com', 'pif', 'cmd',
'vxd', 'cpl');
Does anyone have any idea on what I should try next or has anyone else
ever seen this problem before?
-Boyd
Hello,
I am working in a group, that works with MediaWiki and a Forum.
The Forum should be compatible to MW, that means, if you have logged in MW you are logged in the Forum and if you have logged in in the Forum you are logged in MW.
Well, our plan was that I should create a Forum in PHP and that the forum should look like MW.
But now I am fed up with it :(.
To many problems in the design and problems with IE and Firefox. Unfortunately I am the only PHP programmer in our team :P. The others are all writers ^^.
Is there already a Forum thats compatible with MW and OpenSource?
I've noticed that the admin password to the mySQL db is included in plain
text in the LocalSettings.php file in my Wiki directory, which is set to
755, readable and executable by the world. Am I being paranoid, or is this a
slightly insecure situation?
Can the password be encrypted, or is there some other security measure I
should take?
TIA
--doug
login id as parameter ?
Here's an apparently simple question who's solution is evading me.
We have mediawiki running on Ubuntu in a windows intranet (in a school). Everyone who gains access to the wiki has already logged on. I can easily grab their login name and pass it as a parameter to the weblink to the wiki.
So I want a use to launch the wiki with something like http://localintranetserver/wiki?mylogin=fredbloggs which would mean that all editing that Fred Bloggs does bears his name. Sounds easy... would solve lots of issues... but can't quite figure it out.
________________________________
From: mediawiki-l-bounces(a)Wikimedia.org on behalf of mediawiki-l-request(a)Wikimedia.org
Sent: Sun 4/09/2005 2:42 PM
To: mediawiki-l(a)Wikimedia.org
Subject: MediaWiki-l Digest, Vol 24, Issue 11
Send MediaWiki-l mailing list submissions to
mediawiki-l(a)Wikimedia.org
To subscribe or unsubscribe via the World Wide Web, visit
http://mail.wikipedia.org/mailman/listinfo/mediawiki-l
or, via email, send a message with subject or body 'help' to
mediawiki-l-request(a)Wikimedia.org
You can reach the person managing the list at
mediawiki-l-owner(a)Wikimedia.org
When replying, please edit your Subject line so it is more specific
than "Re: Contents of MediaWiki-l digest..."
Today's Topics:
1. RE: Create New Page button (Robert Hartmann)
2. Re: table user_rights gone! (Brion Vibber)
3. Default template for a Namespace (Ken)
4. Re: Default template for a Namespace (Mike Valstar)
5. Re: Member database auth plugin (Josh)
6. The file you uploaded seems to be empty. (Sy Ali)
7. Re: repeated spambot attacks (Muzaffer Ozakca)
8. Re: repeated spambot attacks (Sy Ali)
9. How does wfDebug work? (Rick DeNatale)
10. Re: encrypt mySQL password? (Anthony DiPierro)
----------------------------------------------------------------------
Message: 1
Date: Sat, 3 Sep 2005 20:32:03 +0200
From: "Robert Hartmann" <rob.hartmann(a)gmx.de>
Subject: RE: [Mediawiki-l] Create New Page button
To: "'MediaWiki announcements and site admin list'"
<mediawiki-l(a)Wikimedia.org>
Message-ID: <000f01c5b0b5$c9859070$4b7107d5@RoboterScience>
Content-Type: text/plain; charset="us-ascii"
For this yoh have to install version 1.5 and install the
inputbox-plugin!
Look here: http://meta.wikimedia.org/wiki/Help:Inputbox
-----Original Message-----
From: Craig Hoffman [mailto:choffman@eclimb.net]
Sent: Saturday, September 03, 2005 12:01 AM
To: MediaWiki announcements and site admin list
Subject: [Mediawiki-l] Create New Page button
Hi There,
I just installed latest version 1.4.9 of MediaWiki and I'm learning
to use it. Please bear with me if my questions seem trivial.
Q1 - Can anyone recommend a tutorial site?
Q2 - On a few wiki sites I saw handy button (Create New Page) -- How
can I get this button to appear or is it some sort of hack I need to do?
Thanks,
Craig Hoffman
_______________________
Craig Hoffman
choffman(a)eclimb.net
iChat / AIM: m0untaind0g
_______________________
------------------------------
Message: 2
Date: Sat, 03 Sep 2005 12:23:15 -0700
From: Brion Vibber <brion(a)pobox.com>
Subject: Re: [Mediawiki-l] table user_rights gone!
To: MediaWiki announcements and site admin list
<mediawiki-l(a)Wikimedia.org>
Message-ID: <4319F823.20700(a)pobox.com>
Content-Type: text/plain; charset="iso-8859-1"
Christian Parpart wrote:
> I've had some serous disk trouble and now, I'm missing the user_rights table,
> however, I'd simply create a new one, so, that every little user should just
> recreate their accounts.
>
> but how do I do?
>
> could anyone gimme a short hint on what the schema of this table usually looks
> like *AND* wether this would lead into other problems when I do it that way?
> (I do not wanna loose the page contents)....
See maintenance/tables.sql for the schema. Create the table, then a
blank row for each user:
INSERT INTO user_rights (ur_user,ur_rights) SELECT user_id,'' FROM user;
You'd want to set up some account as a sysop, probably, putting
'sysop,bureaucrat' or such into its ur_rights field.
(Note that this table is no longer used in 1.5, as it's been replaced by
user_groups.)
-- brion vibber (brion @ pobox.com)
Hi Anthony
I realize this is much, much, later, but I thought a late response
might be better than no response. The Mediawiki authentication code is
twisted and complex, and also changed a lot (for the better!) with
1.4. So when my group upgraded, I scrapped the modifications I had
made. Instead, I used mod_auth_mysql in apache to check auth-basic
credentials against the wiki's user table. Here are the apache
<Directory> blocks I use to do it:
<Directory /var/www/html/wiki>
SSLRequireSSL
Order allow,deny
Satisfy Any
Allow from all
</Directory>
<Directory />
SSLRequireSSL
# SSLRequire %{SSL_CIPHER_USERKEYSIZE}>=128
Order deny,allow
Deny from all
AuthName "Members Only"
AuthType Basic
AuthMySQLHost localhost
AuthMySQLUser dbusername
AuthMySQLPassword dbpassword
AuthMySQLDB wikidb1
AuthMySQLUserTable user
AuthMySQLNameField user_name
AuthMySQLPasswordField user_password
AuthMySQLMD5Passwords On
AuthMySQLNoPasswd Off
AuthMySQLAuthoritative On
AllowOverride AuthConfig
Require valid-user
</Directory>
This makes the wiki rely on it's own authentication for security, but
protects the rest of the site with the same logins. So, you do need to
make some changes to the wiki's configuration.
This is a good starting point for info on how to do this:
http://meta.wikimedia.org/wiki/Preventing_Access
You will also need to remove the salting algorithm that mediawiki uses
to increase the security of their password by adding this to the
LocalSettings.php file:
# So that mod_auth_mysql can understand passwords too
$wgPasswordSalt = false;
This WILL invalidate all your passwords! But, now people can manage
their access to the site using MediaWiki's account creation tools. So
they can have the wiki mail them a temporary password, if it has their
email.
I'll copy to the list as well, as a few similar questions have been
generated by that post.
On 8/17/05, Anthony McKernan <Anthony.McKernan(a)newcastle.ac.uk> wrote:
> David Cameron,
>
> i just read your post at
>
> http://mail.wikipedia.org/pipermail/mediawiki-l/2005-February/003629.html
>
> i want to do the same thing but i tried your code but i got few errors. I was
> wondering if you could send me a patch to do this. Are guide me on how i go
> about protecting a whole wiki site in apache with AuthBasic.
>
> cheers
>
> Anthony
>
>
>
--
David Cameron
University of British Columbia
http://bar.psych.ubc.ca/People/Dave.html
I want to write a php script to directly edit the mysql database to edit an
article every so often. What I need to know is how to add text to a binary
row in the database, using php. If you know how to do this, please tell me.
Thanks, shardsofmetal
is there a way to show the numeration not only in the TOC but also in
the section header H1/H2?
It is not only helpful in the printed version.
Andres Obrero