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

  1. make && make install
  2. updatedb
  3. locate httpd.conf #You are looking for /usr/local/apache2/conf/apache2.conf
  4. cd /usr/local/apache2/conf/httpd.conf
  5. cp httpd.conf httpdorig.conf # I make a copy of the original config file

At this point you will probably want to test the original install before you make any changes so

  1. /usr/local/apache2/apachectl start

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

  1. emacs /usr/local/apache2/conf/httpd.conf

Listen 8001 Listen 8081

  1. Listen 9673
  2. NameVirtualHost is used by one of the optional #configurations detailed below
  3. <VirtualHost 192.168.3.33:9673>
  4. ServerAdmin mrmrmr50@rediffmail.com
  5. DcumentRoot /var/www/html
  6. ServerName localhost
  7. ScriptAlias /cgi-bin/koha/ /usr/local/koha/opac/cgi-bin/
  8. ErrorLog logs/opac-error_log
  9. TransferLog logs/opac-access_log
  10. SetEnv PERL5LIB ”/usr/local/koha/intranet/modules”
  1. KOHA's OPAC Configuration

<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

 
slackware_10.1.txt · Last modified: 2006/04/04 09:23 (external edit)
 
Except where otherwise noted, content on this wiki is licensed under the following license:CC Attribution-Noncommercial-Share Alike 3.0 Unported
Recent changes RSS feed Donate Powered by PHP Valid XHTML 1.0 Valid CSS Driven by DokuWiki