Unable to set cPanel Button

Top  Previous  Next

If unable to set the NGASI Button for cPanel as described in

the Control Panel Button section, follow the steps below.

 

In cPanel, Clients with a Domain FTP user that already has

access to NGASI AppServer Manager, may access

NGASI AppServer Manager Directly from cPanel.

 

cPanel 11x

First, copy the install file to /usr/local/cpanel/bin/. The install file is

located in

/usr/ngasi/webapps/ROOT/ngasi/ngasi.cpanelplugin.

 

Next run

/usr/local/cpanel/bin/register_cpanelplugin ngasi.cpanelplugin

After running the register script, you should see various output.

In this output, cPanel is registering your Plugin with the different

themes and branding packages on your server. After this script has

been run, the Plugin should appear within the cPanel interface in the

"Advanced" section on the server (includes x3 skin).

 

Finally copy /usr/ngasi/webapps/ROOT/ngasi/ngasiindex.php to

/usr/local/cpanel/base/frontend/<theme_name>/ngasiindex.php

NOTE: Make sure to edit the NGASI URL in ngasiindex.php accordingly.

 

Second option is to follow the instructions here:

http://www.cpanel.net/plugins/devel/installgen.html

http://www.cpanel.net/plugins/devel/install.html

 

Third option is the follow the steps below (for cPanel 10x).

 

cPanel 10x

First, insert the following html code in an appropriate location of

/usr/local/cpanel/base/frontend/<theme_name>/index.html

 

<div align="center" valign="top">

<a href="/frontend/ngasiindex.php" target="_ngasibrowser">

<img alt="" border="0" src="/frontend/ngasi_icon_32.png" width="32" height="32"><br>

NGASI AppServer Manager</a> </div>

 

Next copy /usr/ngasi/webapps/ROOT/images/ngasi/ngasi_icon_32.png to

/usr/local/cpanel/base/frontend/ngasi_icon_32.png

 

Finally copy /usr/ngasi/webapps/ROOT/ngasi/ngasiindex.php to

/usr/local/cpanel/base/frontend/<theme_name>/ngasiindex.php

NOTE: Make sure to edit the NGASI URL in ngasiindex.php accordingly.