Patricia Barden | 1 Dec 2009 04:20
Favicon

Apache Errors after Upgrade to MediaWiki 1.15.1

Hello:

I recently did an upgrade from MediaWiki 1.8.2 to 1.15.1. I have a  
question post-upgrade that I'm hoping someone on the list can help me  
with.

Since upgrading, Apache server has been throwing errors like:

www.mywiki.org [Sun Nov 29 18:46:18 2009] [error] [client
206.213.251.31] script '/path/to/webroot/mywiki/INDEX.PHP' not found or
unable to stat
www.mywiki.org [Sun Nov 29 20:06:40 2009] [error] [client
68.222.38.222] script '/path/to/webroot/mywiki/register.php' not found  
or
unable to stat
www.mywiki.org [Sun Nov 29 20:06:40 2009] [error] [client
68.222.38.222] script '/path/to/webroot/mywiki/register.php' not found  
or
unable to stat
www.mywiki.org [Sun Nov 29 23:33:13 2009] [error] [client 77.92.91.3]
script '/path/to/webroot/mywiki/errors.php' not found or unable to stat
www.mywiki.org [Mon Nov 30 02:12:46 2009] [error] [client
89.234.38.66] script '/path/to/webroot/mywiki/index1.php' not found or
unable to stat
www.mywiki.org [Mon Nov 30 02:47:04 2009] [error] [client
213.186.34.130] script '/path/to/webroot/mywiki/mcf.php' not found or
unable to stat
www.mywiki.org [Mon Nov 30 05:33:45 2009] [error] [client
77.221.130.11] script '/path/to/webroot/mywiki/config.php' not found or
unable to stat
(Continue reading)

Benjamin Lees | 1 Dec 2009 05:09
Picon

Re: Apache Errors after Upgrade to MediaWiki 1.15.1

On Mon, Nov 30, 2009 at 10:20 PM, Patricia Barden <webmaster <at> prwatch.org>wrote:

> Hello:
>
> I recently did an upgrade from MediaWiki 1.8.2 to 1.15.1. I have a
> question post-upgrade that I'm hoping someone on the list can help me
> with.
>
> Since upgrading, Apache server has been throwing errors like:
>
> www.mywiki.org [Sun Nov 29 18:46:18 2009] [error] [client
> 206.213.251.31] script '/path/to/webroot/mywiki/INDEX.PHP' not found or
> unable to stat
>
>
This is unrelated to MediaWiki: those are bots probing your server for
vulnerable scripts. (If you want reassurance, check your log from before the
upgrade and you'll see the same errors in abundance.)

In general, this is nothing to worry about (unless you have vulnerable
scripts in your web root :)).
David Price | 1 Dec 2009 09:52
Favicon

PDF Previewing

Dear All,

I have notice MedaWiki doesn't handle PDF in its native form and can only be viewed in Adobe Reader, once a PDF
file has been  uploaded is it possible to preview the PDF at all?

Many Thanks

David

________________________________________________________________________
This e-mail has been scanned for all viruses by Star. The
service is powered by MessageLabs. For more information on a proactive
anti-virus service working around the clock, around the globe, visit:
http://www.star.net.uk
________________________________________________________________________
Huib Laurens | 1 Dec 2009 11:11
Picon
Gravatar

SQL error

Hello,

I'm trying to install a database for mediawiki 1.13 with the sql below:

CREATE TABLE user (
  user_id int NOT NULL IDENTITY(1,1),
  user_name varchar(255) NOT NULL default '',
  user_real_name varchar(255) NOT NULL default '',
  user_password text NOT NULL,
  user_newpassword text NOT NULL,
  user_newpass_time varchar(5) NULL,
  user_email text NOT NULL,
  user_options text NOT NULL,
  user_touched varchar(5) NOT NULL default '',
  user_token varchar(10) NOT NULL default '',
  user_email_authenticated varchar(5) NULL,
  user_email_token varchar(10) NULL,
  user_email_token_expires varchar(5) NULL,
  user_registration varchar(5) NULL,
  user_editcount int,
  PRIMARY KEY (user_id)
);

CREATE TABLE  user_groups (
  ug_user int NOT NULL default '0',
  ug_group varchar(5) NOT NULL default '',
  PRIMARY KEY (ug_user,ug_group)
);

CREATE TABLE  user_newtalk (
(Continue reading)

Q | 1 Dec 2009 12:38
Picon

Re: SQL error


Huib Laurens wrote:
> Hello,
> 
> 
> I'm trying to install a database for mediawiki 1.13 with the sql below:
> 
 >
> I get a error that there is a fault in my code, but I copied it right
> out /mantance/ could somebody tell me whats wrong?
> 
> Huib
> 

First, it's usually a good idea to include the error message when
requesting help with something.

Secondly, is there a reason you cannot use the installer?
Patricia Barden | 1 Dec 2009 21:10
Favicon

PHP Accelerator

Hi all:

I recently upgraded our wiki from 1.8.2 to 1.15.1 and, since the  
upgrade, the site has been white-screening at various times. Our  
hosting provider suggested this morning that there may be a  
compatibility bug between the new site code and APC. He said that PHP  
scripts were being called, but were not generating any output. He  
restarted Apache and, since then, pages seem to be loading normally.

So, this made me curious about what PHP accelerator is recommended /  
used by MediaWiki.org -- eAccelerator, mmTurck,  or APC?

An article on MediaWiki.org says that, "[d]epending on the cache and  
options used, you may have to perform a special operation whenever  
updating script files." Can someone tell me what "special operation"  
means?

For more information, please see the following article / section on  
MediaWiki.org:

http://www.mediawiki.org/wiki/PHP_configuration#Opcode_caching

Also, in order for APC to work correctly, does $wgMainCacheType need  
to be set to "CACHE_ACCEL"?

Thanks in advance for any advice you can give me on this,

Patricia Barden
Robert Carter | 1 Dec 2009 21:20
Picon
Picon
Picon
Favicon

Re: extracting the whole history of an article

Thanks for this. I added a note about the rvcontinue parameter to the  
API wiki docs - as it's only mentioned in the auto-generated MediaWiki  
API documentation page.
http://www.mediawiki.org/wiki/API:Query_-_Properties#Parameters

To give me an idea what is reasonable: If I request 100 revisions  
every 10 seconds would that be ok?

Rob

On 30/11/2009, at 3:15 PM, Tim Starling wrote:

> Robert Carter wrote:
>> I've been experimenting with the parameters to Special:Export to
>> retrieve the whole history of an article. I haven't been able to get
>> more than 1000 revisions (from en wikipedia).
>>
>> Does anyone know of a way to obtain the full history of an article?
>> Those huge 7z exports seem too crazy to work with to extract data for
>> only one page.
>
> You can use api.php with rvprop=content and rvcontinue to fetch the
> text of all revisions of a page. Please do this in a single thread
> with a substantial delay between requests, since this is a very
> expensive operation for our servers. Do not attempt to do it for a
> large number of pages, for that, use the XML download instead. Do not
> do it regularly or set up a web gateway which allows users to initiate
> these requests.
>
> -- Tim Starling
(Continue reading)

Leo Trottier | 2 Dec 2009 00:02
Picon

Developer wanted. 5-15 hours/week. $1000/month.

Hi,

Interested in making a bit more money while working on a prominent and
influential MediaWiki installation?  We have a budget of $1000/month to pay
for a web developer ("the" web developer) who would help with refining,
extending, and (sometimes) debugging, an existing (and already prominent and
content-rich) MediaWiki installation. You would be working from home,
however there would be periodic (<= 1/month) meetings (ideally in person in
San Diego, so it would be preferable for you to live in Southern California
-- it may be possible to videoconference, however).

You would set your own hours.

Depending on your level of expertise/productivity, the work would amount to
5-15 hours/week (this would be subject to negotiation).

The work would likely proceed as a gradual progress through a queue of
tasks, with higher priority items thrown in occasionally. The work
negotiation would consist in your estimating what you could get done monthly
(or weekly) for the given pay.

Required:
- Knowledge of PHP, MySQL, Apache, *nix, LaTeX
- Knowledge of MediaWiki
- Can work in US

Familiarity with the academic peer-review process is also desirable.

If interested, please email php.20.waverleo <at> xoxy.net
(Continue reading)

Benjamin Lees | 2 Dec 2009 00:03
Picon

Re: PHP Accelerator

On Tue, Dec 1, 2009 at 3:10 PM, Patricia Barden <webmaster <at> prwatch.org>wrote:

> Hi all:
>
> I recently upgraded our wiki from 1.8.2 to 1.15.1 and, since the
> upgrade, the site has been white-screening at various times. Our
> hosting provider suggested this morning that there may be a
> compatibility bug between the new site code and APC. He said that PHP
> scripts were being called, but were not generating any output. He
> restarted Apache and, since then, pages seem to be loading normally.
>
> If you encounter white-screening in the future, check your webserver's
error logs or enable the display of PHP errors <
http://www.mediawiki.org/wiki/How_to_debug#PHP_errors>.

So, this made me curious about what PHP accelerator is recommended /
> used by MediaWiki.org -- eAccelerator, mmTurck,  or APC?
>
eAccelerator and APC are both fine.  XCache is also an option.  Wikimedia
projects use APC.  mmTurck should be considered deprecated (support for it
is gone in the new-installer branch of MediaWiki).

An article on MediaWiki.org says that, "[d]epending on the cache and
> options used, you may have to perform a special operation whenever
> updating script files." Can someone tell me what "special operation"
> means?
>
For APC, this is probably referring to apc.stat: if it's set to 0 (it
defaults to 1), you need to restart the webserver for changes to files to
take effect.
(Continue reading)

Jon Davis | 2 Dec 2009 00:28

Anyone tried any S3 integration?

It came up again (as it has in the past on this list) the idea of
integrating MedaWiki with Amazon's S3 "file cloud".  Has anyone tried to do
this? Had any success?  More importantly if it hasn't been done, is it even
possible (I've been informed that SpecialUpload lacks the proper hooks to
override it completely with an extension)?

There was a placeholder page created
http://www.mediawiki.org/wiki/Extension:AmazonS3 that hasn't been updated in
2+ years, so I'm guessing that probably isn't happening anytime soon.

Anyways, I was just curious. Thanks

--

-- 
Jon
[[User:ShakataGaNai]]
http://snowulf.com/ - Blog
http://snowulf.imagekind.com/ - Pictures
This has been a test of the emergency sig system.

Gmane