iso99

Well-Known Member
Jan 5, 2011
112
7
68
cPanel Access Level
Root Administrator
Hi,

I can't find any documentation on the files on the /script folder. Can anyone kindly give me a link to the proper documentation for this?

Thank you :)
 

JayFromEpic

Well-Known Member
Apr 2, 2011
218
8
68
Scottsdale
cPanel Access Level
Root Administrator
Twitter
I am not sure on the actually documentation, but here is some:

/usr/local/cpanel/scripts/fixvaliases -> this modifies permissions and ownership on /etc/valiases files

/usr/local/cpanel/scripts/chownpublichtmls -> this chowns /home/username/public_html folders to the right permissions

/usr/local/cpanel/scripts/eximup --> updates exim

/usr/local/cpanel/scripts/buildnsdconf -> rebuilds /etc/named.conf file


You can thank Tristen for this!
 

cPanelTristan

Quality Assurance Analyst
Staff member
Oct 2, 2010
7,607
38
248
somewhere over the rainbow
cPanel Access Level
Root Administrator
Overall, using /scripts aren't the method we suggest. The API is the primary means of working with cPanel and WHM on a server. If a script has capabilities within the API, the API is how we would recommend doing the task required. As such, any script could be removed, revised, deprecated or cease working for any cPanel update without notification. The /scripts aren't for user interaction but for the control panel system itself. Basically, this means you shouldn't really even be using most of them. The only exceptions I can think are those advised in our documentation for Apache rebuild, or the restart service scripts.