When I try to upload a .pdf or .gif via
http://en.wikipedia.org/wiki/Special:Upload
I get:
Upload warning
".pdf" is not a recommended image file format.
But no form to submit anyway appears. Thus I cannot upload the files. Is
this a bug, the intended behavior, or a misconfiguration?
- David [[User:Nohat]]
Hi,
I read the INSTALL and did it all and setup seemed to go perfectly
and the main page comes up... however... When I try to do edit this page,
I get:
br>
<b>Warning</b>: stat failed for /home/justin/justin.com/htdocs/wiki/upload/lock_yBgMBwiR (errno=2 - No such file or directory) in <b>/home/justin/justin.com/htdocs/wiki/GlobalFunctions.php</b> on line <b>161</b><br>
<br>
<b>Warning</b>: stat failed for /home/justin/justin.com/htdocs/wiki/upload/lock_yBgMBwiR (errno=2 - No such file or directory) in <b>/home/justin/justin.com/htdocs/wiki/GlobalFunctions.php</b> on line <b>161</b><br>
<br>
and some more failurel lines but these are the first two.
/home/justin/justin.com/htdocs/wiki/upload/lock_yBgMBwiR
doesn't exist.
/home/justin/justin.com/htdocs/wiki/upload
is world writeable
and I'm no php expert but have looked at line 161 in the mentioned file and I'm sure
there is nothing wrong with it.
I am using
mediawiki-1.1.0
apache-1.3.23-142
php 4.1.0
SuSE Linux 8.0
Any ideas, I don't even know much about wiki, I'm setting it up
for someone else to use, just a dumb sysadmin here trying to finish
all my task for one day, can anybody please help?
Thanks
Bill
When PHP scripts are loaded they're compiled to bytecode, then the
bytecode is executed. Stock versions of PHP just throw away the
bytecode when they're done, so scripts are recompiled every time
they're loaded -- ie, a million times a day or so. :P Any sensible
PHP-based site uses a cache plugin of some sort; the PHP folks
themselves sell a proprietary product that does this, Zend Optimizer,
but there are alternatives.
Once upon a time we used APC, the Alternative PHP Cache, on Wikipedia's
servers. It's open source, but at least at the time it had a lot of
problems with not updating or getting stuck on old versions of scripts,
and wasn't as fast as some of the alternatives.
At some point we switched to PHP-Accelerator, which is noncommercial
but not open-source. It was faster and not as troublesome, but still
occasionally did get stuck; particularly when class definitions changed
it would become very confused. Also not being an open source component
was a ding to our FOSS pride.
Another alternative is Turck MMCache. It's open source and claims
performance as good or better than the competition. A couple people
have tried it out and confirmed it works with MediaWiki... Since pliny
has had a fresh operating system install with its new hard drive, I've
gone ahead and put MMCache on it instead of installing PHPA.
So far so good, we'll see how it goes. (Pliny is now serving
en.wikipedia.org.)
Info: http://turck-mmcache.sourceforge.net/
-- brion vibber (brion @ pobox.com)