Hi Everybody,
I have been trying to use the pre-packaged installs for mediawiki on my new ubuntu server and I wanted to abstract away my URL and make it something more along the lines of /something_descriptive/page rather than /mediawiki/page. In my previous uses of mediawiki I could do this with a simple alias; however, the new packages for lucid do not seem to play well with this. I installed the lamp-server^ and mediawiki packages via apt-get and have standard configurations. The server without modifiction works fine. But if I change the Alias statement in /etc/mediawiki/apache.conf it breaks terribly. For some reason, adding a second Alias statement at the end of my /etc/apcahe2/apache.conf file will work; however, once the page loads the displayed URL is still the old style, that is "/mediawiki/index.php/Main_Page". I suspect the spaghetti mess of symbolic links in this package is making something go awry. I have tried modifying the following settings in /etc/mediawiki/LocalSettings.php:
$wqArticlePath $wgScriptPath $wgUsePathInfo
The results of various modifications of these have either been a seemingly working redirect from apache to a blank page with now source. Or a redirect loop warning. If anybody could help me get these URLs cleaned up I would really appreciate it. Also, I have been trying to find this for some time, but is there any place where the ubuntu packages are ACTUALLY documented? They rarely follow the standard configuration of what they contain (apache, mysql, etc) and the absurd number of symbolic links in many of them makes their folder structure almost impossible to navigate around and determine which files correspond to the original configuration files of the software. Some package specific documentation resources would really help.
Thanks guys.
On 28 June 2010 11:41, Vincent Baier (RIT Student) vjb4501@rit.edu wrote:
The results of various modifications of these have either been a seemingly working redirect from apache to a blank page with now source. Or a redirect loop warning. If anybody could help me get these URLs cleaned up I would really appreciate it. Also, I have been trying to find this for some time, but is there any place where the ubuntu packages are ACTUALLY documented? They rarely follow the standard configuration of what they contain (apache, mysql, etc) and the absurd number of symbolic links in many of them makes their folder structure almost impossible to navigate around and determine which files correspond to the original configuration files of the software. Some package specific documentation resources would really help.
+1
I can't help, but have been similarly annoyed by Debian's insistence on doing everything its own way. If anyone can make a start on writing this up for mediawiki.org, that would be most helpful ...
- d.
On Mon, Jun 28, 2010 at 6:41 AM, Vincent Baier (RIT Student) < vjb4501@rit.edu> wrote:
Also, I have been trying to find this for some time, but is there any place where the ubuntu packages are ACTUALLY documented?
https://help.ubuntu.com/community/MediaWiki It's the package maintainers' responsibility to document their packages (although there are some attempts on MW.org anyway: http://www.mediawiki.org/wiki/Manual:Installing_Mediawiki_on_Ubuntu_10.04 )
On Mon, Jun 28, 2010 at 6:41 AM, Vincent Baier (RIT Student) < vjb4501@rit.edu> wrote:
They rarely follow the standard configuration of what they contain (apache, mysql, etc) and the absurd number of symbolic links in many of them makes their folder structure almost impossible to navigate around and determine which files correspond to the original configuration files of the software.
Most developers will recommend that you not install MediaWiki through an OS package; it sounds like you've already figured out some of the reasons. If you want to spare yourself further trouble, it shouldn't be too hard to migrate from the package to a normal installation: *Download MediaWiki: http://www.mediawiki.org/wiki/Download_from_SVN (you don't have to use SVN here, but it will make it easy to keep the wiki up-to-date) *Copy LocalSettings.php and the images directory from the package installation to your new installation *Get rid of the package stuff from LocalSettings.php. From a quick comparison, it looks like the stuff you should remove is: define('MW_INSTALL_PATH','/var/lib/mediawiki');
and
# debian specific include: if (is_file("/etc/mediawiki-extensions/extensions.php")) { include( "/etc/mediawiki-extensions/extensions.php" ); } (I can't guarantee there isn't more, though, especially if you've been playing the path settings; you can always run the installer in /config to get a fresh copy of LocalSettings.php if you find that everything's broken.)
*Run update.php *Check the extensions you need out from SVN, using the same release branch you downloaded MediaWiki from (you could also just copy over your old extensions directory, but then you won't know whether they're up-to-date) * http://www.mediawiki.org/wiki/Manual:Short_URL#Recommended_how-to_guide_.28s...:)
Hi Everybody,
I have been trying to use the pre-packaged installs for mediawiki on my
new
ubuntu server and I wanted to abstract away my URL and make it something more along the lines of /something_descriptive/page rather than /mediawiki/page. In my previous uses of mediawiki I could do this with a simple alias; however, the new packages for lucid do not seem to play well with this. I installed the lamp-server^ and mediawiki packages via apt-get and have standard configurations. The server without modifiction works
fine.
But if I change the Alias statement in /etc/mediawiki/apache.conf it
breaks
terribly. For some reason, adding a second Alias statement at the end of
my
/etc/apcahe2/apache.conf file will work; however, once the page loads the displayed URL is still the old style, that is "/mediawiki/index.php/Main_Page". I suspect the spaghetti mess of symbolic links in this package is making something go awry. I have tried modifying the following settings in /etc/mediawiki/LocalSettings.php:
$wqArticlePath $wgScriptPath $wgUsePathInfo
The results of various modifications of these have either been a seemingly working redirect from apache to a blank page with now source. Or a
redirect
loop warning. If anybody could help me get these URLs cleaned up I would really appreciate it. Also, I have been trying to find this for some time, but is there any place where the ubuntu packages are ACTUALLY documented? They rarely follow the standard configuration of what they contain
(apache,
mysql, etc) and the absurd number of symbolic links in many of them makes their folder structure almost impossible to navigate around and determine which files correspond to the original configuration files of the
software.
Some package specific documentation resources would really help.
Thanks guys. _______________________________________________
[Michael Hutchinson]
Hello,
It may have already been suggested, but about the best way to get MediaWiki on Debian is to manually install it from the source package. There's more than just one reason to do this, however. Not only do you get to choose the URL / directory structure that you want, but you also get a much later version of MediaWiki. Currently Debian 5 will pull in version 1.12 of MediaWiki, where the current version is 1.15.4.
The Ubuntu 10 guide should work quite well for Debian, though I didn't bother, I just met the dependencies and installed.
Cheers, Michael.
mediawiki-l@lists.wikimedia.org