Community Forums
Connect with us on LinkedIn
+ Reply to Thread
Results 1 to 6 of 6
  1. #1
    Member
    Join Date
    Aug 2008
    Posts
    48

    Default cPanel / Fantastico / Joomla -> Domain info

    Greetings! First off we're going to have several thousand cPanel users, each are going to have their own version of Joomla 1.5 which we will install for them through cPanel/Fantastico.

    My question revolves around finding domain/user information for whichever client is running our modules.

    Basically what I'm trying to find out is how and what user specific information I can get through php (or other means). We're developing modules that depend on these variables. Ie -> A sign-up form which submits to our central DB, but must pass along information about which client is submitting it (their domain.com for instance).

    If anyone can point me in the right direction I would greatly appreciate it.

  2. #2
    Technical Product Specialist cPanelDavidG's Avatar
    Join Date
    Nov 2006
    Location
    Houston, TX
    Posts
    11,189
    cPanel/Enkompass Access Level

    Root Administrator

    Default

    If I was doing this, I'd use the cPanel username from the path information for this.

    For example, your Joomla installation will have a path like (but not necessarily) /home/user/public_html/joomla where user is the cPanel user. Note, the home directory is /home by default, but in the future you may add another home directory so hard-coding it to /home wouldn't be a bad idea - just not something that will scale well into the future.

  3. #3
    Member This forum account has been confirmed by cPanel staff to represent a vendor.
    Join Date
    Jan 2005
    Posts
    89

    Default

    you might want to take a look at

    http://ca.php.net/manual/en/reserved...les.server.php

    That should point you in the right direction.

  4. #4
    Member
    Join Date
    Aug 2008
    Posts
    48

    Default

    Theres actually a class created in configuration.php after a Joomla install called JConfig.

    I was able to get the information I needed via these two lines:

    $jc = new JConfig();
    $domain = $jc->sitename;

  5. #5
    Registered User
    Join Date
    Dec 2008
    Posts
    1

    Default

    When I try to install joomla in public_html folder, instalation fails.
    When I try to install on root is says that cannot run more then one script.
    When I install in public_html/folder, it works but then the main page is www.something.com/folder/index....
    What am I doing wrong is there some error on my hosting or what?

  6. #6
    Registered User
    Join Date
    Jan 2009
    Posts
    1

    Default

    Quote Originally Posted by rachelm View Post
    you might want to take a look at

    http://ca.php.net/manual/en/reserved...les.server.php

    That should point you in the right direction.
    helpful, thanks!

Similar Threads & Tags
Similar threads

  1. How to Install Joomla via Fantastico Using WHM/CPanel?
    By webdbapps in forum New User Questions
    Replies: 5
    Last Post: 07-12-2011, 08:45 PM
  2. Replies: 3
    Last Post: 03-21-2011, 11:58 AM
  3. Joomla Install with Fantastico
    By Tomatr1 in forum New User Questions
    Replies: 1
    Last Post: 07-27-2010, 10:41 PM
  4. Creating links from my Joomla site to non-Joomla pages
    By Jamesbrad in forum New User Questions
    Replies: 5
    Last Post: 07-17-2008, 05:49 AM
  5. Fantastico installation/info
    By bking in forum cPanel and WHM Discussions
    Replies: 1
    Last Post: 02-06-2005, 05:00 AM
Linkedin       Facebook       Twitter       RSS       Flickr       YouTube