<?xml version="1.0" encoding="ISO-8859-1"?>

<rss version="2.0" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:content="http://purl.org/rss/1.0/modules/content/">
	<channel>
		<title>cPanel Forums - cPanel Developers</title>
		<link>http://forums.cpanel.net/</link>
		<description>Assistance with customizing cPanel software including APIs, plugins, hooks and remote integration.</description>
		<language>en</language>
		<lastBuildDate>Sat, 18 May 2013 18:37:00 GMT</lastBuildDate>
		<generator>vBulletin</generator>
		<ttl>1440</ttl>
		<image>
			<url>http://forums.cpanel.net/granite2/images/misc/rss.png</url>
			<title>cPanel Forums - cPanel Developers</title>
			<link>http://forums.cpanel.net/</link>
		</image>
		<item>
			<title>unable to install perl</title>
			<link>http://forums.cpanel.net/f42/unable-install-perl-346761.html</link>
			<pubDate>Thu, 16 May 2013 19:53:40 GMT</pubDate>
			<description><![CDATA[Hi, 
 
While installing the perl I got the following error.. 
 
 
---Quote--- 
Can't locate Cpanel/RcsRecord.pm in @INC (@INC contains: /usr/local/cpanel /usr/lib/perl5/site_perl/5.8.8/i386-linux-thread-multi 
---End Quote--- 
Also for checkperlmodules I am getting]]></description>
			<content:encoded><![CDATA[<div>Hi,<br />
<br />
While installing the perl I got the following error..<br />
<br />
<div class="bbcode_container">
	<div class="bbcode_description">Quote:</div>
	<div class="bbcode_quote printable">
		<hr />
		
			Can't locate Cpanel/RcsRecord.pm in @INC (@INC contains: /usr/local/cpanel /usr/lib/perl5/site_perl/5.8.8/i386-linux-thread-multi
			
		<hr />
	</div>
</div>Also for checkperlmodules I am getting <br />
<br />
<div class="bbcode_container">
	<div class="bbcode_description">Quote:</div>
	<div class="bbcode_quote printable">
		<hr />
		
			root@host3 [~]# /scripts/checkperlmodules --force<br />
Can't locate Cpanel/PerlModuleChecker.pm in @INC (@INC contains: /usr/local/cpanel /usr/local/lib/perl5/5.8.8/i686-linux /usr/local/lib/perl5/5.8.8 /usr/local/lib/perl5/site_perl/5.8.8/i686-linux /usr/local/lib/perl5/site_perl/5.8.8 /usr/local/lib/perl5/site_perl .) at /scripts/checkperlmodules line 10.<br />
BEGIN failed--compilation aborted at /scripts/checkperlmodules line 10.<br />
root@host3 [~]#
			
		<hr />
	</div>
</div>Please assist ..</div>

]]></content:encoded>
			<category domain="http://forums.cpanel.net/cpanel-developers.html">cPanel Developers</category>
			<dc:creator>prashantp786j</dc:creator>
			<guid isPermaLink="true">http://forums.cpanel.net/f42/unable-install-perl-346761.html</guid>
		</item>
		<item>
			<title>Modify raw SPF record</title>
			<link>http://forums.cpanel.net/f42/modify-raw-spf-record-345661.html</link>
			<pubDate>Mon, 13 May 2013 20:06:07 GMT</pubDate>
			<description><![CDATA[Hi, 
 
When I create an account by the api, I enable authentication email DKIM and SPF, but my current raw SPF record is: "v = spf1 a mx? all". 
. 
How do I get "*v = spf1 a mx -all*" through the api? 
I tried several ways and no success. 
Could anyone help me? 
 
Thank you]]></description>
			<content:encoded><![CDATA[<div>Hi,<br />
<br />
When I create an account by the api, I enable authentication email DKIM and SPF, but my current raw SPF record is: &quot;v = spf1 a mx? all&quot;.<br />
.<br />
How do I get &quot;<b>v = spf1 a mx -all</b>&quot; through the api?<br />
I tried several ways and no success.<br />
Could anyone help me?<br />
<br />
Thank you</div>

]]></content:encoded>
			<category domain="http://forums.cpanel.net/cpanel-developers.html">cPanel Developers</category>
			<dc:creator>danielati</dc:creator>
			<guid isPermaLink="true">http://forums.cpanel.net/f42/modify-raw-spf-record-345661.html</guid>
		</item>
		<item>
			<title>How can I change CONTACTEMAIL and CONTACTEMAIL2 using the API?</title>
			<link>http://forums.cpanel.net/f42/how-can-i-change-contactemail-contactemail2-using-api-343392.html</link>
			<pubDate>Tue, 07 May 2013 04:24:49 GMT</pubDate>
			<description><![CDATA[Hi, 
 
I was able to make the connection and list all accounts using the official xmlapi-php package. 
 
However, I couldn't figure out how to change CONTACTEMAIL and CONTACTEMAIL2. 
 
Please help. 
 
EDIT: I just found this: http://docs.cpanel.net/twiki/bin/view/ApiDocs/Api2/ApiCustInfo but I am...]]></description>
			<content:encoded><![CDATA[<div>Hi,<br />
<br />
I was able to make the connection and list all accounts using the official xmlapi-php package.<br />
<br />
However, I couldn't figure out how to change CONTACTEMAIL and CONTACTEMAIL2.<br />
<br />
Please help.<br />
<br />
EDIT: I just found this: <a href="http://docs.cpanel.net/twiki/bin/view/ApiDocs/Api2/ApiCustInfo" target="_blank">http://docs.cpanel.net/twiki/bin/vie...i2/ApiCustInfo</a> but I am unable to figure out how to call it from my PHP script.</div>

]]></content:encoded>
			<category domain="http://forums.cpanel.net/cpanel-developers.html">cPanel Developers</category>
			<dc:creator>emurad</dc:creator>
			<guid isPermaLink="true">http://forums.cpanel.net/f42/how-can-i-change-contactemail-contactemail2-using-api-343392.html</guid>
		</item>
		<item>
			<title>Migration path from API1 after cPanel upgrade to 11.36</title>
			<link>http://forums.cpanel.net/f42/migration-path-api1-after-cpanel-upgrade-11-36-a-343361.html</link>
			<pubDate>Mon, 06 May 2013 23:06:45 GMT</pubDate>
			<description><![CDATA[So we recently upgraded our server to cPanel 11.36 from a prior version and as it turns out it rendered all of our API1 calls obsolete and useless. 
 
We've been using David Neimeyer's API libraries from 2011 which were working great up to this point. 
 
Are there any recommendations for an easy...]]></description>
			<content:encoded><![CDATA[<div>So we recently upgraded our server to cPanel 11.36 from a prior version and as it turns out it rendered all of our API1 calls obsolete and useless.<br />
<br />
We've been using David Neimeyer's API libraries from 2011 which were working great up to this point.<br />
<br />
Are there any recommendations for an easy migration/upgrade path to a usable API now that API1 is deprecated that works as well as David's PHP library?</div>

]]></content:encoded>
			<category domain="http://forums.cpanel.net/cpanel-developers.html">cPanel Developers</category>
			<dc:creator>varr</dc:creator>
			<guid isPermaLink="true">http://forums.cpanel.net/f42/migration-path-api1-after-cpanel-upgrade-11-36-a-343361.html</guid>
		</item>
		<item>
			<title>Using security tokens in account creation script</title>
			<link>http://forums.cpanel.net/f42/using-security-tokens-account-creation-script-343251.html</link>
			<pubDate>Mon, 06 May 2013 19:09:11 GMT</pubDate>
			<description><![CDATA[Hello 
 
I was using the following php script to create accounts 
 
 
 
Code: 
--------- 
$script = "http://{$whm_user}:{$whm_pass}@{$whm_host}:2086/scripts/wwwacct"; 
$params = "?plan={$user_plan}&domain={$user_domain}&username={$user_name}&password={$user_pass}&contactemail=info@mydomain.com";]]></description>
			<content:encoded><![CDATA[<div>Hello<br />
<br />
I was using the following php script to create accounts<br />
<br />
<br />
<div class="bbcode_container">
	<div class="bbcode_description">Code:</div>
	<hr /><code class="bbcode_code">$script = &quot;http://{$whm_user}:{$whm_pass}@{$whm_host}:2086/scripts/wwwacct&quot;;<br />
$params = &quot;?plan={$user_plan}&amp;domain={$user_domain}&amp;username={$user_name}&amp;password={$user_pass}&amp;contactemail=info@mydomain.com&quot;;<br />
$result = file_get_contents($script.$params);<br />
<br />
echo $result;</code><hr />
</div><br />
Now for security tokens I get an access denied error<br />
<br />
Can anyone please post an updated working php script?<br />
<br />
Thank you very much!</div>

]]></content:encoded>
			<category domain="http://forums.cpanel.net/cpanel-developers.html">cPanel Developers</category>
			<dc:creator>forx</dc:creator>
			<guid isPermaLink="true">http://forums.cpanel.net/f42/using-security-tokens-account-creation-script-343251.html</guid>
		</item>
		<item>
			<title>WHM Account Creation API Issue</title>
			<link>http://forums.cpanel.net/f42/whm-account-creation-api-issue-342941.html</link>
			<pubDate>Sat, 04 May 2013 23:18:41 GMT</pubDate>
			<description><![CDATA[I've been pulling my hair out on this all day, and I'm wondering if there's any chance there's a bug in the API. 
 
We're on build 5 of WHM 11.36.1, and we're building our own management utility to handle back-end account creation, support, etc. We're using curl throughout our utility to surface...]]></description>
			<content:encoded><![CDATA[<div>I've been pulling my hair out on this all day, and I'm wondering if there's any chance there's a bug in the API.<br />
<br />
We're on build 5 of WHM 11.36.1, and we're building our own management utility to handle back-end account creation, support, etc. We're using curl throughout our utility to surface account details and information from WHM and cPanel, with no issues at all, but we're seeing some very strange behavior when using the API to create accounts.<br />
<br />
We automatically generate random 8 character usernames, and random secure passwords, which are pushed to the curl url during execution. We're doing this all behind https, using the WHM accesshash for authentication (just like all of our other curl calls).<br />
<br />
<div class="bbcode_container">
	<div class="bbcode_description">PHP Code:</div>
	<hr /><code class="bbcode_code"><code><span style="color: #000000">
<span style="color: #0000BB">$newAcct&nbsp;</span><span style="color: #007700">=&nbsp;</span><span style="color: #0000BB">curl_init</span><span style="color: #007700">();<br /></span><span style="color: #0000BB">curl_setopt</span><span style="color: #007700">(</span><span style="color: #0000BB">$newAcct</span><span style="color: #007700">,&nbsp;</span><span style="color: #0000BB">CURLOPT_SSL_VERIFYHOST</span><span style="color: #007700">,</span><span style="color: #0000BB">0</span><span style="color: #007700">);<br /></span><span style="color: #0000BB">curl_setopt</span><span style="color: #007700">(</span><span style="color: #0000BB">$newAcct</span><span style="color: #007700">,&nbsp;</span><span style="color: #0000BB">CURLOPT_SSL_VERIFYPEER</span><span style="color: #007700">,</span><span style="color: #0000BB">0</span><span style="color: #007700">);<br /></span><span style="color: #0000BB">curl_setopt</span><span style="color: #007700">(</span><span style="color: #0000BB">$newAcct</span><span style="color: #007700">,&nbsp;</span><span style="color: #0000BB">CURLOPT_RETURNTRANSFER</span><span style="color: #007700">,</span><span style="color: #0000BB">1</span><span style="color: #007700">);<br /></span><span style="color: #0000BB">curl_setopt</span><span style="color: #007700">(</span><span style="color: #0000BB">$newAcct</span><span style="color: #007700">,&nbsp;</span><span style="color: #0000BB">CURLOPT_HEADER</span><span style="color: #007700">,&nbsp;</span><span style="color: #0000BB">0</span><span style="color: #007700">);<br /></span><span style="color: #0000BB">$newAcctHeader</span><span style="color: #007700">&#91;</span><span style="color: #0000BB">0</span><span style="color: #007700">&#93;&nbsp;=&nbsp;</span><span style="color: #DD0000">"Authorization:&nbsp;WHM&nbsp;root:"</span><span style="color: #007700">.</span><span style="color: #0000BB">preg_replace</span><span style="color: #007700">(</span><span style="color: #DD0000">"'(\r|\n)'"</span><span style="color: #007700">,</span><span style="color: #DD0000">""</span><span style="color: #007700">,</span><span style="color: #0000BB">$accesshash</span><span style="color: #007700">);<br /></span><span style="color: #0000BB">curl_setopt</span><span style="color: #007700">(</span><span style="color: #0000BB">$newAcct</span><span style="color: #007700">,&nbsp;</span><span style="color: #0000BB">CURLOPT_HTTPHEADER</span><span style="color: #007700">,</span><span style="color: #0000BB">$newAcctHeader</span><span style="color: #007700">);<br /></span><span style="color: #0000BB">curl_setopt</span><span style="color: #007700">(</span><span style="color: #0000BB">$newAcct</span><span style="color: #007700">,&nbsp;</span><span style="color: #0000BB">CURLOPT_URL</span><span style="color: #007700">,</span><span style="color: #DD0000">"https://"</span><span style="color: #007700">.</span><span style="color: #0000BB">$host</span><span style="color: #007700">.</span><span style="color: #DD0000">":2087/json-api/createacct?username="</span><span style="color: #007700">.</span><span style="color: #0000BB">$username</span><span style="color: #007700">.</span><span style="color: #DD0000">"&amp;plan="</span><span style="color: #007700">.</span><span style="color: #0000BB">$package</span><span style="color: #007700">.</span><span style="color: #DD0000">"&amp;password="</span><span style="color: #007700">.</span><span style="color: #0000BB">$password</span><span style="color: #007700">.</span><span style="color: #DD0000">"&amp;domain="</span><span style="color: #007700">.</span><span style="color: #0000BB">$domain</span><span style="color: #007700">);<br /></span><span style="color: #0000BB">$result&nbsp;</span><span style="color: #007700">=&nbsp;</span><span style="color: #0000BB">curl_exec</span><span style="color: #007700">(</span><span style="color: #0000BB">$newAcct</span><span style="color: #007700">);<br /></span><span style="color: #0000BB">curl_close</span><span style="color: #007700">(</span><span style="color: #0000BB">$newAcct</span><span style="color: #007700">);<br /><br />if&nbsp;(</span><span style="color: #0000BB">strpos</span><span style="color: #007700">(</span><span style="color: #0000BB">$result</span><span style="color: #007700">,&nbsp;</span><span style="color: #DD0000">"...Done"</span><span style="color: #007700">)&nbsp;===&nbsp;</span><span style="color: #0000BB">false</span><span style="color: #007700">)&nbsp;{<br />&nbsp;&nbsp;&nbsp;&nbsp;echo&nbsp;</span><span style="color: #0000BB">alert_bar</span><span style="color: #007700">(</span><span style="color: #DD0000">'Error&nbsp;creating&nbsp;hosting&nbsp;account&nbsp;('</span><span style="color: #007700">.</span><span style="color: #0000BB">$username</span><span style="color: #007700">.</span><span style="color: #DD0000">').&nbsp;('</span><span style="color: #007700">.</span><span style="color: #0000BB">$result</span><span style="color: #007700">.</span><span style="color: #DD0000">')'</span><span style="color: #007700">,</span><span style="color: #DD0000">'red'</span><span style="color: #007700">);<br />}&nbsp;<br /></span><span style="color: #0000BB"></span>
</span>
</code></code><hr />
</div>Every single time we execute this, it tells us the username is already being used (and errors), but creates the account anyway. As an example...<br />
<br />
The script generated a username of &quot;ofme7bwe&quot; and attempted to create an account for the domain &quot;build.host.com&quot;. Neither the domain or user exists in the system. The script did create the account, but the output of the API shows it failed because of the user.<br />
<br />
<div class="bbcode_container">
	<div class="bbcode_description">Code:</div>
	<hr /><code class="bbcode_code">{&quot;result&quot;:[{&quot;options&quot;:null,&quot;statusmsg&quot;:&quot;Sorry, a group for that username already exists.&quot;,&quot;status&quot;:0,&quot;rawout&quot;:null}]}</code><hr />
</div>We're relying on the WHM API output to either halt or continue the configuration of the account, so this &quot;false positive&quot; is holding up the entire script even though it seems to successfully build the account.<br />
<br />
Any thoughts?</div>

]]></content:encoded>
			<category domain="http://forums.cpanel.net/cpanel-developers.html">cPanel Developers</category>
			<dc:creator>webdes03</dc:creator>
			<guid isPermaLink="true">http://forums.cpanel.net/f42/whm-account-creation-api-issue-342941.html</guid>
		</item>
		<item>
			<title>Will Perl be updated in cPanel?</title>
			<link>http://forums.cpanel.net/f42/will-perl-updated-cpanel-342901.html</link>
			<pubDate>Sat, 04 May 2013 17:29:13 GMT</pubDate>
			<description><![CDATA[Hello, 
 
I was looking to see if I could find anything on if perl will ever be updated from 5.8? Like this post (http://forums.cpanel.net/f5/how-upgrade-perl-5-8-5-10-cpanel-279042.html), I'd like to have at least 5.10 myself but I don't want to mess with the base install and because I use...]]></description>
			<content:encoded><![CDATA[<div>Hello,<br />
<br />
I was looking to see if I could find anything on if perl will ever be updated from 5.8? Like <a href="!279042!http://forums.cpanel.net/f5/how-upgrade-perl-5-8-5-10-cpanel-279042.html" target="_blank">this post</a>, I'd like to have at least 5.10 myself but I don't want to mess with the base install and because I use mod_perl, I think that would be the only way.<br />
<br />
Perl 5.8.8 is almost 7 years old which makes me wonder if it would ever be updated.<br />
<br />
Thanks</div>

]]></content:encoded>
			<category domain="http://forums.cpanel.net/cpanel-developers.html">cPanel Developers</category>
			<dc:creator>analog2112</dc:creator>
			<guid isPermaLink="true">http://forums.cpanel.net/f42/will-perl-updated-cpanel-342901.html</guid>
		</item>
		<item>
			<title>DNSonly problem</title>
			<link>http://forums.cpanel.net/f42/dnsonly-problem-342761.html</link>
			<pubDate>Fri, 03 May 2013 18:50:53 GMT</pubDate>
			<description>Hello developers, 
 
I just noticed this insane thing. 
 
I have multiple servers: 
domain1.com first NS - server itself, secondary - ns1.dnsonly.com 
domain2.com first NS - server itself, secondary - ns1.dnsonly.com 
domain3.com first NS - server itself, secondary - ns1.dnsonly.com 
 
One DNSonly...</description>
			<content:encoded><![CDATA[<div>Hello developers,<br />
<br />
I just noticed this insane thing.<br />
<br />
I have multiple servers:<br />
domain1.com first NS - server itself, secondary - ns1.dnsonly.com<br />
domain2.com first NS - server itself, secondary - ns1.dnsonly.com<br />
domain3.com first NS - server itself, secondary - ns1.dnsonly.com<br />
<br />
One DNSonly server:<br />
ns1.dnsonly.com<br />
<br />
I have set servers (domain1.com, domain2.com domain3.com) DNS clusters to &quot;Synchronize changes&quot; to ns1.dnsonly.com server (one way, right), and <b>UNchecked </b>&quot; Setup Reverse Trust Relationship&quot;.<br />
<br />
That means domain1.com, domain2.com domain3.com  only outgoing changes to ns1.dnsonly.com right?<br />
WRONG!<br />
<br />
After some time  domain1.com, domain2.com and domain3.com began sharing records.<br />
When i make &quot;Synchronize all zones to all servers&quot; all zones are synchronized in all servers.<br />
<br />
How? I do not provide ns1.dnsonly.com any access to servers.<br />
<br />
&quot;Synchronize all zones to all servers&quot; is useful when more than one DNSonly server will come online, but i don't get how it syncs with other servers.<br />
<br />
To be clear:<br />
ns1.dnsonly.com - There are currently no servers in your DNS cluster.<br />
And servers only with one arrow to the ns1.dnsonly.com .<br />
<br />
<br />
Can anybody clarify this?</div>

]]></content:encoded>
			<category domain="http://forums.cpanel.net/cpanel-developers.html">cPanel Developers</category>
			<dc:creator>simonas</dc:creator>
			<guid isPermaLink="true">http://forums.cpanel.net/f42/dnsonly-problem-342761.html</guid>
		</item>
		<item>
			<title>cPanel::PublicAPI bugs</title>
			<link>http://forums.cpanel.net/f42/cpanel-publicapi-bugs-341711.html</link>
			<pubDate>Mon, 29 Apr 2013 09:51:20 GMT</pubDate>
			<description>Hello, there is a cPanel::PublicAPI (https://metacpan.org/module/cPanel::PublicAPI) module written in Perl, and it has some bugs reported on the RT CPAN page (https://rt.cpan.org/Public/Dist/Display.html?Name=cPanel-PublicAPI). 
 
Does anyone care to fix them? 
 
This module is used in our...</description>
			<content:encoded><![CDATA[<div>Hello, there is a <a href="https://metacpan.org/module/cPanel::PublicAPI" target="_blank">cPanel::PublicAPI</a> module written in Perl, and it has some bugs reported on the <a href="https://rt.cpan.org/Public/Dist/Display.html?Name=cPanel-PublicAPI" target="_blank">RT CPAN page</a>.<br />
<br />
Does anyone care to fix them?<br />
<br />
This module is used in our organization, and it would be nice to see it production-ready and usable.<br />
<br />
Or can anyone suggest a good alternative (or should we just write our own)?<br />
<br />
Thanks.</div>

]]></content:encoded>
			<category domain="http://forums.cpanel.net/cpanel-developers.html">cPanel Developers</category>
			<dc:creator>odmink0</dc:creator>
			<guid isPermaLink="true">http://forums.cpanel.net/f42/cpanel-publicapi-bugs-341711.html</guid>
		</item>
		<item>
			<title>Need help for php script</title>
			<link>http://forums.cpanel.net/f42/need-help-php-script-340692.html</link>
			<pubDate>Wed, 24 Apr 2013 16:21:53 GMT</pubDate>
			<description>Hello, 
 
I have tried everything but no success All I need is a login, list domains from DNS and the ability to edit and delete them. need script for this please help me out for the same thanks in advance.</description>
			<content:encoded><![CDATA[<div>Hello,<br />
<br />
I have tried everything but no success All I need is a login, list domains from DNS and the ability to edit and delete them. need script for this please help me out for the same thanks in advance.</div>

]]></content:encoded>
			<category domain="http://forums.cpanel.net/cpanel-developers.html">cPanel Developers</category>
			<dc:creator>rohitmule</dc:creator>
			<guid isPermaLink="true">http://forums.cpanel.net/f42/need-help-php-script-340692.html</guid>
		</item>
	</channel>
</rss>
