Sub domains

Discussion in 'Installation/Configuration' started by wabz, Aug 20, 2009.

  1. wabz

    wabz New Member

    Guys Hi

    I have been able to do some subdomains for my site. I am running joomla and have created subfolders inside the web folder for the site to accomodate subdomains for example my site is mptxxxxx.com and i have xxxxxx1.mptxxxx.com as a sub domain. So i have created a sub folder in the web folder with the name xxxxxx1 and installed uploaded joomla files to it. so how do i point xxxxxx1.mptxxxx.com to that particular folder. If i try using redirect i get mptxxxx.com/xxxxxx1 yet its supposed to remain as xxxxxx1.mptxxxx.com

    Any help
     
  2. till

    till Super Moderator

    The recommended wway is to create a new website for this subdomain and not use subfolder.

    If you want to use the subfiolder, you can not use .htaccess files for this joomla installation.
     
  3. wabz

    wabz New Member

    Error message with webmail

    Error opening ../data/default_pref
    Could not create initial preference file!
    /srv/mpt.com/web/webmail/data/ should be writable by user wwwrun
    Please contact your system administrator and report this error.


    File permission is set to 777

    Ok i have done what u had suggested earlier as in configuring them as separate sites. my problem now is that when i type http://xxxxxx1.mptxxxx.com it takes me to http://www.mptxxxx.com. What am i doing wrong. I have even entered the apache directives for xxxxxx1.mptxxxx.com
     
    Last edited: Aug 20, 2009
  4. falko

    falko Super Moderator

    What's the output of
    Code:
    ls -la /srv/mpt.com/web/webmail/data/
    ?
     
  5. wabz

    wabz New Member

    Output of command

    Here is the output of the command. I just ran it for a different site with the same problem

    mail:/srv/www/webmail.uwasnet.org/web/data # ls -la /srv/www/webmail.uwasnet.org/web/data total 20
    drwxrwxrwx 2 web12 client5 4096 Aug 20 15:38 .
    drwxr-xr-x 18 web12 client5 4096 Aug 25 14:18 ..
    -rwxr-xr-- 1 web12 client5 14 Aug 20 15:38 .htaccess
    -rwxr-xr-- 1 web12 client5 41 Aug 20 15:38 default_pref
    -rwxr-xr-- 1 web12 client5 485 Aug 20 15:38 index.php


    So what next?
     
  6. falko

    falko Super Moderator

    Do this:
    Code:
    chown wwwrun default_pref
     

Share This Page