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 ??
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@lists.wikimedia.org https://lists.wikimedia.org/mailman/listinfo/mediawiki-l
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@lists.wikimedia.org