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.