-
Notifications
You must be signed in to change notification settings - Fork 2
Sysadmin grodoudou install2 10 11 2011
Yannouk edited this page Jul 5, 2012
·
1 revision
Made by : bedhed
Date: 10/11/2011
Currently applied on : grodoudou
Install of Grodoudou, going through steps already documented before missing from first part.
- user : root
- host : ns225381.ovh.net
- date : 10/11/11 21:11
- curpath : /root
- [email protected]# aptitude install git
- [email protected]# ssh keygen -t rsa -C [email protected]
- [email protected]# ssh-keygen -t rsa -C [email protected]
- [email protected]# git config --global user.name "Grodoudou Root"
- [email protected]# git config --global user.email "[email protected]"
- [email protected]# vi /root/.ssh/id_rsa.pub
- [email protected]# cd /root/
- [email protected]# mkdir seizam
- [email protected]# cd seizam/
- [email protected]# git clone [email protected]:Seizam/seizamcore.git
- [email protected]# iptables -L
- [email protected]# iptables -A INPUT -i eth0 -p icmp --source 176.31.225.250 -j ACCEPT
- [email protected]# iptables -L -v
- [email protected]# iptables-save -c > /etc/iptables.rules
- [email protected]# aptitude install php-mail
- [email protected]# cd /usr/share/
- [email protected]# mkdir seizam
- [email protected]# cd seizam/
- [email protected]# cp -R /root/seizam/seizamcore/WikiZam/ wikizam-0.5.1
- [email protected]# ls
- [email protected]# mv wikizam-0.5.1/ServerSettings.php .
- [email protected]# mv wikizam-0.5.1/LocalSettings.php .
- Edit /etc/php5/apache2/php.ini, see [1]
- [email protected]# apache2ctl graceful
- [email protected]# ln -s /usr/share/seizam/wikizam-0.5.1/ /var/www/w
- [email protected]# ls
- [email protected]# vi ServerSettings.php
- [email protected]# vi ServerSettings.php
- [email protected]# rm /var/www/w
- [email protected]# vi ServerSettings.php
- [email protected]# cp ServerSettings.php wikizam-0.5.1/
- [email protected]# cp LocalSettings.php wikizam-0.5.1/
- Edit /etc/apache2/apache2.conf, see [2]
- [email protected]# vi ServerSettings.php
- Edit /etc/apache2/apache2.conf, see [3]
- [email protected]# mkdir /var/seizam
- [email protected]# mkdir /var/seizam/userFilesLieHere
- [email protected]# rm /var/seizam/userFilesLieHere/
- [email protected]# rmdir /var/seizam/userFilesLieHere/
- [email protected]# vi ServerSettings.php
- [email protected]# cp ServerSettings.php wikizam-0.5.1/
- [email protected]# top
- [email protected]# top
- [email protected]# man top
- [email protected]# top
- [email protected]# top
- [email protected]# cd /mnt/files/
- [email protected]# mkdir seizam
- [email protected]# cd seizam/
- [email protected]# mkdir userFilesAreHere
- [email protected]# ls -lA
- [email protected]# chgrp www-data userFilesAreHere/
- [email protected]# ls -lA
- [email protected]# chmod 660 userFilesAreHere/
- [email protected]# ls -lA
- [email protected]# cd userFilesAreHere/
- [email protected]# echo 'php_admin_flag engine off' > .htaccess
- [email protected]# ls -lA
- [email protected]# vi .htaccess
- [email protected]# chmod 444 .htaccess
- [email protected]# cd ..
- [email protected]# ln -s userFilesAreHere/ /var/seizam/userFilesAreThere
- [email protected]# cd /var/seizam/
- [email protected]# ls
- [email protected]# ls -lA
- [email protected]# chgrp www-data userFilesAreThere
- [email protected]# cd /usr/share/seizam/
- [email protected]# ln -s wikizam-0.5.1/ /var/seizam/w
[1]\* Edit /etc/php5/apache2/php.ini
--- old 2011-11-10 21:34:17.000000000 +0100 +++ new 2011-11-10 21:35:25.000000000 +0100 @@ -1852 +1852,3 @@ ; End: +; extend suhosin.get.max_value_length from 512 to 1024 as advised by MW +suhosin.get.max_value_length=1024
[2]\* Edit /etc/apache2/apache2.conf
--- old 2011-11-10 21:59:51.000000000 +0100 +++ new 2011-11-10 22:01:26.000000000 +0100 @@ -230 +230,5 @@ Include sites-enabled/ + +# Alias to put wikizam at root, as seen on mediawiki.org/wiki/Manual:Short_URL +<IfModule mod_alias.c> +</ifmodule>
[3]\* Edit /etc/apache2/apache2.conf
--- old 2011-11-10 22:01:55.000000000 +0100 +++ new 2011-11-10 22:12:39.000000000 +0100 @@ -233,2 +233,10 @@ <IfModule mod_alias.c> + Alias /robots.txt /var/www/robots.txt + Alias /favicon.ico /var/www/favicon.ico + Alias /skins /var/seizam/w/skins + Alias /api.php /var/seizam/w/api.php/ + Alias /img_auth.php /var/seizam/w/img_auth.php/ + Alias /load.php /var/seizam/w/load.php/ + Alias /opensearch_desc.php /var/seizam/w/opensearch_desc.php/ + Alias / /var/seizam/w/index.php/ </ifmodule>