<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:wfw="http://wellformedweb.org/CommentAPI/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
	xmlns:slash="http://purl.org/rss/1.0/modules/slash/"
	>

<channel>
	<title>Digital Psyche &#124; Technology Resource Blog &#187; Hacks</title>
	<atom:link href="http://digitalpsyche.org/tag/hacks/feed/" rel="self" type="application/rss+xml" />
	<link>http://digitalpsyche.org</link>
	<description></description>
	<lastBuildDate>Fri, 07 Aug 2009 07:34:46 +0000</lastBuildDate>
	<generator>http://wordpress.org/?v=2.8</generator>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
			<item>
		<title>Hosting SugarCRM on 1and1 Shared Package</title>
		<link>http://digitalpsyche.org/hosting-sugarcrm-on-1and1-shared-package/</link>
		<comments>http://digitalpsyche.org/hosting-sugarcrm-on-1and1-shared-package/#comments</comments>
		<pubDate>Mon, 01 Jun 2009 04:47:00 +0000</pubDate>
		<dc:creator>digitalpsyche</dc:creator>
				<category><![CDATA[OpenSource]]></category>
		<category><![CDATA[Software]]></category>
		<category><![CDATA[1and1]]></category>
		<category><![CDATA[Hacks]]></category>
		<category><![CDATA[SugarCRM]]></category>
		<category><![CDATA[Tweaks]]></category>

		<guid isPermaLink="false">http://digitalpsyche.org/blog/2009/05/hosting-sugarcrm-on-1and1-shared-package/</guid>
		<description><![CDATA[



1and1.com provides an economical shared hosting package. And with features such as php libraries built with the imap-c libraries, a generous daily smtp relay limit, php5 and mysql support, it felt like the ideal place for me to host a SugarCRM instance.
However, receiving several errors after the install was complete made me think that perhaps [...]]]></description>
			<content:encoded><![CDATA[<p><script type="text/javascript"><!--
google_ad_client = "pub-8209969931944216";
/* 468x60, created 7/2/09 */
google_ad_slot = "7236541322";
google_ad_width = 468;
google_ad_height = 60;
//-->
</script>
<script type="text/javascript"
src="http://pagead2.googlesyndication.com/pagead/show_ads.js">
</script></p>
<p><a href="http://digitalpsyche.org/wp-content/uploads/2009/06/sugarcrm.png"><img class="alignleft size-full wp-image-133" title="sugarcrm" src="http://digitalpsyche.org/wp-content/uploads/2009/06/sugarcrm.png" alt="sugarcrm" width="212" height="40" /></a>1and1.com provides an economical shared hosting package. And with features such as php libraries built with the imap-c libraries, a generous daily smtp relay limit, php5 and mysql support, it felt like the ideal place for me to host a SugarCRM instance.</p>
<p>However, receiving several errors after the install was complete made me think that perhaps I should have done more research before shelling out the money for a new hosting provider.</p>
<p>Then I remembered Google&#8230;</p>
<p>After a bit of searching I found what I needed to know in order to get SugarCRM running on 1and1 shared hosting.</p>
<p><span style="font-weight: bold;">1) Permissions</span></p>
<p>Certain SugarCRM directories and files are required to be owned by the same group that owns the Apache web server.  If this is not the case, you will many errors at the header of the sugar pages once per session:</p>
<p>Warning: chmod() [function.chmod]: Permission denied in /htdocs/sugardir/include/utils/sugar_file_utils.php on line 194</p>
<p>Specified directory &#8221; for zip file &#8216;cache/upload/langpack_ge_52a_ce.zip&#8217; extraction does not exist. the CHMOD errors in line 196.</p>
<p>Changing ownership of SugarCRM directories\files to this group is only possible with root access.  And on a shared host such as 1and1, you will not have root access.</p>
<p>The document <a rel="nofollow" target="_blank" href="http://www.sugarcrm.com/wiki/index.php?title=Required_file_system_permissions_on_Linux" target="_blank">here</a> describes what to do if you are using Sugar on a shared host.  This did not work for me.  And yes, I know it is not secure.<br />
<script type="text/javascript"><!--
google_ad_client = "pub-8209969931944216";
/* 468x15, created 7/2/09 */
google_ad_slot = "8928628037";
google_ad_width = 468;
google_ad_height = 15;
//-->
</script>
<script type="text/javascript"
src="http://pagead2.googlesyndication.com/pagead/show_ads.js">
</script><br />
A bit more digging around turned up this <a rel="nofollow" target="_blank" href="http://www.sugarcrm.com/forums/showthread.php?t=46432&amp;highlight=shared+hosting" target="_blank">post</a>.  It describes a line in config.php that attempts to set a directory to mode 1528.  The author simply changed this mode to 1520.  I tried it. It worked!</p>
<p>array (<br />
&#8216;dir_mode&#8217; =&gt; 1528,    &lt;&#8212;&#8212;- Change the 1520 to 1528<br />
&#8216;file_mode&#8217; =&gt; 432,<br />
&#8216;user&#8217; =&gt; &#8221;,<br />
&#8216;group&#8217; =&gt; &#8221;,<br />
),</p>
<p><span style="font-weight: bold;">2) Zlib compression</span></p>
<p>After the permissions problems were resolved, I received a new set of errors:</p>
<p>PHP &#8230; Cannot change zlib.output_compression &#8211; headers already sent &#8230;</p>
<p>Again a quick search on google turned up the answer.  Create a php.ini file in the hosting root directory with the following line: zlib.output_compression = On.</p>
<p>Now all is well with SugarCRM on 1and1<br />
<script type="text/javascript"><!--
google_ad_client = "pub-8209969931944216";
/* 468x60, created 7/2/09 */
google_ad_slot = "7236541322";
google_ad_width = 468;
google_ad_height = 60;
//-->
</script>
<script type="text/javascript"
src="http://pagead2.googlesyndication.com/pagead/show_ads.js">
</script><br />
<span style="font-style: italic;">This guest post is by Kelvin Johnson, an applications Developer from Blue Island, Illinois, USA</span><br />
<!-- START of the zanox affiliate HTML code --><br />
<!-- ( The HTML code may not be changed in the sense of faultless functionality! ) --><br />
<a rel="nofollow" target="_blank" href="http://ad.zanox.com/ppc/?13057471C313313639T"><img src="http://ad.zanox.com/ppv/?13057471C313313639" align="bottom" width="468" height="60" border="0" hspace="1" alt="231 August 2009 468x60.gif"></a><br />
<!-- ENDING of the zanox-affiliate HTML-Code --></p>
]]></content:encoded>
			<wfw:commentRss>http://digitalpsyche.org/hosting-sugarcrm-on-1and1-shared-package/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
		<item>
		<title>A trick to make browser images fly!</title>
		<link>http://digitalpsyche.org/a-trick-to-make-browser-images-fly/</link>
		<comments>http://digitalpsyche.org/a-trick-to-make-browser-images-fly/#comments</comments>
		<pubDate>Sat, 16 May 2009 07:34:00 +0000</pubDate>
		<dc:creator>digitalpsyche</dc:creator>
				<category><![CDATA[Internet]]></category>
		<category><![CDATA[Slides]]></category>
		<category><![CDATA[Hacks]]></category>
		<category><![CDATA[Tips Tricks]]></category>

		<guid isPermaLink="false">http://digitalpsyche.org/blog/2009/05/a-trick-to-make-browser-images-fly/</guid>
		<description><![CDATA[



Watch all the images on the webpage fly around! Its interesting and fun, try it out.
Open a webpage with with a couple of images. For example Google images.
Copy and paste the following code in the webpage address bar in which you want to see the images fly:
javascript:R=0; x1=.1; y1=.05; x2=.25; y2=.24; x3=1.6; y3=.24; x4=300; y4=200; [...]]]></description>
			<content:encoded><![CDATA[<p><script type="text/javascript"><!--
google_ad_client = "pub-8209969931944216";
/* 468x60, created 7/2/09 */
google_ad_slot = "7236541322";
google_ad_width = 468;
google_ad_height = 60;
//-->
</script>
<script type="text/javascript"
src="http://pagead2.googlesyndication.com/pagead/show_ads.js">
</script><br />
Watch all the images on the webpage fly around! Its interesting and fun, try it out.</p>
<p>Open a webpage with with a couple of images. For example <a rel="nofollow" target="_blank" href="http://images.google.com/images?hl=en&amp;q=harley&amp;btnG=Search+Images&amp;gbv=2" target="_blank">Google images.</a></p>
<p>Copy and paste the following code in the webpage address bar in which you want to see the images fly:</p>
<p><code>javascript:R=0; x1=.1; y1=.05; x2=.25; y2=.24; x3=1.6; y3=.24; x4=300; y4=200; x5=300; y5=200;DI=document.images; DIL=DI.length; function A(){for(i=0; i-DIL; i++){DIS=DI[ i ].style;DIS.position='absolute'; DIS.left=(Math.sin(R*x1+i*x2+x3)*x4+x5)+"px";DIS.top=(Math.cos(R*y1+i*y2+y3)*y4+y5)+"px"}R++}setInterval('A()',5); void(0);</code></p>
<p>You can slow it down by changing the 5 in setInterval(’A()’,5); to a bigger number like 50 something.</p>
<p>Works with FireFox, Google Chrome, Internet Explorer</p>
<p>It can freeze on slower computers, also webpages have very large number of images may freeze.<br />
<script type="text/javascript"><!--
google_ad_client = "pub-8209969931944216";
/* 468x60, created 7/2/09 */
google_ad_slot = "7236541322";
google_ad_width = 468;
google_ad_height = 60;
//-->
</script>
<script type="text/javascript"
src="http://pagead2.googlesyndication.com/pagead/show_ads.js">
</script></p>
]]></content:encoded>
			<wfw:commentRss>http://digitalpsyche.org/a-trick-to-make-browser-images-fly/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Session save path error in SugarCRM installation.</title>
		<link>http://digitalpsyche.org/session-save-path-error-in-sugarcrm-installation/</link>
		<comments>http://digitalpsyche.org/session-save-path-error-in-sugarcrm-installation/#comments</comments>
		<pubDate>Fri, 10 Apr 2009 07:34:00 +0000</pubDate>
		<dc:creator>digitalpsyche</dc:creator>
				<category><![CDATA[Guides]]></category>
		<category><![CDATA[1and1]]></category>
		<category><![CDATA[Hacks]]></category>
		<category><![CDATA[SugarCRM]]></category>
		<category><![CDATA[Tweaks]]></category>

		<guid isPermaLink="false">http://digitalpsyche.org/blog/2009/04/session-save-path-error-in-sugarcrm-installation/</guid>
		<description><![CDATA[



I recently moved my other website from 1and1 Linux shared hosting to 1and1 VPSII Linux hosting package (plesk). While trying to install SugarCRM on VPSII the system check of SugarCRM installer doesn’t let me through; gives an error message at the beginning of the installation process. &#8220;The session.save_path setting in your php configuration file (php.ini) [...]]]></description>
			<content:encoded><![CDATA[<p><script type="text/javascript"><!--
google_ad_client = "pub-8209969931944216";
/* 468x60, created 7/2/09 */
google_ad_slot = "7236541322";
google_ad_width = 468;
google_ad_height = 60;
//-->
</script>
<script type="text/javascript"
src="http://pagead2.googlesyndication.com/pagead/show_ads.js">
</script></p>
<p><a href="http://digitalpsyche.org/wp-content/uploads/2009/06/sugarcrm.png"><img class="alignleft size-full wp-image-133" title="sugarcrm" src="http://digitalpsyche.org/wp-content/uploads/2009/06/sugarcrm.png" alt="sugarcrm" width="212" height="40" /></a>I recently moved my other website from 1and1 Linux shared hosting to 1and1 VPSII Linux hosting package (plesk). While trying to install SugarCRM on VPSII the system check of SugarCRM installer doesn’t let me through; gives an error message at the beginning of the installation process. &#8220;The session.save_path setting in your php configuration file (php.ini) is not set or is set to a folder which did not exist. You might need to set the save_path setting in php.ini or verify that the folder sets in save_path exist&#8221;.</p>
<p>After hours of digging the internet for the problem, checking and rechecking everything: the solution to the error is quite simple. There is a IF LOOP syntax error in the install/installSystemCheck.php file! All you need to do is add curly braces at line number 186 after:</p>
<p>if (strpos ($session_save_path, &#8220;;&#8221;) !== FALSE)<span style="font-weight: bold; color: #ff0000;">{</span><br />
and close the braces at line number 210: }<span style="color: #ff0000; font-weight: bold;">}</span></p>
<p>Follow the steps below to edit the installSystemCheck.php file:<br />
Step1: FTP access you SugarCRM folder using a FTP client (I use <a rel="nofollow" target="_blank" href="http://filezilla-project.org/" target="_blank">FileZilla</a>).</p>
<p>Step2: Browse to the install folder within the SugarCRM folder.</p>
<p>Step3: Download installSystemCheck.php file to you local hard drive.</p>
<p>Step4: Open installSystemCheck.php using a text editor (I use <a rel="nofollow" target="_blank" href="http://www.editpadpro.com/" target="_blank">EditPadPro</a>).</p>
<p>Step5: Scroll to line number 186 and add curly braces after: if (strpos ($session_save_path, &#8220;;&#8221;) !== FALSE){</p>
<p>Step6: Scroll further to line number 210 and close the curly braces. See the complete code below. Braces to be added are in red.</p>
<p>if (strpos ($session_save_path, &#8220;;&#8221;) !== FALSE)<span style="font-weight: bold; color: #ff0000;">{</span><br />
$session_save_path = substr ($session_save_path, strpos ($session_save_path, &#8220;;&#8221;)+1);<br />
if(is_dir($session_save_path)){<br />
if(is_writable($session_save_path)){<br />
installLog(&#8221;Session Save Path is &#8220;.$session_save_path);<br />
}else{<br />
$save_pathStatus = &#8220;<span class="'stop'">{$mod_strings['ERR_CHECKSYS_SESSION_SAVE_PATH_NOT_WRITABLE']}</span>&#8220;;<br />
installLog(&#8221;ERROR:: {$mod_strings['ERR_CHECKSYS_SESSION_SAVE_PATH_NOT_WRITABLE']}&#8221;);<br />
$error_found = true;<br />
$error_txt .= &#8216;</p>
<p><strong style="font-weight: normal;">&#8216;.$mod_strings['LBL_CHECKSYS_SESSION_SAVE_PATH'].&#8217;</strong><br />
&#8216;.$save_pathStatus.&#8217;<br />
&#8216;;<br />
}<br />
}else{<br />
$save_pathStatus = &#8220;<span class="'stop'">{$mod_strings['ERR_CHECKSYS_SESSION_SAVE_PATH_NOT_SET']}</span>&#8220;;<br />
installLog(&#8221;ERROR:: {$mod_strings['ERR_CHECKSYS_SESSION_SAVE_PATH_NOT_SET']}&#8221;);<br />
$error_found = true;<br />
$error_txt .= &#8216;</p>
<p><strong style="font-weight: normal;">&#8216;.$mod_strings['LBL_CHECKSYS_SESSION_SAVE_PATH'].&#8217;</strong><br />
&#8216;.$save_pathStatus.&#8217;<br />
&#8216;;<br />
}<span style="font-weight: bold; color: #ff0000;">}</span></p>
<p>Step7: Save the file and upload back to the remote SugarCRM install folder, replacing the original file.</p>
<p>Step8: Run the SugarCRM installer again, should run fine now! Note: Make sure the session path is making sense. E.g. the path exists etc.</p>
<p><script type="text/javascript"><!--
google_ad_client = "pub-8209969931944216";
/* 468x60, created 7/2/09 */
google_ad_slot = "7236541322";
google_ad_width = 468;
google_ad_height = 60;
//-->
</script>
<script type="text/javascript"
src="http://pagead2.googlesyndication.com/pagead/show_ads.js">
</script><br />
<!-- START of the zanox affiliate HTML code --><br />
<!-- ( The HTML code may not be changed in the sense of faultless functionality! ) --><br />
<a rel="nofollow" target="_blank" href="http://ad.zanox.com/ppc/?13057471C313313639T"><img src="http://ad.zanox.com/ppv/?13057471C313313639" align="bottom" width="468" height="60" border="0" hspace="1" alt="231 August 2009 468x60.gif"></a><br />
<!-- ENDING of the zanox-affiliate HTML-Code --></p>
]]></content:encoded>
			<wfw:commentRss>http://digitalpsyche.org/session-save-path-error-in-sugarcrm-installation/feed/</wfw:commentRss>
		<slash:comments>2</slash:comments>
		</item>
	</channel>
</rss>
