I am a completely newcomer to Mediawiki and have an enquiry regarding
its installation and configuration. I hope therefore that subscribers
of this mailing list will make allowances for me if I have inadvertently
mailed the wrong list were my enquiry would be better directed at
another. If this is the case, I apologise and would ask that users
direct me to a more appropriate list that is more suitable.
I write because I am seeking some guidance and assistance concerning the
issue of Namespaces. However, before I explain the nature of my enquiry
in detail it's necessary to first explain where I am at with regards to
installing the software.
At the moment, I have the software installed on a Sandbox server that is
running of a XAMPP architecture. Once the wiki has been built and
tested however and I have finalised registering a domain, the wiki will
be installed on a Linux based server utilising a LAMP architecture (or
if not Linux, Solaris as no firm decision has yet been made).
The current windows based sandbox installation is as follows:
- PHP 5.30 installed
- MySQL 5.1.37 installed
- DB user: root@localhost
- PHP's memory limit is 128M
- Installation directory c:\xampp\htdocs\eurowiki
- Script URI path: /eurowiki
The questions I have concerning namespaces are as follows. I apologise
if these questions seem somewhat elementary but as I said, I am a
complete newcomer to the software and I have only just started to get my
head round how it all works and have only just begun to read all the
information contained within the help section of the main mediwiki
website:
1. In addition to the default namespaces created during initial
installation, can I create namespaces of my own and if so, how do I do
so? I would like to create potentially another 5 unique namespaces
specific to my wiki installation. What I need to know therefore is (a)
if this is possible and if so (b) how to do so.
2. When creating a new article (wiki page), how do I assign it to
a specific namespace? Is this achieved through nothing more complicated
than giving it a name in accordance with the names associated with one's
existing namespaces eg: 'Help: Editing an Article' - to create an
article regarding how to edit a given page within the "help" namespace?
3. How can I generate a list of all articles with links to
corresponding article page contained within a given namespace and
display this in a "special" wiki page (article)?
4. Is it possible to assign different and specific templates for
all articles within a given namespace? For example, for purely aesthetic
reasons (and because I think it will make orientation of the wiki that
much easier for users), I'd like to change some of the graphics and
background of all article pages contained within the "help" and "manual"
namespaces. They might have say a different logo and a blue background.
I wondered if this was possible without having to engage in a major PHP
programming hack and if so, how. I'm a reasonably competent PHP
programmer but I don't want to have to start making major changes to the
course code unless absolutely necessary.
5. Does the software impose any restrictions upon creating one's
own additional namespaces beyond those installed by default - e.g.
naming conventions, number and type of characters, etc, etc? if so, what
are these?
In addition to answering these questions, I would be grateful if
somebody could reply to this message by explaining in greater detail the
process of editing articles within the "mediawiki" namespace so that I
can go about changing the appearance of the master templates (and hence
the look and feel of the wiki as a whole) and so that I can go about
adding 3rd party extensions that will increase functionality.
At the moment, if I attempt to create a new article (e.g.:
MediaWiki:Common.css in order to alter the general appearance of the
wiki), I get the following 403 page appear with the following wording:
"Access Forbidden - you don't have permission to access the requested
object"
Please can somebody explain what is going on here as I obvious want to
change start making changes. This same 403 appears regardless of
whatever article I try to create where in the process I'm assigning it
to a namespace.
If when you do reply, you could bear in mind that although I am above
averagely competent when it comes to IT issues, I am not a systems
engineer and I'm not an experienced programmer (and I have very little
idea how media wiki works) so I'd be really grateful if you replied in
as simple a language as possible as explained everything in detail. This
way I can learn from the experience.
Thank you.
I've two issues I've been bashing my head against for the last few days
and finally decided to put it out to the list as a whole. I'm working
on an increasingly complex template and I'm hoping you guys might be
able to provide some easy answers.
1) Is it possible to put comments into a template? Something that will
only show up on the edit screen for the template, not on the 'view' tab
and not when the template is used?
2) Is it possible to assign a parameter value to a parameter within the
template? Basically, what I'm trying to do is to use an ifeq statement
to provide output based on one of three possible parameter values. For
example:
Let's assume the only parameter passed from the calling page is a value
for "pet". The two values expected are "dog" or "fish". If the
parameter value passed is "dog", then I'd want to assign breathes=air,
legs=4 and teeth=yes. If the parameter value from 'pet' is "fish", I'd
want breathes=water, legs=0 and teeth=none. Later on in the same
template, I'd want to put the values for breathers, legs and teeth into
a table.
Now I know I could just put the ifeq statement within the cell in the
table, but that's going to quickly get repetitive and cumbersome,
resulting in a vary nasty and complex page under the 'edit' tab. I'm
hoping for something a bit more elegant and efficient.
Thanks for any assistance you can provide.
R. William Morris
Lucifer(a)infernaldreams.com
It seems that I have database problems with my installation.
>From time to time, the site take a horrendous time coming up, or I get
database errors.
I tried running the maintenance scripts from the commandline but it
didn't seems to help much.
Any other thoughts?
Regards,
Martin S
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.
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
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(a)xoxy.net
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.
http://www.mediawiki.org/wiki/Manual:Parameters_to_Special:Export
Rob
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 (
user_id int NOT NULL default '0',
user_ip varchar(13) NOT NULL default '',
user_last_timestamp varchar(5) NOT NULL default ''
);
CREATE TABLE page (
page_id int NOT NULL IDENTITY(1,1),
page_namespace int NOT NULL,
page_title varchar(255) NOT NULL,
page_restrictions text NOT NULL,
page_counter bigint NOT NULL default '0',
page_is_redirect tinyint NOT NULL default '0',
page_is_new tinyint NOT NULL default '0',
page_random real NOT NULL,
page_touched varchar(5) NOT NULL default '',
page_latest int NOT NULL,
page_len int NOT NULL,
PRIMARY KEY (page_id)
);
CREATE TABLE revision (
rev_id int NOT NULL IDENTITY(1,1),
rev_page int NOT NULL,
rev_text_id int NOT NULL,
rev_comment text NOT NULL,
rev_user int NOT NULL default '0',
rev_user_text varchar(255) NOT NULL default '',
rev_timestamp varchar(5) NOT NULL default '',
rev_minor_edit tinyint NOT NULL default '0',
rev_deleted tinyint NOT NULL default '0',
rev_len int,
rev_parent_id int default NULL,
PRIMARY KEY (rev_page, rev_id)
);
CREATE TABLE text (
old_id int NOT NULL IDENTITY(1,1),
old_text text NOT NULL,
old_flags text NOT NULL,
PRIMARY KEY (old_id)
);
CREATE TABLE archive (
ar_namespace int NOT NULL default '0',
ar_title varchar(255) NOT NULL default '',
ar_text text NOT NULL,
ar_comment text NOT NULL,
ar_user int NOT NULL default '0',
ar_user_text varchar(255) NOT NULL,
ar_timestamp varchar(5) NOT NULL default '',
ar_minor_edit tinyint NOT NULL default '0',
ar_flags text NOT NULL,
ar_rev_id int,
ar_text_id int,
ar_deleted tinyint NOT NULL default '0',
ar_len int,
ar_page_id int,
ar_parent_id int default NULL
);
CREATE TABLE pagelinks (
pl_from int NOT NULL default '0',
pl_namespace int NOT NULL default '0',
pl_title varchar(255) NOT NULL default ''
);
CREATE TABLE templatelinks (
tl_from int NOT NULL default '0',
tl_namespace int NOT NULL default '0',
tl_title varchar(255) NOT NULL default ''
);
CREATE TABLE imagelinks (
il_from int NOT NULL default '0',
il_to varchar(255) NOT NULL default ''
);
CREATE TABLE categorylinks (
cl_from int NOT NULL default '0',
cl_to varchar(255) NOT NULL default '',
cl_sortkey varchar(70) NOT NULL default '',
cl_timestamp timestamp NOT NULL
);
CREATE TABLE category (
cat_id int NOT NULL IDENTITY(1,1),
cat_title varchar(255) NOT NULL,
cat_pages int NOT NULL default 0,
cat_subcats int NOT NULL default 0,
cat_files int NOT NULL default 0,
cat_hidden tinyint NOT NULL default 0,
PRIMARY KEY (cat_id)
);
CREATE TABLE externallinks (
el_from int NOT NULL default '0',
el_to text NOT NULL,
el_index text NOT NULL
);
CREATE TABLE langlinks (
ll_from int NOT NULL default '0',
ll_lang varchar(7) NOT NULL default '',
ll_title varchar(255) NOT NULL default ''
);
CREATE TABLE site_stats (
ss_row_id int NOT NULL,
ss_total_views bigint default '0',
ss_total_edits bigint default '0',
ss_good_articles bigint default '0',
ss_total_pages bigint default '-1',
ss_users bigint default '-1',
ss_admins int default '-1',
ss_images int default '0'
);
CREATE TABLE hitcounter (
hc_id int NOT NULL
);
CREATE TABLE ipblocks (
ipb_id int NOT NULL IDENTITY(1,1),
ipb_address text NOT NULL,
ipb_user int NOT NULL default '0',
ipb_by int NOT NULL default '0',
ipb_by_text varchar(255) NOT NULL default '',
ipb_reason text NOT NULL,
ipb_timestamp varchar(5) NOT NULL default '',
ipb_auto bit NOT NULL default 0,
ipb_anon_only bit NOT NULL default 0,
ipb_create_account bit NOT NULL default 1,
ipb_enable_autoblock bit NOT NULL default '1',
ipb_expiry varchar(5) NOT NULL default '',
ipb_range_start text NOT NULL,
ipb_range_end text NOT NULL,
ipb_deleted bit NOT NULL default 0,
ipb_block_email bit NOT NULL default 0,
PRIMARY KEY (ipb_id)
);
CREATE TABLE image (
img_name varchar(255) NOT NULL default '',
img_size int NOT NULL default '0',
img_width int NOT NULL default '0',
img_height int NOT NULL default '0',
img_metadata text NOT NULL,
img_bits int NOT NULL default '0',
img_media_type TEXT default NULL,
img_major_mime TEXT NOT NULL default "unknown",
img_minor_mime varchar(10) NOT NULL default "unknown",
img_description text NOT NULL,
img_user int NOT NULL default '0',
img_user_text varchar(255) NOT NULL,
img_timestamp varchar(5) NOT NULL default '',
img_sha1 varchar(10) NOT NULL default '',
PRIMARY KEY (img_name)
);
CREATE TABLE oldimage (
oi_name varchar(255) NOT NULL default '',
oi_archive_name varchar(255) NOT NULL default '',
oi_size int NOT NULL default 0,
oi_width int NOT NULL default 0,
oi_height int NOT NULL default 0,
oi_bits int NOT NULL default 0,
oi_description text NOT NULL,
oi_user int NOT NULL default '0',
oi_user_text varchar(255) NOT NULL,
oi_timestamp varchar(5) NOT NULL default '',
oi_metadata text NOT NULL,
oi_media_type TEXT default NULL,
oi_major_mime TEXT NOT NULL default "unknown",
oi_minor_mime varchar(10) NOT NULL default "unknown",
oi_deleted tinyint NOT NULL default '0',
oi_sha1 varchar(10) NOT NULL default ''
);
CREATE TABLE filearchive (
fa_id int NOT NULL IDENTITY(1,1),
fa_name varchar(255) NOT NULL default '',
fa_archive_name varchar(255) NULL default '',
fa_storage_group varchar(5) NULL,
fa_storage_key varchar(17) NULL default '',
fa_deleted_user int,
fa_deleted_timestamp varchar(5) NULL default '',
fa_deleted_reason text,
fa_size int default '0',
fa_width int default '0',
fa_height int default '0',
fa_metadata text,
fa_bits int default '0',
fa_media_type TEXT default NULL,
fa_major_mime TEXT default "unknown",
fa_minor_mime varchar(10) NULL default "unknown",
fa_description text,
fa_user int default '0',
fa_user_text varchar(255) NULL,
fa_timestamp varchar(5) NULL default '',
fa_deleted tinyint NOT NULL default '0',
PRIMARY KEY (fa_id)
);
CREATE TABLE recentchanges (
rc_id int NOT NULL IDENTITY(1,1),
rc_timestamp varchar(5) NOT NULL default '',
rc_cur_time varchar(5) NOT NULL default '',
rc_user int NOT NULL default '0',
rc_user_text varchar(255) NOT NULL,
rc_namespace int NOT NULL default '0',
rc_title varchar(255) NOT NULL default '',
rc_comment varchar(255) NOT NULL default '',
rc_minor tinyint NOT NULL default '0',
rc_bot tinyint NOT NULL default '0',
rc_new tinyint NOT NULL default '0',
rc_cur_id int NOT NULL default '0',
rc_this_oldid int NOT NULL default '0',
rc_last_oldid int NOT NULL default '0',
rc_type tinyint NOT NULL default '0',
rc_moved_to_ns tinyint NOT NULL default '0',
rc_moved_to_title varchar(255) NOT NULL default '',
rc_patrolled tinyint NOT NULL default '0',
rc_ip varchar(13) NOT NULL default '',
rc_old_len int,
rc_new_len int,
rc_deleted tinyint NOT NULL default '0',
rc_logid int NOT NULL default '0',
rc_log_type varchar(17) NULL default NULL,
rc_log_action varchar(17) NULL default NULL,
rc_params text NULL,
PRIMARY KEY (rc_id)
);
CREATE TABLE watchlist (
wl_user int NOT NULL,
wl_namespace int NOT NULL default '0',
wl_title varchar(255) NOT NULL default '',
wl_notificationtimestamp varchar(5) NULL
);
CREATE TABLE math (
math_inputhash varchar(5) NOT NULL,
math_outputhash varchar(5) NOT NULL,
math_html_conservativeness tinyint NOT NULL,
math_html text,
math_mathml text
);
CREATE TABLE searchindex (
si_page int NOT NULL,
si_title varchar(255) NOT NULL default '',
si_text text NOT NULL
);
CREATE TABLE interwiki (
iw_prefix varchar(32) NOT NULL,
iw_url text NOT NULL,
iw_local bit NOT NULL,
iw_trans tinyint NOT NULL default 0
);
CREATE TABLE querycache (
qc_type varchar(10) NOT NULL,
qc_value int NOT NULL default '0',
qc_namespace int NOT NULL default '0',
qc_title varchar(255) NOT NULL default ''
);
CREATE TABLE objectcache (
keyname varchar(17) NOT NULL default '',
value text,
exptime datetime
);
CREATE TABLE transcache (
tc_url varchar(17) NOT NULL,
tc_contents text,
tc_time int NOT NULL
);
CREATE TABLE logging (
log_id int NOT NULL IDENTITY(1,1),
log_type varchar(4) NOT NULL default '',
log_action varchar(4) NOT NULL default '',
log_timestamp varchar(5) NOT NULL default '19700101000000',
log_user int NOT NULL default 0,
log_namespace int NOT NULL default 0,
log_title varchar(255) NOT NULL default '',
log_comment varchar(255) NOT NULL default '',
log_params text NOT NULL,
log_deleted tinyint NOT NULL default '0',
PRIMARY KEY (log_id)
);
CREATE TABLE trackbacks (
tb_id int IDENTITY(1,1),
tb_page int REFERENCES page(page_id) ON DELETE CASCADE,
tb_title varchar(255) NOT NULL,
tb_url text NOT NULL,
tb_ex text,
tb_name varchar(255) NULL,
PRIMARY KEY (tb_id)
);
CREATE TABLE job (
job_id int NOT NULL IDENTITY(1,1),
job_cmd varchar(17) NOT NULL default '',
job_namespace int NOT NULL,
job_title varchar(255) NOT NULL,
job_params text NOT NULL,
PRIMARY KEY (job_id)
);
CREATE TABLE querycache_info (
qci_type varchar(10) NOT NULL default '',
qci_timestamp varchar(5) NOT NULL default '19700101000000'
);
CREATE TABLE redirect (
rd_from int NOT NULL default '0',
rd_namespace int NOT NULL default '0',
rd_title varchar(255) NOT NULL default '',
PRIMARY KEY (rd_from)
);
CREATE TABLE querycachetwo (
qcc_type varchar(10) NOT NULL,
qcc_value int NOT NULL default '0',
qcc_namespace int NOT NULL default '0',
qcc_title varchar(255) NOT NULL default '',
qcc_namespacetwo int NOT NULL default '0',
qcc_titletwo varchar(255) NOT NULL default ''
);
CREATE TABLE page_restrictions (
pr_page int NOT NULL,
pr_type varchar(17) NOT NULL,
pr_level varchar(17) NOT NULL,
pr_cascade tinyint NOT NULL,
pr_user int NULL,
pr_expiry varchar(5) NULL,
pr_id int NOT NULL IDENTITY(1,1),
PRIMARY KEY (pr_page,pr_type)
);
CREATE TABLE protected_titles (
pt_namespace int NOT NULL,
pt_title varchar(255) NOT NULL,
pt_user int NOT NULL,
pt_reason text,
pt_timestamp varchar(5) NOT NULL,
pt_expiry varchar(5) NOT NULL default '',
pt_create_perm varchar(17) NOT NULL,
PRIMARY KEY (pt_namespace,pt_title)
);
CREATE TABLE page_props (
pp_page int NOT NULL,
pp_propname varchar(17) NOT NULL,
pp_value text NOT NULL,
PRIMARY KEY (pp_page,pp_propname)
);
CREATE TABLE updatelog (
ul_key varchar(255) NOT NULL,
PRIMARY KEY (ul_key)
);
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
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
________________________________________________________________________
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
www.mywiki.org [Mon Nov 30 05:33:46 2009] [error] [client
77.221.130.11] script '/path/to/webroot/mywiki/config.php' not found or
unable to stat
www.mywiki.org [Mon Nov 30 05:38:32 2009] [error] [client 59.24.49.35]
script '/path/to/webroot/mywiki/config.php' not found or unable to stat
www.mywiki.org [Mon Nov 30 05:39:09 2009] [error] [client 59.24.49.35]
script '/path/to/webroot/mywiki/config.php' not found or unable to stat
www.mywiki.org [Mon Nov 30 05:43:50 2009] [error] [client
209.92.156.53] script '/path/to/webroot/mywiki/vulnerable.php' not found
or unable to stat
We're running:
MediaWiki 1.15.1 (r208)
FreeBSD 6.2-RELEASE-p12 (Apache 2.0 Handler)
PHP 5.2.11
MySQL 5.0.67-log
Thanks in advance for any advice you can give me,
Patricia Barden