Need help in integrating arc.io in cPanel

FatGrizzly

Member
Jan 9, 2021
5
0
1
India
cPanel Access Level
Reseller Owner
Hello there,
I am trying to add arc.io in cPanel Dash for my users,
I managed to add this script tag using the includes, but arc.io requires a file(https://arc.io/arc-sw.js) to be hosted in the root(aka cpanel.blablabla.com/arc-sw.js).
But I am confused on how to do that.
Pls help me
 

cPRex

Jurassic Moderator
Staff member
Oct 19, 2014
16,613
2,621
363
cPanel Access Level
Root Administrator
Hey there! If you have already uploaded the content for the subdomain, you would upload that file to the same location. It would be easiest to use the File Manager through cPanel to perform that work, but it would just be a matter of placing the file in the correct directory.

If you have a subdomain for this arc.io tool, this would likely be placed in /home/username/public_html/subdomain name, as that is the standard location for a subdomain directory to be created on a cPanel server.

If that doesn't answer the question, feel free to post a screenshot of your directory structure, just remove any public domains for your security.
 

FatGrizzly

Member
Jan 9, 2021
5
0
1
India
cPanel Access Level
Reseller Owner
HI @cPRex
Seems like you didnt understand me well,
I wanna add a javascript file to the cPanel root.
I mean,
The js file should be accessible like this,
cpanel.mydomain.name/arc-sw.js
mydomain.name:2082/arc-sw.js
mydomain.name2083/arc-sw.js
 

cPRex

Jurassic Moderator
Staff member
Oct 19, 2014
16,613
2,621
363
cPanel Access Level
Root Administrator
Thanks for the clarification on that. I don't think you'll be able to do that, although you may be able to add the tool to the inside of the cPanel interface so users can see it after they log in. Is that what you are looking for?
 

FatGrizzly

Member
Jan 9, 2021
5
0
1
India
cPanel Access Level
Reseller Owner
Well, I was able to achieve that.
So there is no way to add the java script file to cPanel directory?
I do have root access, so that shouldn't be an issue.
 

FatGrizzly

Member
Jan 9, 2021
5
0
1
India
cPanel Access Level
Reseller Owner
When I go in there and login, I see this.(which I correct)
1612000352713.png
I asked a Root Admin of HelioHost and his response was to add the file in /var/www/html and it will work.

As he was able to achieve it, atleast one person of cPanel Team would have known this