Login | Register For Free | Help
Search for: (Advanced)

Mailing List Archive: Wikipedia: Mediawiki

Mediawiki on CentOS 5, PHP 5.1.6, MySQL 14.12, not working.

 

 

Wikipedia mediawiki RSS feed   Index | Next | Previous | View Threaded


paleywiener at yahoo

Jun 11, 2008, 1:53 AM

Post #1 of 3 (726 views)
Permalink
Mediawiki on CentOS 5, PHP 5.1.6, MySQL 14.12, not working.

Hello, I installed MediaWiki using yum. The web based
config gave me no errors and the db was populated just
fine. The problem is that when i browse
http://mail.deathstar.net/wiki/ , my page is broken
with no images and no cool layout. I just get a white
background thing with some formatted text.

I did a view src and:
--------------
<a style="background-image:
url(wiki/skins/common/images/wiki.png);"
href="wiki/index.php/Main_Page" title="Visit the Main
Page
------------------
Note that wiki/skins.. does not lie under my Apache
DocumentRoot. Why is the PHP generating a link like
that?

I have a default apache install with:
LoadModule php5_module modules/libphp5.so
Apache: DocumentRoot "/var/www/"

My /var/www/wiki/LocalSettings.php contains:
if( defined( 'MW_INSTALL_PATH' ) ) {
$IP = MW_INSTALL_PATH;

} else {
$IP = '/usr/share/mediawiki';
}

$wgScriptPath = "wiki"; (because this should be
relative to my Apache DocumentRoot [URL base path])
-------------------------------------------------------

Could someone help me figure out what needs to be done
to gett his to work?? Should i create an Apache Alias
for wiki/skins ??







_______________________________________________
MediaWiki-l mailing list
MediaWiki-l[at]lists.wikimedia.org
https://lists.wikimedia.org/mailman/listinfo/mediawiki-l


dan_the_man at telus

Jun 11, 2008, 2:40 AM

Post #2 of 3 (685 views)
Permalink
Re: Mediawiki on CentOS 5, PHP 5.1.6, MySQL 14.12, not working. [In reply to]

Well, theres your issue. You need to mention more in IRC.
The ScriptPath and all other variables in MediaWiki are always
absolutes. Relatives are never used because with all the aliases and
other stuff, relative paths get corrupted quickly and easily.
For example:
The path: wiki/index.php/Main_Page
From: http://mail.deathstar.net/wiki/index.php/Main_Page
Would be treated as a link to:
http://mail.deathstar.net/wiki/index.php/wiki/index.php/Main_Page
And similarly your wiki/skins/ is going to be corrupted in the same way
in an attempt to grab links to things under wiki/index.php/

Though, I note that your wiki is just plain gone right now.

I'd recommend reinstalling from scratch... But this time actually
install MediaWiki yourself. Every last one of the external installers
are junk... They don't keep up with the software, and 99% of the time
they are horribly buggy and don't simplify things at all. MediaWiki
already has it's own config script.

~Daniel Friesen(Dantman) of:
-The Nadir-Point Group (http://nadir-point.com)
--It's Wiki-Tools subgroup (http://wiki-tools.com)
--Games-G.P.S. (http://ggps.org)
-And Wikia ACG on Wikia.com (http://wikia.com/wiki/Wikia_ACG)

Radio Tron wrote:
> Hello, I installed MediaWiki using yum. The web based
> config gave me no errors and the db was populated just
> fine. The problem is that when i browse
> http://mail.deathstar.net/wiki/ , my page is broken
> with no images and no cool layout. I just get a white
> background thing with some formatted text.
>
> I did a view src and:
> --------------
> <a style="background-image:
> url(wiki/skins/common/images/wiki.png);"
> href="wiki/index.php/Main_Page" title="Visit the Main
> Page
> ------------------
> Note that wiki/skins.. does not lie under my Apache
> DocumentRoot. Why is the PHP generating a link like
> that?
>
> I have a default apache install with:
> LoadModule php5_module modules/libphp5.so
> Apache: DocumentRoot "/var/www/"
>
> My /var/www/wiki/LocalSettings.php contains:
> if( defined( 'MW_INSTALL_PATH' ) ) {
> $IP = MW_INSTALL_PATH;
>
> } else {
> $IP = '/usr/share/mediawiki';
> }
>
> $wgScriptPath = "wiki"; (because this should be
> relative to my Apache DocumentRoot [URL base path])
> -------------------------------------------------------
>
> Could someone help me figure out what needs to be done
> to gett his to work?? Should i create an Apache Alias
> for wiki/skins ??
>
>
>
>
>
>
>
> _______________________________________________
> MediaWiki-l mailing list
> MediaWiki-l[at]lists.wikimedia.org
> https://lists.wikimedia.org/mailman/listinfo/mediawiki-l
>
>

_______________________________________________
MediaWiki-l mailing list
MediaWiki-l[at]lists.wikimedia.org
https://lists.wikimedia.org/mailman/listinfo/mediawiki-l


paleywiener at yahoo

Jun 11, 2008, 3:46 AM

Post #3 of 3 (678 views)
Permalink
Re: Mediawiki on CentOS 5, PHP 5.1.6, MySQL 14.12, not working. [In reply to]

Hey Dan! Ha! Got it working :) Should have listened to
you from the beginning - no problems whatsoever! All
of 1 minute to do the install including db/user
creation :) Thanks awfully!

I think the problem was with 'pache and the fact that
Centos heaves all my files into /usr/share/mediawiki
and out of my DocRoot(/var/www/wiki). Might have
worked if I understood Apache better. In this setup,
everything is under /var/www/wiki.

> You need to mention more in IRC.
hehe, It's easier to collect all my thoughts and send
one mail explaining all, than to scurry back and forth
answering a multitude of questions on IRC :p

> Though, I note that your wiki is just plain gone
> right now.

Nahh.. it's a internal domain. Actually, it's just
sitting on my box right now. I need to read up on
Apache and twiddle and understand the Wiki first,
before inflicting my brilliance on other people -
I'm mostly end user when it comes to the wiki(pedia). :)





_______________________________________________
MediaWiki-l mailing list
MediaWiki-l[at]lists.wikimedia.org
https://lists.wikimedia.org/mailman/listinfo/mediawiki-l

Wikipedia mediawiki RSS feed   Index | Next | Previous | View Threaded
 
 


Interested in having your list archived? Contact lists@gossamer-threads.com
 
  Web Applications & Managed Hosting Powered by Gossamer Threads Inc.