Manual talk:Running MediaWiki on Ubuntu GNU/Linux

Core packages
I have php5 and php5-mysql packages installed. apt-get can not proceed sating, that I do not have the php4 and php4-myslq. Can I force the usage of PHP version 5 packages?

Jiri

If you only enabled the universe repositories in Ubuntu 6.06LTS server you'll get mediawiki 1.4 which has PHP4 as a dependancy.

Enable the backports repositories to get the 1.7 version which uses PHP5.

deb http://us.archive.ubuntu.com/ubuntu/ dapper-backports main restricted universe multiverse deb-src http://us.archive.ubuntu.com/ubuntu/ dapper-backports main restricted universe multiverse

Scott

Very easy in ubuntu
It says:

ln -s /etc/mediawiki/apache2.conf /etc/apache2/sites-available/mediawiki.conf ln -s /etc/apache2/sites-available/mediawiki.conf /etc/apache2/sites-enabled/001-mediawiki /etc/init.d/apache2 restart

I installed mediawiki using synaptic package manager. I think I don't need this step. It says for both ln commands file already exists.

I moved LocalSettings.php and changed permissions to 700. Didn't remove dir /.../conf. (Before I did and everything was void. Had to repeat installation.) Everything runs fine. Ben1979 16:31, 1 December 2005 (UTC)

- Of course, you should warn that following these instructions (apt-get install mediawiki) you will *not* get the latest stable mediawiki (1.5 as I write) for which most of the wikimedia.org pages have been updated. In order to use the latest security functions, then following the Debian instructions might be better.

---

See my backports lines above to make sure you get 1.7 (currently - 4/3/2007)

The symlink commands on the main page are not necessary if using the backports repository. The proper symlink is established in /etc/apache2/conf.d (for some strange reason)

Scott

restarting apache2
The following command will restart apache2: sudo apache2ctl restart

MySQL
The mediawiki install may not install mysql-server. If not, this will take care of it:

sudo apt-get install mysql-server

Dapper Drake mediawiki1.4 -> 1.7 upgrade?
Is there a way of getting a newest version (1.7) up and running on Dapper Drake? Assuming I already got the right versions of php5, mysql, apache2, which configuration files need to be modified? darked 061005
 * This isn't the best place to get upgrade hints for Mediawiki. Obviously this article can be updated now that Ubuntu Dapper and Edgy are running 1.7 as the current in the respositories.  Check the Ubuntu support forum for your support needs.  I believe that a third-party creates the packages for Mediawiki, so they might be able to figure out how to do an install, but they aren't responsible for it.
 * ~ 70.134.44.210 00:03, 16 December 2006 (UTC) <-- Heh, I should register one of these days. ^_^

Apache Configuration
sudo ln -s /etc/mediawiki1.7/apache.conf /etc/apache2/sites-available/mediawiki.conf sudo ln -s /etc/apache2/sites-available/mediawiki.conf /etc/apache2/sites-enabled/001-mediawiki sudo invoke-rc.d apache2 restart

While configuring apache according your guide, the first step is ok. On second step there isnt any 001-mediawiki file on /etc/apache2/sites-available directory. Therefore apache restart fails. The terminal output ; '''  ~$ sudo invoke-rc.d apache2 restart * Forcing reload of apache 2.0 web server... grep: /etc/apache2/sites-enabled/001-mediawiki: Nosuch file or directory [fail] invoke-rc.d: initscript apache2, action "restart" failed. '''

sudo apt-get install mediawiki mediawiki-math

And also after above command, no mediawiki directory installed in www directory, will I download mediawiki and put it manually there?

Please revise the guide.

Proposed deletion
It is proposed that this page be deleted as Manual:Running MediaWiki on Ubuntu is newer and more complete. I am not in a position to comment on this, as I don't know enough about the systems. Please ensure that the page is genuinely unnecessary before deleting - there may be small differences that make a big impact (though in this case they should probably be merged). --HappyDog 21:43, 29 August 2007 (UTC)

This shouldn't be deleted, merged ideally. The other guide is more of howto setup mediawiki from scratch and doesn't consider the ubuntu build system, or default locations for configuration files. The other is more of a linux howto in general.