phpmyadmin and squirrelmail config

Discussion in 'Installation/Configuration' started by richardson, Nov 21, 2009.

  1. richardson

    richardson New Member

    Hello!

    I have installed these too packages to /srv/www/htdocs/squirrelmail and /srv/www/htdocs/phpMyAdmin . When i had no domain for my ip address i can reach them, but now, when i set up the domain, i cant reach these too applications. What should i do, to reach like this: domain.com/webmail and domain.com/phpmyadmin .

    Thx
    Richard
     
  2. till

    till Super Moderator

    Thats normal as the default vhost works onyl if you do not assign any other site to this IP. The recommended and only reliable way of running phpmyadmin and webmail is to create a new website like webmail.yourdoamin.com and install a webmail client of your choice into this website.
     
  3. richardson

    richardson New Member

    thx, but its not working for me, first the problem is, when i add my domain, in the vhost file the documentroot is this:
    DocumentRoot /srv/www/htdocs/squirrelmail/maindomain.com/web

    Why?
    but if i add an other site with a non-main domain, then it works and adds:
    DocumentRoot /srv/www/otherdomain.com/web
     
  4. till

    till Super Moderator

    You can not add the main domain as a vhost in apache. Please change the hostname of your server so that it is not identical with any domain e.g. that you want ot use as vhost, change it e.g. to server1.yourdomain.com as we use it in the perfect setup guides for that reason.
     
  5. richardson

    richardson New Member

    ok thx, the vhost problem is solved, but the main problem is still a problem.

    I add the website : webmail.domain.com, but when i type it to the browser there is nothing :) do i have to add an A record to my dns?
     
  6. till

    till Super Moderator

    Yes, you have to add a dns a-record for this subdomain.
     

Share This Page