Problems with MediaWiki on Windows with Apache :-(

classic Classic list List threaded Threaded
3 messages Options
Reply | Threaded
Open this post in threaded view
|

Problems with MediaWiki on Windows with Apache :-(

MarkGillespie-2

After having no trouble running our test MediaWiki 1.8.2 server on Linux, I
was kinda forced into using Win2000 as our production server.  So have
spend the best part of the day moving data and configuring things.  I have
1 problem I cannot resolve.  I cannot get the email notifications to work
correctly.  I am using the PHP mail() method of sending emails.

When I request a validation email, MediaWiki says it failed to send.
However the email arrives just fine.  I can then validate my email address
and setup watches.  However when watched pages are edited, I don't get
notifications.

Looking at the Apache log, there are some clues...

[Mon Nov 06 13:49:24 2006] [error] [client 195.213.114.210] (20024)The
given path misformatted or contained invalid characters: Cannot map GET
/index.php/User:Mgillespie HTTP/1.1 to file, referer:
http://mediawiki/index.php?title=Special:Userlogin&action=submitlogin&type=login&returnto=Main_Page
[Mon Nov 06 13:49:28 2006] [error] [client 195.213.114.210] (20024)The
given path misformatted or contained invalid characters: Cannot map GET
/index.php/Special:Preferences HTTP/1.1 to file, referer:
http://mediawiki/index.php/User:Mgillespie
[Mon Nov 06 13:49:30 2006] [error] [client 195.213.114.210] (20024)The
given path misformatted or contained invalid characters: Cannot map GET
/index.php/Special:Confirmemail HTTP/1.1 to file, referer:
http://mediawiki/index.php/Special:Preferences
[Mon Nov 06 13:49:32 2006] [error] [client 195.213.114.210] (20024)The
given path misformatted or contained invalid characters: Cannot map POST
/index.php/Special:Confirmemail HTTP/1.1 to file, referer:
http://mediawiki/index.php/Special:Confirmemail
[Mon Nov 06 13:50:20 2006] [error] [client 195.213.115.75] (20024)The given
path misformatted or contained invalid characters: Cannot map GET
/index.php/Special:Confirmemail/3a49f39b4563163c2228ffe392112a24 HTTP/1.1
to file
[Mon Nov 06 13:50:27 2006] [error] [client 195.213.115.75] (20024)The given
path misformatted or contained invalid characters: Cannot map GET
/index.php/Special:Preferences HTTP/1.1 to file, referer:
http://mediawiki/index.php/Special:Confirmemail/3a49f39b4563163c2228ffe392112a24
[Mon Nov 06 13:50:36 2006] [error] [client 195.213.114.114] (20024)The
given path misformatted or contained invalid characters: Cannot map GET
/index.php/Talk:Main_Page HTTP/1.1 to file, referer:
http://mediawiki/index.php/Main_Page
[Mon Nov 06 13:50:40 2006] [error] [client 195.213.115.75] (20024)The given
path misformatted or contained invalid characters: Cannot map POST
/index.php/Special:Preferences HTTP/1.1 to file, referer:
http://mediawiki/index.php/Special:Preferences
[Mon Nov 06 13:50:46 2006] [error] [client 195.213.115.75] (20024)The given
path misformatted or contained invalid characters: Cannot map GET
/index.php/Special:Recentchanges HTTP/1.1 to file, referer:
http://mediawiki/index.php/Special:Preferences
[Mon Nov 06 13:53:58 2006] [error] [client 195.213.115.75] (20024)The given
path misformatted or contained invalid characters: Cannot map GET
/index.php/Special:Watchlist HTTP/1.1 to file, referer:
http://mediawiki/index.php/Main_Page
[Mon Nov 06 13:54:02 2006] [error] [client 195.213.115.75] (20024)The given
path misformatted or contained invalid characters: Cannot map GET
/index.php/Special:Watchlist/edit HTTP/1.1 to file, referer:
http://mediawiki/index.php/Special:Watchlist
[Mon Nov 06 14:02:13 2006] [error] [client 127.0.0.1] (20024)The given path
misformatted or contained invalid characters: Cannot map GET
/index.php/Special:Preferences HTTP/1.1 to file, referer:
http://localhost/index.php/Main_Page
[Mon Nov 06 14:05:06 2006] [error] [client 195.213.115.29] (20024)The given
path misformatted or contained invalid characters: Cannot map GET
/index.php/Special:Preferences HTTP/1.1 to file, referer:
http://mediawiki/index.php?title=Special:Userlogin&action=submitlogin&type=login&returnto=Main_Page
[Mon Nov 06 14:05:14 2006] [error] [client 195.213.115.29] (20024)The given
path misformatted or contained invalid characters: Cannot map GET
/index.php/Special:Confirmemail HTTP/1.1 to file, referer:
http://mediawiki/index.php/Special:Preferences
[Mon Nov 06 14:05:22 2006] [error] [client 195.213.115.29] (20024)The given
path misformatted or contained invalid characters: Cannot map POST
/index.php/Special:Confirmemail HTTP/1.1 to file, referer:
http://mediawiki/index.php/Special:Confirmemail
[Mon Nov 06 14:06:21 2006] [error] [client 195.213.115.29] (20024)The given
path misformatted or contained invalid characters: Cannot map GET
/index.php/Special:Confirmemail/a397016844cd9fd1537f5fdfcc62ae20 HTTP/1.1
to file
[Mon Nov 06 14:06:34 2006] [error] [client 195.213.115.29] (20024)The given
path misformatted or contained invalid characters: Cannot map GET
/index.php/Special:Preferences HTTP/1.1 to file, referer:
http://mediawiki/index.php/Special:Confirmemail/a397016844cd9fd1537f5fdfcc62ae20
[Mon Nov 06 14:07:00 2006] [error] [client 195.213.115.29] (20024)The given
path misformatted or contained invalid characters: Cannot map POST
/index.php/Special:Preferences HTTP/1.1 to file, referer:
http://mediawiki/index.php/Special:Preferences


What is happening?  Is MediaWiki sending invalid URL's to Apache?  Thats
what it looks like....  Does Apache behave differently on Windows and *nix?



This e-mail and any files transmitted with it are in commercial confidence and intended solely for the use of the individual or entity to whom they are addressed. If you have received this e-mail in error please notify the Postmaster by e-mail. Any views or opinions expressed are solely those of the author and do not necessarily represent those of DEK International or its affiliates.
[hidden email]

This footnote confirms that this message has been checked for the presence of computer viruses.
http://www.dek.com  ...know the difference
_______________________________________________
MediaWiki-l mailing list
[hidden email]
http://mail.wikipedia.org/mailman/listinfo/mediawiki-l
Reply | Threaded
Open this post in threaded view
|

Re: Problems with MediaWiki on Windows with Apache :-(

Matt-19
I've had similar issues on a Windows/Apache setup with MediaWiki.  I
don't know what is causing your specific errors, but you might want to
try forcing MediaWiki to use an SMTP-method to send email.  I did
create a brief write-up of how I got this working with my setup, but
it is not thoroughly tested on multiple configurations - it just
worked for what I needed to get done.  You're welcome to review and
try it if you'd like:

http://www.datahead.org/wiki/index.php/Wiki_Setup_Information#Email_Settings

Matt

On 11/7/06, [hidden email] <[hidden email]> wrote:

>
> After having no trouble running our test MediaWiki 1.8.2 server on Linux, I
> was kinda forced into using Win2000 as our production server.  So have
> spend the best part of the day moving data and configuring things.  I have
> 1 problem I cannot resolve.  I cannot get the email notifications to work
> correctly.  I am using the PHP mail() method of sending emails.
>
> When I request a validation email, MediaWiki says it failed to send.
> However the email arrives just fine.  I can then validate my email address
> and setup watches.  However when watched pages are edited, I don't get
> notifications.
>
> Looking at the Apache log, there are some clues...
>
> [Mon Nov 06 13:49:24 2006] [error] [client 195.213.114.210] (20024)The
> given path misformatted or contained invalid characters: Cannot map GET
> /index.php/User:Mgillespie HTTP/1.1 to file, referer:
> http://mediawiki/index.php?title=Special:Userlogin&action=submitlogin&type=login&returnto=Main_Page
> [Mon Nov 06 13:49:28 2006] [error] [client 195.213.114.210] (20024)The
> given path misformatted or contained invalid characters: Cannot map GET
> /index.php/Special:Preferences HTTP/1.1 to file, referer:
> http://mediawiki/index.php/User:Mgillespie
> [Mon Nov 06 13:49:30 2006] [error] [client 195.213.114.210] (20024)The
> given path misformatted or contained invalid characters: Cannot map GET
> /index.php/Special:Confirmemail HTTP/1.1 to file, referer:
> http://mediawiki/index.php/Special:Preferences
> [Mon Nov 06 13:49:32 2006] [error] [client 195.213.114.210] (20024)The
> given path misformatted or contained invalid characters: Cannot map POST
> /index.php/Special:Confirmemail HTTP/1.1 to file, referer:
> http://mediawiki/index.php/Special:Confirmemail
> [Mon Nov 06 13:50:20 2006] [error] [client 195.213.115.75] (20024)The given
> path misformatted or contained invalid characters: Cannot map GET
> /index.php/Special:Confirmemail/3a49f39b4563163c2228ffe392112a24 HTTP/1.1
> to file
> [Mon Nov 06 13:50:27 2006] [error] [client 195.213.115.75] (20024)The given
> path misformatted or contained invalid characters: Cannot map GET
> /index.php/Special:Preferences HTTP/1.1 to file, referer:
> http://mediawiki/index.php/Special:Confirmemail/3a49f39b4563163c2228ffe392112a24
> [Mon Nov 06 13:50:36 2006] [error] [client 195.213.114.114] (20024)The
> given path misformatted or contained invalid characters: Cannot map GET
> /index.php/Talk:Main_Page HTTP/1.1 to file, referer:
> http://mediawiki/index.php/Main_Page
> [Mon Nov 06 13:50:40 2006] [error] [client 195.213.115.75] (20024)The given
> path misformatted or contained invalid characters: Cannot map POST
> /index.php/Special:Preferences HTTP/1.1 to file, referer:
> http://mediawiki/index.php/Special:Preferences
> [Mon Nov 06 13:50:46 2006] [error] [client 195.213.115.75] (20024)The given
> path misformatted or contained invalid characters: Cannot map GET
> /index.php/Special:Recentchanges HTTP/1.1 to file, referer:
> http://mediawiki/index.php/Special:Preferences
> [Mon Nov 06 13:53:58 2006] [error] [client 195.213.115.75] (20024)The given
> path misformatted or contained invalid characters: Cannot map GET
> /index.php/Special:Watchlist HTTP/1.1 to file, referer:
> http://mediawiki/index.php/Main_Page
> [Mon Nov 06 13:54:02 2006] [error] [client 195.213.115.75] (20024)The given
> path misformatted or contained invalid characters: Cannot map GET
> /index.php/Special:Watchlist/edit HTTP/1.1 to file, referer:
> http://mediawiki/index.php/Special:Watchlist
> [Mon Nov 06 14:02:13 2006] [error] [client 127.0.0.1] (20024)The given path
> misformatted or contained invalid characters: Cannot map GET
> /index.php/Special:Preferences HTTP/1.1 to file, referer:
> http://localhost/index.php/Main_Page
> [Mon Nov 06 14:05:06 2006] [error] [client 195.213.115.29] (20024)The given
> path misformatted or contained invalid characters: Cannot map GET
> /index.php/Special:Preferences HTTP/1.1 to file, referer:
> http://mediawiki/index.php?title=Special:Userlogin&action=submitlogin&type=login&returnto=Main_Page
> [Mon Nov 06 14:05:14 2006] [error] [client 195.213.115.29] (20024)The given
> path misformatted or contained invalid characters: Cannot map GET
> /index.php/Special:Confirmemail HTTP/1.1 to file, referer:
> http://mediawiki/index.php/Special:Preferences
> [Mon Nov 06 14:05:22 2006] [error] [client 195.213.115.29] (20024)The given
> path misformatted or contained invalid characters: Cannot map POST
> /index.php/Special:Confirmemail HTTP/1.1 to file, referer:
> http://mediawiki/index.php/Special:Confirmemail
> [Mon Nov 06 14:06:21 2006] [error] [client 195.213.115.29] (20024)The given
> path misformatted or contained invalid characters: Cannot map GET
> /index.php/Special:Confirmemail/a397016844cd9fd1537f5fdfcc62ae20 HTTP/1.1
> to file
> [Mon Nov 06 14:06:34 2006] [error] [client 195.213.115.29] (20024)The given
> path misformatted or contained invalid characters: Cannot map GET
> /index.php/Special:Preferences HTTP/1.1 to file, referer:
> http://mediawiki/index.php/Special:Confirmemail/a397016844cd9fd1537f5fdfcc62ae20
> [Mon Nov 06 14:07:00 2006] [error] [client 195.213.115.29] (20024)The given
> path misformatted or contained invalid characters: Cannot map POST
> /index.php/Special:Preferences HTTP/1.1 to file, referer:
> http://mediawiki/index.php/Special:Preferences
>
>
> What is happening?  Is MediaWiki sending invalid URL's to Apache?  Thats
> what it looks like....  Does Apache behave differently on Windows and *nix?
>
>
>
> This e-mail and any files transmitted with it are in commercial confidence and intended solely for the use of the individual or entity to whom they are addressed. If you have received this e-mail in error please notify the Postmaster by e-mail. Any views or opinions expressed are solely those of the author and do not necessarily represent those of DEK International or its affiliates.
> [hidden email]
>
> This footnote confirms that this message has been checked for the presence of computer viruses.
> http://www.dek.com  ...know the difference
> _______________________________________________
> MediaWiki-l mailing list
> [hidden email]
> http://mail.wikipedia.org/mailman/listinfo/mediawiki-l
>
_______________________________________________
MediaWiki-l mailing list
[hidden email]
http://mail.wikipedia.org/mailman/listinfo/mediawiki-l
Reply | Threaded
Open this post in threaded view
|

Re: Problems with MediaWiki on Windows with Apache :-(

Fernando Correia
In reply to this post by MarkGillespie-2
I also had very similar problems with e-mail and change notifications on
Windows, but I was able to sort them out.

I use the PEAR method to send e-mails.

I have some configurations like these:

$wgEnableEmail      = true;
$wgEnableUserEmail  = true;
$wgEmergencyContact = "xxx <xxx@host>";
$wgPasswordSender = $wgEmergencyContact;
$wgSMTP = array(
 'host'     => "xxx.com.br",
 'IDHost'   => "xxx.com.br",
 'port'     => 25,
 'auth'     => false,
);

This line,  'auth'     => false, was important. Although our mail server
requires SMTP authentication, it was configure to not use it for the server
IP. If the parameter was true, even with a valid username and password, I'd
get email errors.

I think other important parameters are:

$wgEnotifUserTalk = true; # UPO
$wgEnotifWatchlist = true; # UPO


I'm new to MediaWiki so I think I can't help you very much. All I can say is
that it works for me...
_______________________________________________
MediaWiki-l mailing list
[hidden email]
http://mail.wikipedia.org/mailman/listinfo/mediawiki-l