symbolic links

ItsOnlyMe

Verified User
Joined
Apr 3, 2009
Messages
126
Location
Netherlands
Hey All,

After the reinstall of my server i god a few problems with the symbolic links of DA.

before the reinstall if i did www.domain.com/webmail or www.domain.com/phpmyadmin it went to those pages.

If i do it now it goes to google and says the page doesnt exist or i get :

Oeps! Google Chrome kan squirrelmail niet vinden
Bedoelde u: squirrelmail. org

Oeps! Google Chrome kan roundcube niet vinden
Bedoelde u: roundcube. net


means it cant find Roundcube.

it only works if i go there tru IP/phpmyadmin or /webmail.

how can i fix this?
 
Last edited:
First step would be to look at the httpd error files to see what it's specifically looking for that doesn't exist.

Then check permissions.

Check apache to make sure it's set to follow symbolic links.

Jeff
 
The Only thing i see in my logs is this: but that is not fro my side.

When i try to reach it .. nothing comes in the error logs, for checking the symbolic links where ? just the httpd.conf?

and in var/www/html i see:

37748761 lrwxrwxrwx 1 webapps webapps 44 May 11 18:46 phpMyAdmin -> /var/www/html/phpMyAdmin-3.3.3-all-languages
37781518 drwxr-xr-x 10 webapps webapps 4096 Oct 13 2009 phpMyAdmin-2.11.9.6-all-languages
37847051 drwxr-xr-x 11 webapps webapps 4096 May 11 18:46 phpMyAdmin-3.3.3-all-languages
37748819 -rwxr-xr-x 1 webapps webapps 68 May 11 18:16 redirect.php
37748820 lrwxrwxrwx 1 webapps webapps 19 May 11 18:46 roundcube -> roundcubemail-0.3.1
37782753 drwxr-xr-x 10 webapps webapps 4096 May 11 18:46 roundcubemail-0.3.1
37748808 lrwxrwxrwx 1 webapps webapps 19 May 11 18:46 squirrelmail -> squirrelmail-1.4.20
37782244 drwxr-xr-x 16 webapps webapps 4096 May 21 2009 squirrelmail-1.4.19
37847989 drwxr-xr-x 16 webapps webapps 4096 Mar 7 01:40 squirrelmail-1.4.20






[root@srv1 httpd]# cat error_log | grep -i phpmyadmin
[Mon May 17 14:01:51 2010] [error] [client 64.62.131.133] File does not exist: /var/www/html/phpMyAdmin/config
[Mon May 17 14:01:51 2010] [error] [client 64.62.131.133] File does not exist: /var/www/html/phpMyAdmin/config
[Mon May 17 14:01:51 2010] [error] [client 64.62.131.133] File does not exist: /var/www/html/phpMyAdmin/config
[Mon May 17 14:01:52 2010] [error] [client 64.62.131.133] File does not exist: /var/www/html/phpMyAdmin/config
[Mon May 17 14:01:54 2010] [error] [client 64.62.131.133] File does not exist: /home/admin/domains/sharedip/PHPMYADMIN
[Mon May 17 14:01:55 2010] [error] [client 64.62.131.133] File does not exist: /home/admin/domains/sharedip/PHPMYADMIN
[Mon May 17 14:01:55 2010] [error] [client 64.62.131.133] File does not exist: /var/www/html/phpMyAdmin/config
[Mon May 17 14:01:55 2010] [error] [client 64.62.131.133] File does not exist: /var/www/html/PHPMYADMIN
[Mon May 17 14:01:55 2010] [error] [client 64.62.131.133] File does not exist: /var/www/html/phpMyAdmin/config
[Mon May 17 14:01:56 2010] [error] [client 64.62.131.133] File does not exist: /var/www/html/phpMyAdmin/config
[Mon May 17 14:01:56 2010] [error] [client 64.62.131.133] File does not exist: /home/admin/domains/sharedip/PHPMYADMIN
[Mon May 17 14:01:56 2010] [error] [client 64.62.131.133] File does not exist: /home/admin/domains/sharedip/phpmyadmin2
[Mon May 17 14:01:56 2010] [error] [client 64.62.131.133] File does not exist: /var/www/html/phpMyAdmin/config
[Mon May 17 14:01:56 2010] [error] [client 64.62.131.133] File does not exist: /home/admin/domains/sharedip/phpmyadmin2
[Mon May 17 14:01:57 2010] [error] [client 64.62.131.133] File does not exist: /home/admin/domains/sharedip/phpMyAdmin2
[Mon May 17 14:01:57 2010] [error] [client 64.62.131.133] File does not exist: /var/www/html/phpmyadmin2
[Mon May 17 14:01:57 2010] [error] [client 64.62.131.133] File does not exist: /home/admin/domains/sharedip/phpMyAdmin2
[Mon May 17 14:01:57 2010] [error] [client 64.62.131.133] File does not exist: /var/www/html/phpMyAdmin2
[Mon May 17 14:01:57 2010] [error] [client 64.62.131.133] File does not exist: /home/admin/domains/sharedip/phpmyadmin2
[Mon May 17 14:01:58 2010] [error] [client 64.62.131.133] File does not exist: /home/admin/domains/sharedip/phpMyAdmin2
[Mon May 17 20:08:02 2010] [error] [client 222.73.163.21] File does not exist: /var/www/html/phpMyAdmin/config
[Mon May 17 20:08:04 2010] [error] [client 222.73.163.21] File does not exist: /var/www/html/phpMyAdmin/config
[Mon May 17 20:08:08 2010] [error] [client 222.73.163.21] File does not exist: /home/admin/domains/sharedip/PHPMYADMIN
[Mon May 17 20:08:09 2010] [error] [client 222.73.163.21] File does not exist: /var/www/html/phpMyAdmin/config
[Mon May 17 20:08:09 2010] [error] [client 222.73.163.21] File does not exist: /var/www/html/PHPMYADMIN
[Mon May 17 20:08:10 2010] [error] [client 222.73.163.21] File does not exist: /var/www/html/phpMyAdmin/config
[Mon May 17 20:08:12 2010] [error] [client 222.73.163.21] File does not exist: /home/admin/domains/sharedip/phpmyadmin2
[Mon May 17 20:08:12 2010] [error] [client 222.73.163.21] File does not exist: /home/admin/domains/sharedip/phpMyAdmin2
[Mon May 17 20:08:13 2010] [error] [client 222.73.163.21] File does not exist: /var/www/html/phpmyadmin2
[Mon May 17 20:08:13 2010] [error] [client 222.73.163.21] File does not exist: /var/www/html/phpMyAdmin2
[Mon May 17 20:34:24 2010] [error] [client 222.73.163.21] File does not exist: /var/www/html/phpMyAdmin/config
[Mon May 17 20:34:31 2010] [error] [client 222.73.163.21] File does not exist: /home/admin/domains/sharedip/PHPMYADMIN
[Mon May 17 20:34:32 2010] [error] [client 222.73.163.21] File does not exist: /var/www/html/phpMyAdmin/config
[Mon May 17 20:34:34 2010] [error] [client 222.73.163.21] File does not exist: /home/admin/domains/sharedip/phpmyadmin2
[Mon May 17 20:34:34 2010] [error] [client 222.73.163.21] File does not exist: /home/admin/domains/sharedip/phpMyAdmin2
[Mon May 17 21:01:32 2010] [error] [client 222.73.163.21] File does not exist: /var/www/html/phpMyAdmin/config
[Mon May 17 21:01:34 2010] [error] [client 222.73.163.21] File does not exist: /var/www/html/phpMyAdmin/config
[Mon May 17 21:01:37 2010] [error] [client 222.73.163.21] File does not exist: /home/admin/domains/sharedip/PHPMYADMIN
[Mon May 17 21:01:38 2010] [error] [client 222.73.163.21] File does not exist: /var/www/html/phpMyAdmin/config
[Mon May 17 21:01:39 2010] [error] [client 222.73.163.21] File does not exist: /home/admin/domains/sharedip/PHPMYADMIN
[Mon May 17 21:01:40 2010] [error] [client 222.73.163.21] File does not exist: /var/www/html/phpMyAdmin/config
[Mon May 17 21:01:40 2010] [error] [client 222.73.163.21] File does not exist: /home/admin/domains/sharedip/phpmyadmin2
[Mon May 17 21:01:40 2010] [error] [client 222.73.163.21] File does not exist: /home/admin/domains/sharedip/phpMyAdmin2
[Mon May 17 21:01:41 2010] [error] [client 222.73.163.21] File does not exist: /home/admin/domains/sharedip/phpmyadmin2
[Mon May 17 21:01:42 2010] [error] [client 222.73.163.21] File does not exist: /home/admin/domains/sharedip/phpMyAdmin2
[Mon May 17 21:34:54 2010] [error] [client 222.73.163.21] File does not exist: /var/www/html/phpMyAdmin/config
[Mon May 17 21:34:58 2010] [error] [client 222.73.163.21] File does not exist: /home/admin/domains/sharedip/PHPMYADMIN
[Mon May 17 21:34:59 2010] [error] [client 222.73.163.21] File does not exist: /var/www/html/phpMyAdmin/config
[Mon May 17 21:35:01 2010] [error] [client 222.73.163.21] File does not exist: /home/admin/domains/sharedip/phpmyadmin2
[Mon May 17 21:35:01 2010] [error] [client 222.73.163.21] File does not exist: /home/admin/domains/sharedip/phpMyAdmin2
[Mon May 17 21:41:45 2010] [error] [client 222.73.163.21] File does not exist: /var/www/html/phpMyAdmin/config
[Mon May 17 21:41:49 2010] [error] [client 222.73.163.21] File does not exist: /home/admin/domains/sharedip/PHPMYADMIN
[Mon May 17 21:41:50 2010] [error] [client 222.73.163.21] File does not exist: /var/www/html/phpMyAdmin/config
[Mon May 17 21:41:52 2010] [error] [client 222.73.163.21] File does not exist: /home/admin/domains/sharedip/phpmyadmin2
[Mon May 17 21:41:53 2010] [error] [client 222.73.163.21] File does not exist: /home/admin/domains/sharedip/phpMyAdmin2
 
Check your httpd.conf file and all included files to see if apache is set to follow symbolic links.

Jeff
 
Check /etc/httpd/conf/extra/httpd-alias.conf

There should be lines like:

Alias /phpmyadmin /var/www/html/phpmyadmin
 
and my alias:

[root@srv1 ~]# vi /etc/httpd/conf/extra/httpd-alias.conf

Alias /config "/var/www/html/redirect.php"
Alias /phpMyAdmin "/var/www/html/phpMyAdmin/"
Alias /phpmyadmin "/var/www/html/phpMyAdmin/"
Alias /squirrelmail "/var/www/html/squirrelmail/"
Alias /roundcube "/var/www/html/roundcube/"
Alias /uebimiau "/var/www/html/uebimiau/"
Alias /webmail "/var/www/html/roundcube/"

when i looked in the map /var/www/html those files didnt exit they where called:

phpMyAdmin/
phpMyAdmin-2.11.9.6-all-languages/
phpMyAdmin-3.3.3-all-languages/
redirect.php
roundcube/
roundcubemail-0.3.1/
squirrelmail/
squirrelmail-1.4.19/
squirrelmail-1.4.20/

i changed my alias to:

Alias /config "/var/www/html/redirect.php"
Alias /phpMyAdmin "/var/www/html/phpMyAdmin-3.3.3-all-languages/"
Alias /phpmyadmin "/var/www/html/phpMyAdmin-3.3.3-all-languages/"
Alias /squirrelmail "/var/www/html/squirrelmail/"
Alias /roundcube "/var/www/html/roundcubemail-0.3.1/"
Alias /uebimiau "/var/www/html/uebimiau/"
Alias /webmail "/var/www/html/roundcubemail-0.3.1/
 
Last edited:
Good, because I don't think any of us wanted to study your entire httpd.conf file.

Care to tell us what the problem was and how you fixed it, in case anyone else runs into a similar issue in the future?

Jeff
 
these lines:

Redirect 301 /webmail http:///roundcube
Redirect 301 /phpmyadmin http:///phpmyadmin
Redirect 301 /phpMyAdmin http:///phpMyAdmin
Redirect 301 /roundcube http:///roundcube
Redirect 301 /squirrelmail http:///roundcube

To:

Redirect 301 /webmail http://IP/roundcube
Redirect 301 /phpmyadmin http://IP/phpmyadmin
Redirect 301 /phpMyAdmin http://IP/phpMyAdmin
Redirect 301 /roundcube http://IP/roundcube
Redirect 301 /squirrelmail http://IP/roundcube

and the ip is ip of the server self :)

that solved it for me but only my own domain ..

not for the rest.

ill keep looking in to that
 
Last edited:
Why does your virtual_host2.conf file have Redirect lines in it for webmail, etc.? Mine doesn't, on a new intallation I just checked.

Jeff
 
I dont know,

It was in mine but you can add it ur self :)

but still it works only for my own domain .. Not for the rest on the server any solution for this?
 
I dont know,

It was in mine but you can add it ur self :)

but still it works only for my own domain .. Not for the rest on the server any solution for this?
Did you install Apache originally from DirectAdmin or from some other source?

DirectAdmin doesn't use redirects for webmail; it uses symbolic links in /var/www/html.

Jeff
 
Did you install Apache originally from DirectAdmin or from some other source?

DirectAdmin doesn't use redirects for webmail; it uses symbolic links in /var/www/html.

Jeff
I've checked this too, and same for me I don't have any redirects in the templates.
 
The redirects aren't in the templates as far as I know; they're actually set up in /var/www when you install DirectAdmin.

On my most recent CentOS install:
Code:
$ ls -l /var/www/html
total 32
lrwxrwxrwx  1 root    root      11 Apr 30 09:56 atmail -> atmail-1.03
drwxr-xr-x 13 webapps webapps 4096 Apr 30 09:56 atmail-1.03
-rw-r--r--  1 root    root      44 Apr 30 09:14 index.html
-rw-r--r--  1 webapps webapps   20 May  3 05:35 phpinfo.php
lrwxrwxrwx  1 root    root      44 Apr 30 09:56 phpMyAdmin -> /var/www/html/phpMyAdmin-3.3.2-all-languages
drwxr-xr-x 11 webapps webapps 4096 Apr 30 09:56 phpMyAdmin-3.3.2-all-languages
-rwxr-xr-x  1 root    root      68 Apr 30 09:03 redirect.php
lrwxrwxrwx  1 root    root      19 Apr 30 09:56 roundcube -> roundcubemail-0.3.1
drwxr-xr-x 10 webapps webapps 4096 Apr 30 09:56 roundcubemail-0.3.1
lrwxrwxrwx  1 root    root      19 Apr 30 09:56 squirrelmail -> squirrelmail-1.4.20
drwxr-xr-x 16 webapps webapps 4096 Mar  7 00:40 squirrelmail-1.4.20
drwxr-xr-x 11 webapps webapps 4096 Apr 30 09:57 webmail
$
Additionally there are aliases in the /usr/local/directadmin/data/templates/httpd.conf file:
Code:
#Start DirectAdmin Settings
Alias /config /var/www/html/redirect.php
Alias /phpMyAdmin /var/www/html/phpMyAdmin/
Alias /phpmyadmin /var/www/html/phpMyAdmin/
Alias /webmail /var/www/html/webmail/
Alias /squirrelmail /var/www/html/squirrelmail/
Alias /roundcube /var/www/html/roundcube/
This creates these aliases when DirectAdmin creates or manages the httpd-aliases.conf file.

Jeff
 
Indeed Jess, thats the same for our servers we have. I think they have modified some stuff on the box and after that it didn't work anymore.
 
Indeed Jess, thats the same for our servers we have. I think they have modified some stuff on the box and after that it didn't work anymore.
So the questions are: who are they and what did they do?

Jeff
 
Thos redirects is what i have also in y /var/www its working for all users now:)

Doest matter i might have changed some stuff :)
 
Back
Top