-
Notifications
You must be signed in to change notification settings - Fork 2
Sysadmin papilusion dnsbugzilla 25 01 2012
Yannouk edited this page Jul 5, 2012
·
1 revision
- user : root
- host : papilusion.reverse.seizam.com
- date : 25/01/12 11:15
- curpath : /root
- Edit /etc/apache2/sites-enabled/010-localhost-admin-tools, see [1]
- [email protected]# cd /etc/apache2/
- [email protected]# ls -l sites-available/
- [email protected]# less sites-available/papilusion
- [email protected]# cp sites-available/papilusion sites-available/bugzilla
- Edit /etc/apache2/sites-available/bugzilla, see [2]
- [email protected]# a2ensite
- [email protected]# apache2ctl configtest
- [email protected]# mv sites-enabled/bugzilla sites-enabled/015-bugzilla
- [email protected]# /etc/init.d/apache2 reload
- [email protected]# ls -l sites-enabled/
- Edit /etc/hosts, see [3]
- [email protected]# cp /etc/network/interfaces /etc/network/interfaces.save1
- Edit /etc/network/interfaces, see [4]
- [email protected]# /etc/init.d/networking restart
- [email protected]# dmesg
- [email protected]# /etc/init.d/networking restart
- [email protected]# /etc/init.d/networking restart
- [email protected]# tail -f /var/log/apache2/bugzilla.error.log
- Edit /etc/apache2/sites-enabled/015-bugzilla, see [5]
- [email protected]# apache2ctl configtest
- [email protected]# /etc/init.d/apache2 reload
[1]\* Edit /etc/apache2/sites-enabled/010-localhost-admin-tools
--- old 2012-01-25 11:15:17.000000000 +0100 +++ new 2012-01-25 11:16:02.000000000 +0100 @@ -104,19 +104,2 @@ - # BUGZILLA - # -------- - - Alias /bugzilla /var/bugzilla - - <Directory /var/bugzilla> - Options +ExecCGI - AllowOverride Limit - DirectoryIndex index.cgi - AddHandler cgi-script .cgi - - Order deny,allow - Deny from all - Allow from 127.0.0.1 - </directory> - -
[2]\* Edit /etc/apache2/sites-available/bugzilla
--- old 2012-01-25 11:29:27.000000000 +0100 +++ new 2012-01-25 11:37:11.000000000 +0100 @@ -4,5 +4,3 @@ - ServerName papilusion.seizam.com - ServerAlias papilusion.seizam.com - ServerAlias papilusion.reverse.seizam.com + ServerName bugzilla.seizam.com @@ -17,69 +15,17 @@ - <Directory /var/seizam> - Options Indexes FollowSymLinks MultiViews - AllowOverride None - Order allow,deny - allow from all - </directory> - - <Directory /var/seizam/files/private> - AuthType Basic - AuthName "only for the winner :)" - AuthUserFile /var/seizam/files/private/.htpasswd - Require valid-user - AllowOverride None - </directory> + <Directory /var/bugzilla> + Options +ExecCGI + AllowOverride Limit + DirectoryIndex index.cgi + AddHandler cgi-script .cgi - # Entrance for Electronic Payment back interface (EPTBack).The - # bank needs a static .php file with many parameters (phone/mail - # them to change adress). WikiZam needs a special page - # (index.php?title=Special:EPTBack). Mod_rewrite creates a proxy - # to map bank's needs to WikiZam needs. Flags: P (Proxy, use - # mod_proxy), NE (No Escape [for %]), QSA (Query String Added - # [Passes Query from request to target]) - <IfModule mod_rewrite.c> - RewriteEngine On - RewriteRule ^/payment/Phase2Retour.php http://papilusion.seizam.com:80/index.php?title=Special:EPTBack [P,NE,QSA] - </ifmodule> + Order allow,deny + Allow from all + </directory> <IfModule mod_alias.c> - - # Shunt to get directly to files folder - Alias /files /var/seizam/files - - # Default apache2 mod_alias directive, wich enable access to system icons - # (need to be repeted here, if not the last / alias override it) - Alias /icons/ "/usr/share/apache2/icons/" - - # Test Paiement - ScriptAlias /payment /var/seizam/payment - ScriptAlias /Lise /var/seizam/lise/index.php - - # Main aliases to put wikizam at root, as seen on mediawiki.org/wiki/Manual:Short_URL - Alias /extensions /var/seizam/w/extensions - Alias /resources /var/seizam/w/resources - Alias /skins /var/seizam/w/skins - Alias /robots.txt /var/seizam/w/robots.txt - Alias /favicon.ico /var/seizam/w/favicon.ico - ScriptAlias /img_auth.php /var/seizam/w/img_auth.php/ - ScriptAlias /load.php /var/seizam/w/load.php/ - ScriptAlias /api.php /var/seizam/w/api.php/ - ScriptAlias / /var/seizam/w/index.php/ - + Alias / /var/bugzilla </ifmodule> - # Configuring php for seizam - <IfModule mod_php5.c> - - # 200 Mb max for file uploads - php_value upload_max_filesize 209715200 - php_value post_max_size 209715200 - - # 10 minutes execution time (needed for big uploads) - php_value max_execution_time 600 - - </ifmodule> - - - ErrorLog ${APACHE_LOG_DIR}/error.log + ErrorLog ${APACHE_LOG_DIR}/bugzilla.error.log @@ -87,5 +33,5 @@ # alert, emerg. - LogLevel debug + LogLevel warn - CustomLog ${APACHE_LOG_DIR}/access.log combined + CustomLog ${APACHE_LOG_DIR}/bugzilla.access.log combined
[3]\* Edit /etc/hosts
--- old 2012-01-25 11:42:19.000000000 +0100 +++ new 2012-01-25 11:46:06.000000000 +0100 @@ -5,2 +5,3 @@ 94.23.214.219 papilusion.reverse.seizam.com papilusion +87.98.186.132 bugzilla.seizam.com bugzilla # ip failover # The following lines are desirable for IPv6 capable hosts
[4]\* Edit /etc/network/interfaces
--- old 2012-01-25 11:47:41.000000000 +0100 +++ new 2012-01-25 11:53:59.000000000 +0100 @@ -18 +18,3 @@ post-down /sbin/ifconfig eth0:1 down +post-up /sbin/ifconfig eth0:2 87.98.186.132 netmask 255.255.255.255 broadcast 87.98.186.132 +post-down /sbin/ifconfig eth0:2 down
[5]\* Edit /etc/apache2/sites-enabled/015-bugzilla
--- old 2012-01-25 11:59:54.000000000 +0100 +++ new 2012-01-25 12:02:13.000000000 +0100 @@ -26,3 +26,3 @@ <IfModule mod_alias.c> - Alias / /var/bugzilla + Alias / /var/bugzilla/ </ifmodule>