Welcome Guest. Please Login or Register  


You are here: Index > Softaculous Auto Installer > General Support > Topic : Populating domain name



Threaded Mode | Print  

 Populating domain name, Populating domain name from cPanel account (1 Replies, Read 1339 times)
earthgirlhosting
Group: Member
Post Group: Newbie
Posts: 12
Status:
I am using the WHMCS to manage my hosting, and the auto-installer for some scripts.

I have user_mod_dir enabled because the scripts won't install otherwise, but I need to populate the domain name into the config files and database from the "domain" field in WHMCS/cPanel.

What is the proper variable for this? I can't use [[softdomain]] or [[softurl]] because it populates the IP address and path.

Thank you
IP: --   

Populating domain name
earthgirlhosting
Group: Member
Post Group: Newbie
Posts: 12
Status:
Support got back to me on this, so I'll share for anyone else who needs to know.

Open install.php and add
Code
    global $softpanel;
    $__settings['final_domain'] = $softpanel->user['domain'];


before
Code
    //Propogate the database   
    sdb_import($software['softname'].'.sql');



Then use [[final_domain]] to populate your files and database.

Edited by Moderator : October 14, 2016, 12:01 pm
IP: --   

« Previous    Next »

Threaded Mode | Print  



Jump To :


Users viewing this topic
1 guests, 0 users.


All times are GMT. The time now is April 23, 2024, 5:17 pm.

  Powered By AEF 1.0.8 © 2007-2008 Electron Inc.Queries: 11  |  Page Created In:0.019