Manual talk:Running MediaWiki on Ubuntu
- Updated to match scratch install done with 9.04 on 5/14/09
In 9.04 I found I could not access the config directory to get LocalSettings.php until I did a chmod on it. I didn't experience that problem on u7.x or u8.x tests.
Any user names refer to users of that site, who are not necessarily users of MediaWiki.org (even if they share the same username).
For a presentation I went through an install/config several times and touched up this page to match what I learned:
- All references to VMware removed - unnecessary
- Chatty reference to UK download site removed
- Added note about how to find correct current version (and updated to reflect 1.9.3 is current)
- Reorganized headings to make more sense
I think the whole area at the end regarding making an offline copy of MediaWiki help is unnecessary and confusing. I put it into an entirely separate heading, but I'm leaning towards deleting it.
Note that the above conversation may have been edited or added to since the transfer. If in doubt, check the edit history.
Contents |
[edit] GD library or ImageMagic?
I think the line, "If you want to use the GD library (instead of ImageMagic for image resizing)" leaves the reader at a loss as to why he or she would want to use this option. Specifically:
- Is ImageMagic already installed with MediaWiki?
- If not, how to download and install.
- Why would someone want to use one over the other?
..a great article overall, though! Thanks!
It may be helpful to use nano, rather than vi. -- 81.187.40.226
- I agree - I don't know where the vi came from, I used gedit throughout and someone changed it to vi. I just reedited and put gedit back in. Also, the inline comment someone made about my setting the config directory to a+w was unnecessary, since the entire directory is rm'd about 10 lines further down.
[edit] No Ubuntu Pacakage?
The "Get Latest MediaWiki" section notes "There is no apt package for MediaWiki". Was the author unaware of "sudo aptitude install mediawiki", which seems to work fine for me in Ubuntu, or is this package somehow insufficient?
- Yes you can install it. Now I'm not sure what to do next. Logictheo 20:34, 18 June 2009 (UTC)
[edit] Desktop Installation of php
I am trying to set up mediawiki on my ubuntu 7.10 . These are the various things which I needed to install on the desktop & configure stuff for it to work.
sudo apt-get install php-mysql mysql-client mysql-client php-gd apache2-mpm-prefork libapache2-mod-php5 phpmyadmin php5-xcache phpmyadmin
then had to make symlinks
sudo ln -s /etc/apache2/mods-available/php5.conf /etc/apache2/mods-enabled/ sudo ln -s /etc/apache2/mods-available/php5.load /etc/apache2/mods-enabled/
Then restarted apache
sudo apache2ctl restart
Also edited in /etc/apache2.conf so it doesn't complain :-
ServerName 127.0.0.1 or your Server IP address.
Ok then do ,
192.168.1.2/wiki
the ipaddress was got from eth0 inet_addr
which shows you the wiki page ,One gets to the configure part.
One has to make a MYSQL db & create a user before doing stuff
mysql -u <username> -p<password>
Then on the mysql prompt create the db
mysql > create database WIKIDB_NAME ;
Then create a user with privileges
mysql > grant create, select, insert, update, delete, lock tables on wikidb.* to 'wikiuser'@'localhost' identified by 'password';
The password should be different than the root password.
Then flush the privileges
mysql > flush privileges;
Shirish 23:42, 9 November 2007 (UTC)
- Interesting: I take it you started from Ubuntu desktop, not server? If you start with server, all the additional software is installed automatically by simply selecting LAMP on configuration screen. You then have to add the gui with
sudo apt-get install ubuntu-desktop
but then, in both methods, you end up with a gui server for your wiki.
[edit] Text from Manual:Running_MediaWiki_on_Ubuntu_GNU/Linux
Text from [1] moved here --Kaganer 22:39, 14 April 2008 (UTC)
Mediawiki can be installed on Ubuntu using apt-get, aptitude, or synaptic. It requires the apache web server (Version 1.3 or 2), php5, and php5-mysql. —The preceding unsigned comment was added by 24.91.109.79 (talk • contribs)
[edit] vi - use gedit
gedit can be used for any text file so you just type gedit file to open your preferred file in your preferred editor Logictheo 20:36, 18 June 2009 (UTC)
[edit] Installing on 8.04 LTS
Note that installing MediaWiki with apt-get or aptitude with 8.04 LTS installs Mediawiki 1.11 and NOT the latest Mediawiki (Gible) 118.93.5.11 09:54, 6 February 2010 (UTC)
[edit] Sudo
Why do I have to sudo when I am root on my server? Are there any difficulties with running aptitude as root?