09/23/05 michael reavey step one Koha on Slackware 10.1
I found that the default apache 1.3 used on Slack 10.1 did not like httpd.conf. I decided to install a newer version of apache
To solve the problem I downloaded apache2 from the apache web site. There are many things to download on apache2 so I googled download apache and took the first hit at apache.org. The one you want is apache2 httpd server 2.0.54tar.gz I downloaded it and here is the sequence of commands I used.
$ tar -zxvf httpd-2.0.54.tar.gz $cd httpd-2.0.54 $./configure $su to become superuser root
At this point you will probably want to test the original install before you make any changes so
open your browser and open the URL http://localhost If all is set up properly you will see an apache splash screen Congradualtions You are 90% finished.
Below you'll find a sample virtual host setup I use. You'll need the section that starts with listen and the virtual host definitions. Unless you are running your server on a lan behind a gateway you will need to change the addresses from 192.168.3.33:xxxx to localhost:xxxx, localhost:xxxx. xxxx is the port number the httpd deamon will listen to for a service request.
Note that I'm listening on different ports than the vanila koha of 80 and 8080 That is because I have another server using those port numbers. If you need help with this you can email me or the people on the mail-server are extremely helpful.
ports to listen to for Koha this is what I pasted to the end of the httpd.conf file that is the very end last line and then this.
cut below this line and paste, please cut and paste from the edit box you do not want the wiki ? and other syntax you see here
when you make changes to /usr/local/apache2/conf/httpd.conf you need to stop and resart the server like this /usr/local/apache2/apachectl stop and then /usr/local/apache2/apachectl start It's a good idea to clear your browser cache too.
Now open your favorite editor and copy and paste what's below to your httpd.conf file. here is the command to edit the file using the emacs editor
Listen 8001 Listen 8081
<VirtualHost 192.168.3.33:8001>
ServerAdmin mrmrmr50@rediffmail.com DocumentRoot /usr/local/koha/opac/htdocs ServerName localhost.localdomain ScriptAlias /cgi-bin/koha/ /usr/local/koha/opac/cgi-bin/ ErrorLog logs/opac-error_log TransferLog logs/opac-access_log SetEnv PERL5LIB "/usr/local/koha/intranet/modules" #SetEnv KOHA_CONF "/etc/koha.conf"
</VirtualHost>
#KOHA's INTRANET Configuration <VirtualHost 192.168.3.33:8081>
ServerAdmin mrmrmr50@rediffmail.com DocumentRoot /usr/local/koha/intranet/htdocs ServerName localhost.localdomain ScriptAlias /cgi-bin/koha/ "/usr/local/koha/intranet/cgi-bin/" ErrorLog logs/koha-error_log TransferLog logs/koha-access_log SetEnv PERL5LIB "/usr/local/koha/intranet/modules" # SerEnv KOHA_CONF "/etc/koha.conf"
</VirtualHost>
michael reavey mrmrmr50@rediffmail.com