The Community Forums

Interact with an entire community of cPanel & WHM users!
  1. This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn More.

Noah Classifieds

Discussion in 'General Discussion' started by jackal, Sep 20, 2003.

  1. jackal

    jackal Well-Known Member
    PartnerNOC

    Joined:
    Feb 23, 2002
    Messages:
    708
    Likes Received:
    0
    Trophy Points:
    16
    Ran into a small problem with noah classifieds hoping someone can help with it.

    On the install It works great if you install it under a folder under the public_html dir. Example created folder called domainadd and installed. To pull up your software we type in http://domain.com/domainadd/ all works well. Here is the problem we run into.

    If we install a add on domain to our main domain name we have to make a folder for the files for that add on domain name. Example main domain name is http://domain.com add on domain name is http://domainadd.com now when we create this add on domain name http://domainadd.com we have to make a folder under http://domain.com we would call it domainadd for example. then we would upload our files to that folder named domainadd which has this path http://domain.com/domainadd/

    Now we call http://domainadd.com up in the browser and it pulls files from the folder domainadd/ under the main domain name http://domain.com

    With you program when we pull up http://domainadd.com it comes up but in the browser it shows this url http://domain.com/domainadd/ not http://domainadd.com like it should.

    We had this problem with another problem dealing with add on domains called xoops. This is the code in its file.
    ========================================
    if ( !defined("XOOPS_MAINFILE_INCLUDED") ) {
    define("XOOPS_MAINFILE_INCLUDED",1);
    // XOOPS Physical Path
    // Physical path to your main XOOPS directory WITHOUT trailing slash
    define("XOOPS_ROOT_PATH","/home/domain/public_html/domainadd");
    // XOOPS Virtual Path (URL)
    // Virtual path to your main XOOPS directory WITHOUT trailing slash
    define("XOOPS_URL", http://www.domain.com/domainadd/);
    ==============================================

    Looking at the above we had same problem because add on domain was http://domainadd.com

    to fix the xoops we only had to change

    // Virtual path to your main XOOPS directory WITHOUT trailing slash
    define("XOOPS_URL", http://www.domain.com/domainadd/);


    to this
    // Virtual path to your main XOOPS directory WITHOUT trailing slash
    define("XOOPS_URL", http://www.domainadd.com);



    and that fixed the problem. We looked in your noah files but could not find any code like this.

    Can you guys help us make this work correctly with add on domains?


    Thanks

    cPanel.net Support Ticket Number:
     
  2. jackal

    jackal Well-Known Member
    PartnerNOC

    Joined:
    Feb 23, 2002
    Messages:
    708
    Likes Received:
    0
    Trophy Points:
    16
    Ok if anyone is wandering this is the solution I came up with,

    First add the add on domain with folder name.

    Then delete only the folder for that add on domain.

    Then install noah using the folder name you just deleted, it will create the dir. and all works well, therefore showing the add on domain as the url in the browser bar. Did this using Fantastico install.

    cPanel.net Support Ticket Number:
     

Share This Page