Skip to main content
cPanel Technical Support has been heavily impacted by hurricane Beryl and our ability to respond to tickets has been hindered as a result. We appreciate your understanding and patience as we address these delays.

Problem with Custom cPAddons manually installation

Comments

4 comments

  • KostonConsulting
    What are the contents of your config file? Specfically, what's this variable set to? 'addon_path' => 'Vendor/Category/Name', #Path of install files on server
    0
  • Jinvan
    Thanks for the response. Actually, I just copy the WordPress Addon on the cpanel sync server at [url=http://httpupdate.cpanel.net/cpanelsync/cpaddons/cPanel/Blogs/]Index of /cpanelsync/cpaddons/cPanel/Blogs/ to get start with cPAddons. I see the variables of 'addon_path' at the doc([url=http://docs.cpanel.net/twiki/bin/view/SoftwareDevelopmentKit/ConfigFileVars]Configuration File Variables), but I don't see it in the WordPress.pm file. Which file and section should I put the 'addon_path' to ? thanks. My .pm file is just the same as
    0
  • Jinvan
    [quote="KostonConsulting, post: 1482921">What are the contents of your config file? Specfically, what's this variable set to? 'addon_path' => 'Vendor/Category/Name', #Path of install files on server

    Where should I put the 'addon_path' variables ?
    0
  • KostonConsulting
    [quote="Jinvan, post: 1483821">Where should I put the 'addon_path' variables ?
    It looks like the 'addon_path' variable defaults to your package path so, if you define: package My::Software::Advanced_Addon;
    addon_path with be /usr/local/cpanel/cpaddons/My/Software/Advanced_Addon Now, you need to ensure that your .tar.gz archive is present in that path and named the same as your version is set. So if you set version like so: our $meta_info = { 'version' => '2.2.3' ...... };
    You should verify that your .tar.gz archive is located at /usr/local/cpanel/addons/My/Software/Advanced_Addon/2.2.3.tar.gz BTW, if you want to dive into the installer code, it's available in /usr/local/cpanel/Cpanel/cPAddons.pm
    0

Please sign in to leave a comment.