Koozali.org: home of the SME Server

Webcalng install

Offline ajkeane

  • ****
  • 187
  • +0/-0
    • http://keane.co.nz
Webcalng install
« on: March 03, 2007, 11:21:11 AM »
Hi

I am attempting to install webcalng in the opt directory.

I already have it running in an Ibay but want to install it correctly.

I have created a directory in opt called webcal and a directory in webcal called cbi-bin.

I have then installed the ap into the cgi-bin directory.

I have created a custom template and expanded it but the perl script does not run.

This is what I have in the template.

# webcal
Alias /webcal /opt/webcal/cgi-bin
<Directory /opt/webcal/cgi-bin>
    SSLRequireSSL on
    Options ExecCGI
    AllowOverride Authconfig
    order deny,allow
    deny from all
    allow from all
    Satisfy all
</Directory>

Can anyone tell me what I am doing wrong?

Thanks

Tony
...

Offline Normando

  • *
  • 841
  • +2/-1
    • Unixlan
Webcalng install
« Reply #1 on: March 03, 2007, 04:46:59 PM »
First of all make cgi-bin dir executable (777)
Try

Code: [Select]
   Alias /webcal "/opt/webcal"
    ScriptAlias /webcal/cgi-bin/ "/opt/webcal/cgi-bin/"

<Directory /opt/webcal>
    AllowOverride All

    Options MultiViews Indexes FollowSymLinks
    IndexOptions FancyIndexing NameWidth=* SuppressSize SuppressLastModified

</Directory>

# Enable CGI execution for cgi-bin directory.  This is probably not
# necessary if the above ScriptAlias directive is used.
#<Directory /opt/webcal/cgi-bin>
#    Options +ExecCGI
#    <IfModule mod_mime.c>
#        AddHandler cgi-script .cgi
#    </IfModule>
#</Directory>



Offline ajkeane

  • ****
  • 187
  • +0/-0
    • http://keane.co.nz
Webcalng install
« Reply #2 on: March 03, 2007, 09:34:41 PM »
Firstly thank you for the assistance.

I have loaded your altered config and this has not helped.

When I try to execute the script I am still just seeing the code from the script.

Any further assistance will be appreciated.

Tony
...

Offline Normando

  • *
  • 841
  • +2/-1
    • Unixlan
Webcalng install
« Reply #3 on: March 03, 2007, 11:29:47 PM »
Try uncomment these lines.


From:

Code: [Select]
#<Directory /opt/webcal/cgi-bin>
#    Options +ExecCGI
#    <IfModule mod_mime.c>
#        AddHandler cgi-script .cgi
#    </IfModule>
#</Directory>



To:

Code: [Select]
<Directory /opt/webcal/cgi-bin>
    Options +ExecCGI
    <IfModule mod_mime.c>
        AddHandler cgi-script .cgi
    </IfModule>
</Directory>


and in your browser see at yourdomain/webcal/cgi-bin/main_script

Offline ajkeane

  • ****
  • 187
  • +0/-0
    • http://keane.co.nz
Webcalng install
« Reply #4 on: March 04, 2007, 12:16:28 AM »
I have tried that and then checked the httpd error logs I am getting the following back.

[Sun Mar 04 11:52:35 2007] [warn] The ScriptAlias directive in /etc/httpd/conf/httpd.conf at line 1636 will probably never match because it overlaps an earlier Alias.

I cannot access the server manager unless I remove the custom template when it has the modification you have suggested.

I get 403 forbidden errors in the browser.

Thanks
...

Offline Normando

  • *
  • 841
  • +2/-1
    • Unixlan
Webcalng install
« Reply #5 on: March 04, 2007, 12:32:30 AM »
This night I try to install webcal and tell you what happens.


See you later

Offline Normando

  • *
  • 841
  • +2/-1
    • Unixlan
Webcalng install
« Reply #6 on: March 04, 2007, 09:20:53 AM »
Please, create a dir /opt/webcal

Then install using perl install.pl under this directory, not under /cgi-bin/

when finish create a custom template, expand, and restart apache.

Code: [Select]
Alias /webcal  /opt/webcal
<Directory /opt/webcal>
    Options +ExecCGI +Indexes +FollowSymLinks
    AllowOverride All
    SetHandler cgi-script
    allow from all
</Directory>


Code: [Select]
expand-template /etc/httpd/conf/httpd.conf
/etc/init.d/httpd-e-smith restart


Then create a symlink for webcalng.pl named index.pl

When finish go to your domain/webcal/index.pl

You can investigate to go directly to /webcal only, and get /webcal/index.pl
Apache has a directive named DirectoryIndex.
Anyway, I have installed and run ok. I post the main part of my install.log to help you.

Code: [Select]
Starting install: Sun Mar  4 04:56:42 2007

Welcome to the webcalng install script!

Enter the path to Perl.
[/usr/bin/perl]:

Enter the uid or username that your webserver is runnnig as.
[www]:

Enter the fully qualified hostname.domainname of your webserver.
[www.xxxx.com.ar]:

Enter the full path to where you want webcalng installed.
[/opt/webcal]:

Enter the URL that clients will use to access webcalng, not including
the webserver hostname.
[/index.pl]: /webcal/index.pl

Install the webcalng plugin for SquirrelMail (yes,no).
[no]:

Enter the type of authentication you would like to use (session,htaccess).
[session]:

Enter the hostname of a mailhost that the reminder script can use to relay
email through.
[localhost]:

Setup the cron job needed to use webcalng reminders and notices (yes,no).
[no]:

Enter the database type that you will use for webcalng storage
(flat,mysql,postgresql,oracle).
[flat]:

Enter the path to a directory that can be used for webcalng storage.
This directory should not be inside any directory that could be
accessed by your webserver.
[/var/webcalng]:


Checking Perl modules:
                   Checking for CGI ... OK.
                 Checking for Fcntl ... OK.
        Checking for HTML::Template ... OK.
           Checking for Time::Local ... OK.
             Checking for Net::SMTP ... OK.
           Checking for Digest::MD5 ... OK.


Ready to install with the following configuration:

          httpd_user www
           http_host www.xxxx.com.ar
             install /opt/webcal
                 url /webcal/index.pl
           auth_type session
            mailhost localhost
          setup_cron no
              db_dir /var/webcalng
             db_type flat
              sqmail no
         ftp_install 0

Continue with install using these values (yes,no).


I need to install the perl module HTML::Template with cpan.

See you

Offline ajkeane

  • ****
  • 187
  • +0/-0
    • http://keane.co.nz
Webcalng install
« Reply #7 on: March 05, 2007, 08:39:06 AM »
Thanks you for your assistance that has got me going.

I appreciate your help and now owe you a  :pint:

I have now also added the lines to force ssl into the template for the webcal.

Thanks again

Tony
...

Offline Normando

  • *
  • 841
  • +2/-1
    • Unixlan
Webcalng install
« Reply #8 on: March 05, 2007, 03:02:18 PM »
Enjoy  :)