MoodleZope
3396
Comment:
|
3847
|
Deletions are marked like this. | Additions are marked like this. |
Line 42: | Line 42: |
Create a file named azi.conf in /etc/apache2/sites-available with the following: {{{ <VirtualHost 158.59.195.113:80> ServerName linus.yhspatriot.net ServerAdmin jeff@elkner.net ProxyRequests off <Proxy *> Order deny,allow Allow from all </Proxy> ProxyPass / http://158.59.195.113:8080/ ProxyPassReverse / http://158.59.195.113:8080/ ProxyPass /misc_ http://158.59.195.113:8080/misc_ ProxyPassReverse /misc_ http://158.59.195.113:8080/misc_ ProxyPass /p_ http://158.59.195.113:8080/p_ ProxyPassReverse /p_ http://158.59.195.113:8080/p_ </VirtualHost> |
0. Edit {{{/etc/apache2/apache2.conf}}} adding the following line immediately below {{{# Include the virtual host configurations}}}: {{{NameVirtualHost 158.59.195.113:80}}} |
Line 60: | Line 46: |
<VirtualHost 158.59.195.113:80> ServerName mysql.yhspatriot.net ServerAdmin jeff@elkner.net ProxyRequests off <Proxy *> Order deny,allow Allow from all </Proxy> |
0. Create a file named azi.conf in /etc/apache2/sites-available with the following: {{{ <VirtualHost 158.59.195.113:80> ServerName linus.yhspatriot.net ServerAdmin jeff@elkner.net ProxyRequests off <Proxy *> Order deny,allow Allow from all </Proxy> ProxyPass / http://158.59.195.113:8080/ ProxyPassReverse / http://158.59.195.113:8080/ ProxyPass /misc_ http://158.59.195.113:8080/misc_ ProxyPassReverse /misc_ http://158.59.195.113:8080/misc_ ProxyPass /p_ http://158.59.195.113:8080/p_ ProxyPassReverse /p_ http://158.59.195.113:8080/p_ </VirtualHost> |
Line 69: | Line 64: |
DocumentRoot /var/www/phpmyadmin/ | <VirtualHost 158.59.195.113:80> ServerName mysql.yhspatriot.net ServerAdmin jeff@elkner.net ProxyRequests off <Proxy *> Order deny,allow Allow from all </Proxy> |
Line 71: | Line 73: |
Options +FollowSymLinks | DocumentRoot /var/www/phpmyadmin/ |
Line 73: | Line 75: |
<IfModule mod_php4.c> php_flag magic_quotes_gpc On php_flag magic_quotes_runtime Off php_flag file_uploads On php_flag short_open_tag On php_flag session.auto_start Off php_flag session.bug_compat_warn Off |
Options +FollowSymLinks |
Line 81: | Line 77: |
php_value upload_max_filesize 2M php_value post_max_size 2M </IfModule> |
<IfModule mod_php4.c> php_flag magic_quotes_gpc On php_flag magic_quotes_runtime Off php_flag file_uploads On php_flag short_open_tag On php_flag session.auto_start Off php_flag session.bug_compat_warn Off |
Line 85: | Line 85: |
<IfModule mod_dir.c> DirectoryIndex index.php </IfModule> </VirtualHost> |
php_value upload_max_filesize 2M php_value post_max_size 2M </IfModule> <IfModule mod_dir.c> DirectoryIndex index.php </IfModule> </VirtualHost> |
Line 91: | Line 95: |
<VirtualHost 158.59.195.113:80> ServerName moodle.yhspatriot.net ServerAdmin jeff@elkner.net ProxyRequests off <Proxy *> Order deny,allow Allow from all </Proxy> |
<VirtualHost 158.59.195.113:80> ServerName moodle.yhspatriot.net ServerAdmin jeff@elkner.net ProxyRequests off <Proxy *> Order deny,allow Allow from all </Proxy> |
Line 100: | Line 104: |
DocumentRoot /var/www/moodle/ | DocumentRoot /var/www/moodle/ |
Line 102: | Line 106: |
Options +FollowSymLinks | Options +FollowSymLinks |
Line 104: | Line 108: |
<IfModule mod_php4.c> php_flag magic_quotes_gpc On php_flag magic_quotes_runtime Off php_flag file_uploads On php_flag short_open_tag On php_flag session.auto_start Off php_flag session.bug_compat_warn Off |
<IfModule mod_php4.c> php_flag magic_quotes_gpc On php_flag magic_quotes_runtime Off php_flag file_uploads On php_flag short_open_tag On php_flag session.auto_start Off php_flag session.bug_compat_warn Off |
Line 112: | Line 116: |
php_value upload_max_filesize 2M php_value post_max_size 2M </IfModule> |
php_value upload_max_filesize 2M php_value post_max_size 2M </IfModule> |
Line 116: | Line 120: |
<IfModule mod_dir.c> DirectoryIndex index.php </IfModule> </VirtualHost> }}} |
<IfModule mod_dir.c> DirectoryIndex index.php </IfModule> </VirtualHost> }}} |
Goal
To run moodle (http://moodle.org/) and zope2.7 (http://www.zope.org/) on port 80 of our school computer science web server (http://linus.yhspatriot.net). We are behind a firewall with only port 80 open, so I needed to setup virtual hosting with apache2 to make this work. I wanted linus.yhspatriot.net to point to a zope2.7 instance, and moodle.yhspatriot.net to point to a moodle instance. I found it convenient to have mysql.yhspatriot.net point to mysql-admin as well.
Setting up the server
- install ubuntu 5.04 server.
edit /etc/network/interfaces for static ip address by changing the primary interface to:
# The primary network interface iface eth0 inet static address 158.59.195.113 netmask 255.255.252.0 gateway 158.59.192.1
edit /etc/apt/sources.list removing cdrom source at top and uncommenting universe sources.
do the apt-get dance (apt-get update and apt-get upgrade).
- install the following using apt-get:
- ssh
- apache2
- mysql-server
- phpmyadmin
Configuring Apache Modules
- As root, run the following:
ln -s /etc/apache2/mods-available/proxy.conf /etc/apache2/mods-enabled/proxy.conf
Repeat with proxy_connect.load and proxy.load
Installing moodle
Installing zope2.7
Configuring virtual hosts
Edit /etc/apache2/apache2.conf adding the following line immediately below # Include the virtual host configurations:
NameVirtualHost 158.59.195.113:80
- Create a file named azi.conf in /etc/apache2/sites-available with the following:
<VirtualHost 158.59.195.113:80> ServerName linus.yhspatriot.net ServerAdmin jeff@elkner.net ProxyRequests off <Proxy *> Order deny,allow Allow from all </Proxy> ProxyPass / http://158.59.195.113:8080/ ProxyPassReverse / http://158.59.195.113:8080/ ProxyPass /misc_ http://158.59.195.113:8080/misc_ ProxyPassReverse /misc_ http://158.59.195.113:8080/misc_ ProxyPass /p_ http://158.59.195.113:8080/p_ ProxyPassReverse /p_ http://158.59.195.113:8080/p_ </VirtualHost> <VirtualHost 158.59.195.113:80> ServerName mysql.yhspatriot.net ServerAdmin jeff@elkner.net ProxyRequests off <Proxy *> Order deny,allow Allow from all </Proxy> DocumentRoot /var/www/phpmyadmin/ Options +FollowSymLinks <IfModule mod_php4.c> php_flag magic_quotes_gpc On php_flag magic_quotes_runtime Off php_flag file_uploads On php_flag short_open_tag On php_flag session.auto_start Off php_flag session.bug_compat_warn Off php_value upload_max_filesize 2M php_value post_max_size 2M </IfModule> <IfModule mod_dir.c> DirectoryIndex index.php </IfModule> </VirtualHost> <VirtualHost 158.59.195.113:80> ServerName moodle.yhspatriot.net ServerAdmin jeff@elkner.net ProxyRequests off <Proxy *> Order deny,allow Allow from all </Proxy> DocumentRoot /var/www/moodle/ Options +FollowSymLinks <IfModule mod_php4.c> php_flag magic_quotes_gpc On php_flag magic_quotes_runtime Off php_flag file_uploads On php_flag short_open_tag On php_flag session.auto_start Off php_flag session.bug_compat_warn Off php_value upload_max_filesize 2M php_value post_max_size 2M </IfModule> <IfModule mod_dir.c> DirectoryIndex index.php </IfModule> </VirtualHost>
MoodleZope (last edited 2008-08-06 16:24:07 by localhost)