"Page not found" when accessing "webmail"

Discuss installation of Scalix software

Moderators: ScalixSupport, admin

tonysu
Posts: 69
Joined: Sun Nov 09, 2008 1:58 am

Postby tonysu » Mon Nov 10, 2008 11:55 pm

schmoe90 wrote:Go to http://www.scalix.com/community/downloa ... equest.php, fill in the form, and you can get to everything.


The link is invalid, are you trying to reference the regular Community Edition downloads page? if so, I've already been through that, no version except the latest is available for download.

A suggestion: Although it's fine to offer the latest version by default, for situations like this when the current release is suspect it would be nice for people to optionally download archive versions. An accompanying changelog for versions would also be helpful.

It seems that this thread has revealed an issue that probably exists for more than a week, forgive me since I am so new to this Project but is someone assigned to work on this webmail issue yet (and maybe the other problems I raised when installing on SuSE 11 although I'm surprised no one else seems to have posted about faulty SuSE 11 isntalls)?

jhinrichs
Posts: 13
Joined: Thu Aug 17, 2006 11:50 am

Postby jhinrichs » Tue Nov 11, 2008 2:27 am

At the bottom of the Community Edition Downloads page there is a very, very small "archive" link. There you can get older versions.

tonysu
Posts: 69
Joined: Sun Nov 09, 2008 1:58 am

Postby tonysu » Tue Nov 18, 2008 2:09 am

Howdy all,
I decided to take another run at this issue.

Instead of deploying on SuSE11, I'm now trying on CentOS 5.
First diff is that the Apache default page now appears in the main website's document root, but as others have noted the "webmail" viirtual directory is inaccessible. I suspect this may simply be a virtual directory mapping problem but am not familiar with configuring Flash web pages and am only somewhat familiar with Apache configuration..

Can anyone describe the following so that I can try to configure manually?

- Confgiuring a virtual directory to the proper location. I'm guessing that the virtual directory should point to /opt/scalix/web

- Does a default document need to be configured?

Thx.

les
Scalix Star
Scalix Star
Posts: 819
Joined: Thu Feb 23, 2006 10:18 am
Location: Sydney, Australia

Postby les » Wed Nov 19, 2008 6:04 am

tonysu wrote:Howdy all,
I decided to take another run at this issue.

Instead of deploying on SuSE11, I'm now trying on CentOS 5.
First diff is that the Apache default page now appears in the main website's document root, but as others have noted the "webmail" viirtual directory is inaccessible. I suspect this may simply be a virtual directory mapping problem but am not familiar with configuring Flash web pages and am only somewhat familiar with Apache configuration..

Can anyone describe the following so that I can try to configure manually?

- Confgiuring a virtual directory to the proper location. I'm guessing that the virtual directory should point to /opt/scalix/web

- Does a default document need to be configured?

Thx.


If you used the rhel/centos based package and installed using the default install script then it should all be done for you out of the box. scalix-tomcat gets installed with java and integrated into apache.

Initially apache will have the default page in document root.

if you use http://yourservername/webmail/ you should get to SWA.

If you want to automatically redirect to webmail by default create /var/www/html/index.html with the following line.....

<meta HTTP-EQUIV="REFRESH" content="0; url=/webmail">

as for flash, you shouldn't need that for SWA to work but if you setup the Dag Apt Repository, http://dag.wieers.com/apt/ you can do....

yum -y install flash-plugin

The only other things that might break

firewall is on and blocking.
default virtual folders are restricted to your hostname address, see /etc/opt/scalix-tomcat/connector/ajp/instance-mail.conf
and
/etc/opt/scalix-tomcat/connector/jk/instance-mail.conf
pay particular attention to the top VirtualHost lines, you may want to use *:80 to listen on all ports.

I hope that helps.

If you are still having problems we'll need some more specific info about how you installed, whats in error logs and config files etc.
/var/log/httpd/error_log is a good place to start looking for problems.
Regards,

Les Stott

tonysu
Posts: 69
Joined: Sun Nov 09, 2008 1:58 am

Postby tonysu » Wed Nov 19, 2008 10:28 pm

Howdy again,
Been looking at this further,

Sorry about my minor error referencing Flash when it's just java code (WAR).

Investtigating further, it looks likely that at least the Tomcat enivronmentals aren't set right...

Whenever I "echo $TOMCAT_HOME" or echo "$CATALINA_HOME" or "echo $CATALINA_BASE" the Root User's home directory is returned. I'm pretty sure I should be returning the parentfolder to the appropriate webapps directory holding the web content.

Can someone describe the manual "set" commands necessary to properly initialize the Tomcat environmentals?

Thx.

les
Scalix Star
Scalix Star
Posts: 819
Joined: Thu Feb 23, 2006 10:18 am
Location: Sydney, Australia

Postby les » Wed Nov 19, 2008 10:40 pm

tonysu wrote:Howdy again,
Been looking at this further,

Sorry about my minor error referencing Flash when it's just java code (WAR).

Investtigating further, it looks likely that at least the Tomcat enivronmentals aren't set right...

Whenever I "echo $TOMCAT_HOME" or echo "$CATALINA_HOME" or "echo $CATALINA_BASE" the Root User's home directory is returned. I'm pretty sure I should be returning the parentfolder to the appropriate webapps directory holding the web content.

Can someone describe the manual "set" commands necessary to properly initialize the Tomcat environmentals?

Thx.


You don't need these to be set at all for a user, they do need to be set for tomcat though.

The installer script does it all for you. If your restart scalix-tomcat then it will show you what its using. i.e.

# service scalix-tomcat restart
Instance (mail) is running
Stopping Tomcat service (mail): Using CATALINA_BASE: /var/opt/scalix/xxl/tomcat
Using CATALINA_HOME: /opt/scalix-tomcat
Using CATALINA_TMPDIR: /var/opt/scalix/xx/tomcat/temp
Using JRE_HOME:
[ OK ]
Starting Tomcat service (mail): Using CATALINA_BASE: /var/opt/scalix/xx/tomcat
Using CATALINA_HOME: /opt/scalix-tomcat
Using CATALINA_TMPDIR: /var/opt/scalix/xx/tomcat/temp
Using JRE_HOME:
[ OK ]
of course xx will be different in your case.

If your paths are vastly different re-run the installer and choose reconfigure.
Regards,

Les Stott

tonysu
Posts: 69
Joined: Sun Nov 09, 2008 1:58 am

Postby tonysu » Wed Nov 19, 2008 11:08 pm

Thx,
My output is the same as yours.

The next most likely issue I'm looking at is that the webapps directory isn't set right.

Do you know the filename of the Tomcat config file that specifies the webmail virtual directory?

les
Scalix Star
Scalix Star
Posts: 819
Joined: Thu Feb 23, 2006 10:18 am
Location: Sydney, Australia

Postby les » Wed Nov 19, 2008 11:16 pm

tonysu wrote:Thx,
My output is the same as yours.

The next most likely issue I'm looking at is that the webapps directory isn't set right.

Do you know the filename of the Tomcat config file that specifies the webmail virtual directory?



see /etc/opt/scalix-tomcat/connector/ajp/instance-<your-hostname>l.conf
and
/etc/opt/scalix-tomcat/connector/jk/instance-<your-hostname>.conf
pay particular attention to the top VirtualHost lines, you may want to use *:80 to listen on all ports.

What do you have in those files?
Regards,

Les Stott

tonysu
Posts: 69
Joined: Sun Nov 09, 2008 1:58 am

Postby tonysu » Wed Nov 19, 2008 11:38 pm

I remember finding these files but didn't see how they might be relevant because I didn't see anything describing directories.

Here is one of the files, the other is same/similar, this is after your suggestion to support "all ports" although no change in result

Code: Select all

<VirtualHost server.domainname:*.80>
   Include /etc/opt/scalix-tomcat/connector/ajp/app-servername.*.conf
</VirtualHost>
<VirtualHost server.domainname:443>
   SSLEngine on
   SSLProtocol all -SSLv2
   SSLCiperSuite All:!ADH:EXPORT: !SSLV2:RC4+RSA:=HIGH:+MEDIUM:+LOW
   SSLcerrtificateFile /etc/pki/tls/certs/localhost.crt
   SSLCertificateKeyFile /etc/pki/tls/private/localhost.key
   Include /etc/opt/scalix-tomcat/connector/ajp/app-servername.*.conf
<VirtualHost>

les
Scalix Star
Scalix Star
Posts: 819
Joined: Thu Feb 23, 2006 10:18 am
Location: Sydney, Australia

Postby les » Wed Nov 19, 2008 11:55 pm

tonysu wrote:I remember finding these files but didn't see how they might be relevant because I didn't see anything describing directories.

Here is one of the files, the other is same/similar, this is after your suggestion to support "all ports" although no change in result

Code: Select all

<VirtualHost server.domainname:*.80>


Its not so much directories that are a problem. Its just that the above means you can only browse to http://server.domainname/sac or http://server.domainname/webmail

If you're trying from http://127.0.0.1 or http://192.168.1.1 you need the *:80. if you make changes then you need to restart httpd and scalix-tomcat.

In /etc/httpd/conf.d/ you should see....

-rw-r--r-- 1 root root 566 Nov 13 02:44 proxy_ajp.conf
-rw-r--r-- 1 root root 1229 Aug 7 18:50 scalix-tomcat-connector.conf
lrwxrwxrwx 1 root root 47 Aug 22 00:47 scalix-web-client.conf -> /opt/scalix/global/httpd/scalix-web-client.conf

You'll see that those files reference the ones in /etc/opt/scalix-tomcat...

So lets get down to the nitty gritty.

1. did you use the installer to install?
2. do you have any firewall running?
3. what error do you see in the browser when you try to go to sac or webmail?
4. does anything log to /var/log/httpd/error_log?
5. does anything log to /var/opt/scalix/ml/tomcat/logs/scalix-caa.log or /var/opt/scalix/ml/tomcat/logs/scalix-swa.log

If we can get some answers we should be able to narrow things down.....
Regards,

Les Stott

tonysu
Posts: 69
Joined: Sun Nov 09, 2008 1:58 am

Postby tonysu » Thu Nov 20, 2008 12:00 am

Reading a bit further about Tomcat Webserver configuration (I'm not that familiar with Tomcat), it looks like typically the configuration I'm looking for is usually found in a file called "server.xml" and contains the following tag

Code: Select all

<Context path="/site_name"
        docBase="Absolute_Fixed_Path_to_site\site_directory"
        debug="1"               
        reloadable="true" >
</Context>


The "virtual directory" object I'm referring to is apparently called an Alias in Apache and Context in Tomcat.

Cannot locate any file within the /etc/opt/ and the /opt/scalix/ tree paths.

tonysu
Posts: 69
Joined: Sun Nov 09, 2008 1:58 am

Postby tonysu » Thu Nov 20, 2008 12:12 am

les wrote:
1. did you use the installer to install?
2. do you have any firewall running?
3. what error do you see in the browser when you try to go to sac or webmail?
4. does anything log to /var/log/httpd/error_log?
5. does anything log to /var/opt/scalix/ml/tomcat/logs/scalix-caa.log or /var/opt/scalix/ml/tomcat/logs/scalix-swa.log

If we can get some answers we should be able to narrow things down.....


The files you list exist with those permissions.
1. Yes.
2. No, has been disabled. Initially (days ago and many reboots) I initially installed with the firewall on only after meticulously opening up the ports descrbed in the documentation, but now the firewall is completely down. I can telnet SMTP and POP ports without a problem.
3. 404 error. the requested URL /webmail was not found on this server
4. error. File does not exist
5. Yes, I see a bunch of heartbeats and up notifications. Actually, the path is /opt/scalix/j4/tomcat/logs

So, I guess this verifies that the Tomcat services is installed, working but probably not configured to point to the webfiles?

jhinrichs
Posts: 13
Joined: Thu Aug 17, 2006 11:50 am

Postby jhinrichs » Thu Nov 20, 2008 3:12 am

When installing Scalix on RedHat/CentOS dont't forget to disable SELinux.

les
Scalix Star
Scalix Star
Posts: 819
Joined: Thu Feb 23, 2006 10:18 am
Location: Sydney, Australia

Postby les » Thu Nov 20, 2008 3:24 am

jhinrichs wrote:When installing Scalix on RedHat/CentOS dont't forget to disable SELinux.

i knew i forgot to mention something else..... ;)
Regards,

Les Stott

tonysu
Posts: 69
Joined: Sun Nov 09, 2008 1:58 am

Postby tonysu » Thu Nov 20, 2008 5:09 am

I had disabled SELinux, also...

Minor summary to this point...

- Apache default page displays (http://localhost)
- Subdirectories such as /webmail return 404, "page not found"
- Firewall disabled
- SELinux disabled
- Tomcat service verified running
- Scalix non-web (ie SMTP and POP) verfied running

- Cannot locate Tomcat "context" configuration which should describe the /webmail and /sax web directories


Return to “Installation”



Who is online

Users browsing this forum: No registered users and 5 guests