Skip Menu |

This queue is for tickets about the cPanel-SyncUtil CPAN distribution.

Report information
The Basics
Id: 68114
Status: rejected
Priority: 0/
Queue: cPanel-SyncUtil

People
Owner: Nobody in particular
Requestors: herbaut [...] xandmail.com
Cc:
AdminCc:

Bug Information
Severity: (no value)
Broken in: (no value)
Fixed in: (no value)



Subject: cPanel::SyncUtil documentation bug ?
Date: Wed, 11 May 2011 15:54:24 +0200
To: bug-cPanel-SyncUtil [...] rt.cpan.org
From: "Eric Herbaut" <herbaut [...] xandmail.com>
Hello M. Muey,   I am a newbie with cPanel addons and have been trying to set up a cPanel Sync Server using your cPanel::SyncUtil module.   The module works fine, but I used the example given in your documentation page http://search.cpan.org/~dmuey/cPanel-SyncUtil-0.7/lib/cPanel/SyncUtil.pm, under the paragraph "Your webserver and cpanelsync aware directories" to set up my sync server directory in Apache, and the sync server did not work.   After some research, I found out that the "SetHandler default" instruction was overriding the "AddHandler cgi-script .cgi .pl .plx .ppl .perl" that cPanel places in the httpd.conf file, so that the perl script in my sync server directory was not executed. By commenting this line and adding "Options +ExecCGI" in its place, the synchronization worked :   <Directory /path/to/cpanelsync/dir>        # ForceType and Header are not strictly necessary but        # may help ensure browsers can figure out what you want        ForceType application/octet-stream        Header set Content-Disposition attachment        DefaultType application/octet-stream        #SetHandler default        Options +ExecCGI</Directory>  I am providing you with this feedback, so that maybe after verification you will modify the example given in your documentation page and future readers will not encounter the same problem...   If you have any questions, feel free to contact us and request additional explanations. Best regards,   Eric Herbaut Merci de respecter l'environnement, n'imprimez ce message que si nécessaire.  Please consider your environmental responsibility before printing this e-mail.
Hello Eric, Show quoted text
> After some research, I found out that the "SetHandler default" > instruction was overriding the "AddHandler cgi-script .cgi .pl .plx > .ppl .perl" that cPanel places in the httpd.conf file, so that the > perl script in my sync server directory was not executed. By > commenting this line and adding "Options +ExecCGI" in its place, > the synchronization worked :
... Show quoted text
> If you have any questions, feel free to contact us and request > additional explanations.
Scripts in the sync directory are not meant to be executed (that is so it can sync the source code of the script instead of whatever it happens to output). So it sounds like the behavior you're seeing is what is expected. Perhaps I am misunderstanding? thanks, Dan
Show quoted text
> So it sounds like the behavior you're seeing is what is expected. > Perhaps I am > misunderstanding?
If I am misunderstanding please let me know (this case will be reopened), thanks!
Subject: Re: [rt.cpan.org #68114] cPanel::SyncUtil documentation bug ?
Date: Wed, 11 May 2011 17:49:53 +0200
To: bug-cPanel-SyncUtil [...] rt.cpan.org
From: "Eric Herbaut" <herbaut [...] xandmail.com>
Hello Daniel,   The behavior was not as expected, as in the cPanel administration interface, I was providing the URL of the perl script which is at the root of the sync server, so that it can add my vendor module to the list of available modules, and the execution result in cPanel was saying that the URL I had provided (I quote) "did not work or was otherwise invalid".   I have contacted the cPanel support to help diagnose the issue and the resulting diagnostic was:   When you go to http://xpanel.xandmail.com/cpaddons/XandMail.pl it just downloads the whole file. It should be executing that perl and returning back whatever variable was requested. So to fix this problem you will need to configure apache to execute the perl as a CGI script. I had to remove the "SetHandler default" instruction and replace it with "Options +ExecCGI" so that the XandMail.pl script would be executed as a perl script and return my vendor name to the cPanel program (instead of being returned as plain text) enabling it also to query the host, path and md5 sum of my module.   If you have any questions, feel free to contact us and request additional explanations. Best regards,   Eric Herbaut Merci de respecter l'environnement, n'imprimez ce message que si nécessaire.  Please consider your environmental responsibility before printing this e-mail.  Da: "Daniel Muey via RT" bug-cPanel-SyncUtil@rt.cpan.org A: herbaut@xandmail.com Cc: Data: Wed, 11 May 2011 11:28:02 -0400 Oggetto: [rt.cpan.org #68114] cPanel::SyncUtil documentation bug ? Show quoted text
> > >
> > So it sounds like the behavior you're seeing is what is expected. > > Perhaps I am > > misunderstanding?
> > If I am misunderstanding please let me know (this case will be reopened), thanks! >
Subject: Re: [rt.cpan.org #68114] cPanel::SyncUtil documentation bug ?
Date: Wed, 11 May 2011 10:59:34 -0500
To: bug-cPanel-SyncUtil [...] rt.cpan.org
From: Dan Muey <webmaster [...] simplemood.com>
Show quoted text
> http://xpanel.xandmail.com/cpaddons/XandMail.pl it just downloads the whole file.
Is http://xpanel.xandmail.com/cpaddons/ the cpanelsync directory? If so: Is XandMail.pl part of the script being installed or is it the vendor URL script? If part of the install: it should be downloading instead ogf executing If part of the Vendor URL: that script should not be in your cpanelsycn dir since If not: The directory should not be setup as per the docs.
CC: herbaut [...] xandmail.com
Subject: Re: [rt.cpan.org #68114] cPanel::SyncUtil documentation bug ?
Date: Wed, 11 May 2011 18:30:28 +0200
To: bug-cPanel-SyncUtil [...] rt.cpan.org
From: "Eric Herbaut" <herbaut [...] xandmail.com>
  Show quoted text
> Is http://xpanel.xandmail.com/cpaddons/ the cpanelsync directory?yes, it is the root directory of the sync server.
  Show quoted text
> Is XandMail.pl part of the script being installed or is it the vendor URL script?it is the vendor URL script.
  Show quoted text
> If part of the Vendor URL: that script should not be in your cpanelsycn dir since
You mean to say that the vendor URL script should not be located under the sync server's root directory, but anywhere else ? If you have any questions, feel free to contact us and request additional explanations. Best regards,   Eric Herbaut Merci de respecter l'environnement, n'imprimez ce message que si nécessaire.  Please consider your environmental responsibility before printing this e-mail.  Da: "SimpleMood Webmaster via RT" bug-cPanel-SyncUtil@rt.cpan.org A: herbaut@xandmail.com Cc: Data: Wed, 11 May 2011 11:59:44 -0400 Oggetto: Re: [rt.cpan.org #68114] cPanel::SyncUtil documentation bug ? Show quoted text
> >
> > http://xpanel.xandmail.com/cpaddons/XandMail.pl it just downloads the whole file.
> > Is http://xpanel.xandmail.com/cpaddons/ the cpanelsync directory? > > If so: > > Is XandMail.pl part of the script being installed or is it the vendor URL script? > > If part of the install: it should be downloading instead ogf executing > > If part of the Vendor URL: that script should not be in your cpanelsycn dir since > > If not: The directory should not be setup as per the docs. >
Subject: Re: [rt.cpan.org #68114] cPanel::SyncUtil documentation bug ?
Date: Wed, 11 May 2011 12:22:16 -0500
To: bug-cPanel-SyncUtil [...] rt.cpan.org
From: Dan Muey <webmaster [...] simplemood.com>
Show quoted text
>> Is http://xpanel.xandmail.com/cpaddons/ the cpanelsync directory?
>
Show quoted text
> yes, it is the root directory of the sync server. >
>> Is XandMail.pl part of the script being installed or is it the vendor URL script?
> > it is the vendor URL script. >
>> If part of the Vendor URL: that script should not be in your cpanelsycn dir since ...
> > You mean to say that the vendor URL script should not be located under the sync server's root directory, but anywhere else ?
correct, the Vendor URL needs to be executed and return different things to the browser. It is not intended/necessary to be synced to a server. The cpanelsync directory is all downloads. The files are what make up the cPAddon and those files are what get synced to the server.
Subject: Re: [rt.cpan.org #68114] cPanel::SyncUtil documentation bug ?
Date: Thu, 12 May 2011 09:55:26 +0200
To: bug-cPanel-SyncUtil [...] rt.cpan.org
From: "Eric Herbaut" <herbaut [...] xandmail.com>
Hello M. Muey, Thanks for your advice. I have modified my installation accordingly.     If you have any questions, feel free to contact us and request additional explanations. Best regards,   Eric Herbaut Merci de respecter l'environnement, n'imprimez ce message que si nécessaire.  Please consider your environmental responsibility before printing this e-mail.  Da: "SimpleMood Webmaster via RT" bug-cPanel-SyncUtil@rt.cpan.org A: herbaut@xandmail.com Cc: Data: Wed, 11 May 2011 13:22:34 -0400 Oggetto: Re: [rt.cpan.org #68114] cPanel::SyncUtil documentation bug ? Show quoted text
> >
> >> Is http://xpanel.xandmail.com/cpaddons/ the cpanelsync directory?
> >
>
> > yes, it is the root directory of the sync server. > >
> >> Is XandMail.pl part of the script being installed or is it the vendor URL script?
> > > > it is the vendor URL script. > >
> >> If part of the Vendor URL: that script should not be in your cpanelsycn dir since ...
> > > > You mean to say that the vendor URL script should not be located under the sync server's root directory, but anywhere else ?
> > correct, the Vendor URL needs to be executed and return different things to the browser. It is not intended/necessary to be synced to a server. > > The cpanelsync directory is all downloads. The files are what make up the cPAddon and those files are what get synced to the server. > > >
answered. choosing rejected since we changed nothing?