webdude12

Member
Feb 22, 2005
7
0
151
Ok, I have a skelton directory setup with a custom application installed in it. I then use the WHM api to create new accounts, and my custom application gets copied over automatically. :)

Yeah! No more large uploads, but some strange is going on now.

As you can imagine with any custom application, there are updates. So I upload the updates to the Skelton directory. But when a new account is created, it some how uses the old file. I double check the skelton directory, and sure enough it has the new files....

I use the API through a reseller account, and the cpanel3-skel is created in that reseller's account.

Does cPanel cache these files anywhere else. I have already looked in /root/cpanel3-skel and there is nothing.... Any other ideas?
 

cPanelDavidG

Technical Product Specialist
Nov 29, 2006
11,212
13
313
Houston, TX
cPanel Access Level
Root Administrator
Ok, I have a skelton directory setup with a custom application installed in it. I then use the WHM api to create new accounts, and my custom application gets copied over automatically. :)

Yeah! No more large uploads, but some strange is going on now.

As you can imagine with any custom application, there are updates. So I upload the updates to the Skelton directory. But when a new account is created, it some how uses the old file. I double check the skelton directory, and sure enough it has the new files....

I use the API through a reseller account, and the cpanel3-skel is created in that reseller's account.

Does cPanel cache these files anywhere else. I have already looked in /root/cpanel3-skel and there is nothing.... Any other ideas?
These files are not cached.

Are you uploading the updates via File Manager or FTP?

If it is File Manager, I've made this mistake myself before. The trick is to extract the contents of the archive containing the updated script to an empty directory (presumably one you create just prior to extraction). Then you can move those files to the directory they need to be in and delete that empty directory if you desire.

File Manager currently does not have the capability to overwrite existing files directly from an archive, something I admit is a pain when updating PHP scripts manually.