Changes
Jump to navigation
Jump to search
====Install Mediawiki====MySql (and update the client): yum install mysql mysql-server Start the server: /etc/init.d/mysqld start And make sure it starts automatically on reboot: /sbin/chkconfig --levels 235 mysqld on Set a root password for the database: mysqladmin -u root password cheit
Install At this point you should configure and test the public key for the ATrpms repository: rpm --import http://packages.atrpms.net/RPM-GPG-KEYwebserver and PhP, which is discussed below.atrpms
Enable the ATrpms repository by adding a file called atrpms.repos to /etc/yum.repos.d/====Install Mediawiki====
[atrpms] name=Red Hat Enterprise Linux 5 - x86_64 - ATrpms baseurl=http://dlThere is no good version of mediawiki available from a yum repo. So you should do this manually.atrpmsIt isn't painful.net/el5-x86_64/atrpms/stable failovermethod=priority # requires stableDetailed instructions (you won't need them) are available from: *[atrpms-testing] name=Red Hat Enterprise Linux 5 - x86_64 - ATrpms testing baseurl=http://dlwww.atrpmsmediawiki.netorg/el5-x86_64wiki/atrpms/testing failovermethod=priority enabled=0 # requires stable and testingInstallation MediaWiki's Installation Page] *[atrpms-bleeding] name=Red Hat Enterprise Linux 5 - x86_64 - ATrpms bleeding baseurl=http://dlwww.atrpmsmediawiki.netorg/el5-x86_64wiki/atrpms/bleeding failovermethod=priority enabled=0Manual:Installing_MediaWiki Mediawiki's Installing MediaWiki Page]
Checking online at [http://packages.atrpms.net/dist/el5/mediawiki/ ATrpms] shows the package contains version 1.15. So do:First change to your home directory (or somewhere 'safe') then
yum install wget http://download.wikimedia.org/mediawiki/1.16/mediawiki-1.16.2.tar.gz
To run Then untar the configuration script through package, either using the --owner option or as a browser, create an alias in Apache's httpd.conf: Alias /wiki "/var/www/wiki" <Directory "/var/www/wiki"> Options Indexes MultiViews FollowSymLinks AllowOverride None Order allow,deny Allow from all </Directory>non-root user to force extracted file ownernship to be other than 1000
====Install MySQL==== su username tar xvzf mediawiki-*.tar.gz sudo su
Install MySql: yum install mysql-serverNow copy the files into the 'right' location and change permissions
Start the server: mkdir /var/www/html/w cp -r mediawiki-1.16.2/* /var/www/html/w/ chmod a+w /var/www/etchtml/init.dw/mysqld startconfig
And make sure it starts automatically on rebootInstall ImageMagick using Yum: /sbin/chkconfig --levels 235 mysqld on
Set a root password for the database: mysqladmin yum install glib glib2 libpng libjpeg libtiff ghostscript freetype ImageMagick ImageMagick-u root password cheitperl
===On Both Machines===
====Mounting bear====
mount -t cifs //bear/ed_egan/ /mnt -o user=ed_egan
for the inclusion into fstab or other more sophisticated approaches there is a [http://wiki.centos.org/TipsAndTricks/WindowsShares Centos help page].
Backup the cp config/LocalSettings.php LocalSettings.php file and copy it up: cp /var/www/wiki/config/chmod 600 LocalSettings.php /var/www/wiki/config/ chown apache LocalSettings.php.bak cp mkdir /varmnt/wwwed/wikiconfigbak cp -r ./config/LocalSettings.php mnt/vared/wwwconfigbak/wiki rm -rf ./LocalSettings.phpconfig
Haas PhD Server Configuration (view source)
Revision as of 19:03, 25 March 2011
, 19:03, 25 March 2011no edit summary
Notable additional packages on pgsql are:
*postgresql.x86_64 8.1.22-1.el5_5.1
==Before we start==
===On Both Machines===
====Mounting bear====
It is very useful to mount your R drive
mkdir /mnt/ed
mount -t cifs //bear/ed_egan/ /mnt/ed -o user=ed_egan
for the inclusion into fstab or other more sophisticated approaches there is a [http://wiki.centos.org/TipsAndTricks/WindowsShares Centos help page].
==Package additions/upgrades/removals==
wget -q -O - http://www.atomicorp.com/installers/atomic | sh
It has PhP version 5.2.17-1.el5.art and MySQL version 5.1.55-1.el5.art.Also install pgp-mysql. yum list php #We were running 5.1.6-27.el5_5.3 yum upgrade php yum install php-mysql
====Install MySQL====
===On Pgsql===
For pgsql:
*Configure Postgre
===On the Wiki Server===
Restart the service:
/etc/init.d/iptables restart
====Test the webserver and PhP====
Browse to http://128.32.66.164/ you should see the test page. Write the following text file to /var/www/html/Test.php:
<?php
phpinfo();
?>
Browse to http://128.32.66.164/Test.php and you should see the PhP version page.
====Configure MediaWiki====
Browse to http:/wiki/128.32.66.164/w/config/index.php (having set an Apache alias above), and set the following setting:
WikiName: HaasPhDWiki
Contact: kimg@haas.berkeley.edu
Admin password and dbase password: cheit
All other setting settings as default(you do have superuser on the dbase so tick that box)
Now move the LocalSettings.php file, change the permissions, and remove the config directory.
You can now view your Wiki at http://128.32.66.164/w/index.php
We will now do the extensions and fine detail configuration.
==Data==
For lamp:
*Import Wiki pages
*Change links to pdfs and repository files