MRatWork Forum by Mustafa Ramadhan
Sawo Project - Kloxo-MR Discussions => Kloxo-MR Technical Helps => Topic started by: lewisngai on 2014-05-19, 12:16:57
-
I have 4 domains setup in kloxo mr.
However, only the primary domain can goes to the correct document root.
Browse other websites gave an error as below:
Not Found
The requested URL / was not found on this server.
Any Ideas? Thank you.
-
Inform your 'sh /script/sysinfo'.
-
[root@server httpd]# sh /script/sysinfo
A. Kloxo-MR: 6.5.0.f-2014051901
B. OS: CentOS release 6.5 (Final) x86_64
C. Apps:
1. MySQL: mysql55-5.5.37-1.ius.el6.x86_64
2. PHP: php53u-5.3.28-3.ius.el6.x86_64
3. Httpd: httpd-2.2.27-1.el6.x86_64
4. Lighttpd: --uninstalled--
5. Nginx: --uninstalled--
6. Qmail: qmail-toaster-1.03-1.3.38.mr.el6.x86_64
- with: courier-imap-toaster-4.1.2-1.3.16.mr.el6.x86_64
7. Dns: bind-9.9.5-1.el6.x86_64
D. Php-type (for Httpd/proxy): php-fpm_event
E. Memory:
total used free shared buffers cached
Mem: 2048 541 1506 0 0 206
-/+ buffers/cache: 334 1713
Swap: 0 0 0
-
It seems jump to webmail application, did I set something wrongly?
/var/log/httpd/error_log:
[Mon May 19 18:17:40 2014] [error] [client 123.202.175.132] File does not exist: /home/kloxo/httpd/webmail/squirrelmail
[Mon May 19 18:17:41 2014] [error] [client 123.202.175.132] File does not exist: /home/kloxo/httpd/webmail/squirrelmail
[Mon May 19 18:17:50 2014] [error] [client 220.181.108.185] File does not exist: /home/kloxo/httpd/webmail/squirrelmail
[Mon May 19 18:18:39 2014] [error] [client 123.125.71.117] File does not exist: /home/kloxo/httpd/webmail/squirrelmail
[Mon May 19 18:21:49 2014] [error] [client 157.55.32.76] File does not exist: /home/kloxo/httpd/webmail/squirrelmail
[Mon May 19 18:25:22 2014] [error] [client 157.55.32.76] File does not exist: /home/kloxo/httpd/webmail/squirrelmail
[Mon May 19 18:28:02 2014] [error] [client 157.55.32.76] File does not exist: /home/kloxo/httpd/webmail/squirrelmail
[Mon May 19 18:28:35 2014] [error] [client 157.55.35.75] File does not exist: /home/kloxo/httpd/webmail/squirrelmail
[Mon May 19 18:34:12 2014] [error] [client 157.55.35.75] File does not exist: /home/kloxo/httpd/webmail/squirrelmail
[Mon May 19 18:34:28 2014] [error] [client 123.202.175.132] File does not exist: /home/kloxo/httpd/webmail/squirrelmail
[Mon May 19 18:34:28 2014] [error] [client 123.202.175.132] File does not exist: /home/kloxo/httpd/webmail/squirrelmail
[Mon May 19 18:37:21 2014] [error] [client 62.210.215.114] File does not exist: /home/kloxo/httpd/webmail/squirrelmail
[Mon May 19 18:38:22 2014] [error] [client 123.202.175.132] File does not exist: /home/kloxo/httpd/webmail/squirrelmail
[Mon May 19 18:38:22 2014] [error] [client 123.202.175.132] File does not exist: /home/kloxo/httpd/webmail/squirrelmail
-
inform here 'yum list installed kloxomr-webmail*; dir -l /home/kloxo/httpd/webmail'
-
Seems no webmail apps installed... but why the document root will jump to the mail directory?
[root@server httpd]# yum list installed kloxomr-webmail*; dir -l /home/kloxo/httpd/webmail
Loaded plugins: fastestmirror, priorities, protectbase, replace
Loading mirror speeds from cached hostfile
* base: mirror.linux.duke.edu
* extras: centoso4.centos.org
* mratwork-epel: mirrors.servercentral.net
* mratwork-ius-stable: ord.mirror.rackspace.com
* updates: centoso4.centos.org
0 packages excluded due to repository protections
Error: No matching Packages to list
total 20
drwxr-xr-x 2 apache apache 4096 May 19 17:40 images
drwxr-xr-x 2 apache apache 4096 May 19 16:47 img
-rw-r--r-- 1 apache apache 713 May 19 17:40 inc.php
-rw-r--r-- 1 apache apache 2240 Feb 12 2013 index.html
-rw-r--r-- 1 apache apache 2400 May 19 17:40 index.php
[root@server httpd]#
-
Try 'yum install kloxomr-webmail*'.
-
I have followed your instruction and now
Primary domain is still okay but the browse the other domain,
the browser now shows the "Access denied".
/var/log/httpd/error_log:
[Mon May 19 20:31:34 2014] [error] [client 217.79.184.51] File does not exist: /home/kloxo/httpd/webmail/squirrelmail/\xe8\xaa\x8d\xe8\xad\x98-oh
[Mon May 19 20:31:43 2014] [error] [client 217.79.184.51] File does not exist: /home/kloxo/httpd/webmail/squirrelmail/robots.txt
[Mon May 19 20:31:46 2014] [error] [client 217.79.184.51] File does not exist: /home/kloxo/httpd/webmail/squirrelmail/\xe5\xad\xb8\xe5\x93\xa1\xe6\x96\x87\xe7\xab\xa0
[Mon May 19 20:31:50 2014] [error] [client 217.79.184.51] File does not exist: /home/kloxo/httpd/webmail/squirrelmail/\xe5\xad\xb8\xe5\x93\xa1\xe6\x96\x87\xe7\xab\xa0
-
I tried 'sh /script/fixwebmail; sh /script/restart-all',
now the primary domain remain correct, okay,
and the all other domains goes to squirrel mail login page,
and not the document root I set,
any suggestion?
-
So, what's result of 'yum list installed kloxomr-webmail*; dir -l /home/kloxo/httpd/webmail' now?.
-
[root@server /]# yum list installed kloxomr-webmail*; dir -l /home/kloxo/httpd/webmail
Loaded plugins: fastestmirror, priorities, protectbase, replace
Loading mirror speeds from cached hostfile
* base: mirror.linux.duke.edu
* extras: centoso4.centos.org
* mratwork-epel: mirrors.servercentral.net
* mratwork-ius-stable: ord.mirror.rackspace.com
* updates: centoso4.centos.org
0 packages excluded due to repository protections
Installed Packages
kloxomr-webmail-afterlogic.noarch 7.2.1-1.mr @mratwork-release-neutral-noarch
kloxomr-webmail-roundcube.noarch 1.0.rc-3.mr @mratwork-release-neutral-noarch
kloxomr-webmail-squirrelmail.noarch 1.4.22-6.mr @mratwork-release-neutral-noarch
kloxomr-webmail-telaen.noarch 1.3.2-2.mr @mratwork-release-neutral-noarch
total 52
drwxr-xr-x 12 apache apache 4096 May 19 20:07 afterlogic
drwxr-xr-x 2 apache apache 4096 May 19 17:40 images
drwxr-xr-x 2 apache apache 4096 May 19 16:47 img
-rw-r--r-- 1 apache apache 713 May 19 17:40 inc.php
-rw-r--r-- 1 apache apache 2240 Feb 12 2013 index.html
-rw-r--r-- 1 apache apache 2400 May 19 17:40 index.php
-rw-r--r-- 1 apache apache 39 May 19 22:10 redirect-to-afterlogic.php
-rw-r--r-- 1 apache apache 38 May 19 22:10 redirect-to-roundcube.php
-rw-r--r-- 1 apache apache 41 May 19 22:10 redirect-to-squirrelmail.php
-rw-r--r-- 1 apache apache 35 May 19 22:10 redirect-to-telaen.php
drwxr-xr-x 11 apache apache 4096 May 19 20:08 roundcube
drwxr-xr-x 14 apache apache 4096 May 19 20:08 squirrelmail
drwxr-xr-x 13 apache apache 4096 May 19 20:07 telaen
[root@server /]#
-
So, try 'sh /script/fix-all; sh /script/restart-all'.
-
Tried.
It is the same as before, redirected to squirrel mail login page.
-
Go to 'switch programs' and then change 'web' to 'lighttpd' and then change back to 'apache' or 'nginx-proxy'.
-
I have followed what you said, and then I reboot my VPS, but result is the same. Problem still here.
-
Inform here your url address of domain that have a problem.
-
primary domain:
hkioh.com
problem domain:
littlengine.com.hk
-
Read http://forum.mratwork.com/kloxo-mr-tips-and-tricks/(tip)-how-to-set-dns/
I think your dns setting still wrong.
-
This is a setup done by me. Please check and suggest me what to do next??
-
Because you are using dns from cloudflare and sadly you don't know how to dns work.