<?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>DS-Hosting Solutions :: Web Hosting &#124; Reseller Hosting &#124; Domain Services &#124; SSL Certificates &#187; PHP Hosting</title>
	<atom:link href="http://www.ds-hostingsolutions.net/kb/web-hosting/php-hosting/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.ds-hostingsolutions.net/kb</link>
	<description>Read all about Reliable Web Hosting, Domain Registration and SSL Certificate services. Our All-Inclusive cPanel/WHM Packages offer a value packed hosting solution with great features.</description>
	<lastBuildDate>Mon, 24 Oct 2011 20:11:39 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.3.1</generator>
<image>
<title>DS-Hosting Solutions :: Web Hosting | Reseller Hosting | Domain Services | SSL Certificates</title>
<url>http://www.ds-hostingsolutions.net/images/ds-hostingsolutions.gif</url>
<link>http://www.ds-hostingsolutions.net/kb</link>
<width></width>
<height></height>
<description>get_bloginfo('description')</description>
</image>		<item>
		<title>What is suPHP and what are the benefits?</title>
		<link>http://www.ds-hostingsolutions.net/kb/suphp-and-the-benefits/</link>
		<comments>http://www.ds-hostingsolutions.net/kb/suphp-and-the-benefits/#comments</comments>
		<pubDate>Sun, 24 May 2009 06:39:21 +0000</pubDate>
		<dc:creator>Support Staff</dc:creator>
				<category><![CDATA[Linux Web Hosting]]></category>
		<category><![CDATA[PHP Hosting]]></category>
		<category><![CDATA[Server Security]]></category>
		<category><![CDATA[Website Development]]></category>
		<category><![CDATA[suPHP]]></category>

		<guid isPermaLink="false">http://www.ds-hostingsolutions.net/kb/?p=291</guid>
		<description><![CDATA[&#160;The earlier version was PHPsuExec but that is quickly being replaced by suPHP and the two do basically the same thing.
suPHP provides an additional layer of protection on servers. It causes php scripts to run under the account username instead of the user &#8216;nobody&#8217; which is the user that apache/php would run under on a [...]]]></description>
			<content:encoded><![CDATA[<div id="in_post_ad_top_1" style="margin: 5px;padding: 0px;"><p>&nbsp;</p></div><p>The earlier version was PHPsuExec but that is quickly being replaced by suPHP and the two do basically the same thing.</p>
<p>suPHP provides an additional layer of protection on servers. It causes php scripts to run under the account username instead of the user &#8216;nobody&#8217; which is the user that apache/php would run under on a server that is not running suPHP. This feature allows us to more easily track any potential security breaches that come in via insecure php script(s) that a user is running.</p>
<p>&nbsp;</p>
<p>suPHP also does away with the requirement of using 777 permissions on directories/files that need write permission. In fact if a directory and/or file has the permission set to (CHMOD) 777 and it is access via a browser, then an internal server error 500 will be generated. The highest level of permissions that a user can use on a suPHP enabled server is 755. This permission setting is sufficient enough for any directories/files that needs to be written to.</p>
<p>&nbsp;</p>
<p>The benefit of using suPHP besides better security, is that it will make any PHP applications (most often CMS systems) such as Mambo more user friendly. Case in point: If you upload/install anything via Mambo such as a template on a non-suphp server, then those template files will be owned by &lsquo;nobody&rsquo; and you will not be able to edit them manually or even delete them from your account. This ownership issue is done away with suPHP. On a suPHP enabled server, those same template files will be owned by the account username and the account holder will be able to manipulate those files as he sees fit.</p>
<p>&nbsp;</p>
<p>No longer do you need to use (chmod) the dangerous file permission of 666 or the folder permission of 777 to make things writable.</p>
<p>The correct permissions should be:</p>
<ul>
  <li><strong>Writable Folders:</strong> 755</li>
  <li><strong>Writable Files:</strong> 644</li>
  <li><strong>Files that need to be un-writable:</strong> 444</li>
</ul><div style='clear:both'></div><p><div id="proactivechatcontainern46jx0g5yk"></div><div id="swifttagcontainern46jx0g5yk" style="display: none;"><div id="swifttagdatacontainern46jx0g5yk"></div></div> <script type="text/javascript">var swiftscriptelemn46jx0g5yk=document.createElement("script");swiftscriptelemn46jx0g5yk.type="text/javascript";var swiftrandom = Math.floor(Math.random()*1001); var swiftuniqueid = "n46jx0g5yk"; var swifttagurln46jx0g5yk="https://www.ds-hostingsolutions.net/helpcenter/visitor/index.php?/LiveChat/HTML/Monitoring/cHJvbXB0dHlwZT1jaGF0JnVuaXF1ZWlkPW40Nmp4MGc1eWsmdmVyc2lvbj00LjAxLjEwNiZwcm9kdWN0PUZ1c2lvbiZjdXN0b21vbmxpbmU9JmN1c3RvbW9mZmxpbmU9JmN1c3RvbWF3YXk9JmN1c3RvbWJhY2tzaG9ydGx5PQo4OGNlNjFlZDdmZDkyNTEzMDIxZDhlZTExYWMxNWVjMTc4ZWQ1MTMy";setTimeout("swiftscriptelemn46jx0g5yk.src=swifttagurln46jx0g5yk;document.getElementById('swifttagcontainern46jx0g5yk').appendChild(swiftscriptelemn46jx0g5yk);",1);</script></p>]]></content:encoded>
			<wfw:commentRss>http://www.ds-hostingsolutions.net/kb/suphp-and-the-benefits/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Do your web hosting packages support the SourceGuardian PHP Encoder?</title>
		<link>http://www.ds-hostingsolutions.net/kb/sourceguardian-php-encoder/</link>
		<comments>http://www.ds-hostingsolutions.net/kb/sourceguardian-php-encoder/#comments</comments>
		<pubDate>Fri, 22 May 2009 07:39:42 +0000</pubDate>
		<dc:creator>Support Staff</dc:creator>
				<category><![CDATA[Linux Web Hosting]]></category>
		<category><![CDATA[PHP Hosting]]></category>
		<category><![CDATA[Server Security]]></category>
		<category><![CDATA[Web Hosting Services]]></category>
		<category><![CDATA[htaccess]]></category>
		<category><![CDATA[suPHP]]></category>

		<guid isPermaLink="false">http://www.ds-hostingsolutions.net/kb/?p=259</guid>
		<description><![CDATA[&#160;By default, SourceGuardian is not installed on any of our web hosting packages. However, that does not mean that you are not able to host any scripts that are encoded with SourceGuardian!
SourceGuardian does tell you to upload there encoders to the scripts folder and it will load the files as long the php function dl() [...]]]></description>
			<content:encoded><![CDATA[<div id="in_post_ad_top_1" style="margin: 5px;padding: 0px;"><p>&nbsp;</p></div><p>By default, <strong>SourceGuardian</strong> is not installed on any of our web hosting packages. However, that does not mean that you are not able to host any scripts that are encoded with SourceGuardian!</p>
<p>SourceGuardian does tell you to upload there encoders to the scripts folder and it will load the files as long the php function <strong>dl()</strong> is enabled as part of the installation. And unfortunately we have to dissapoint you once again, dl() is disabled for security reasons on all web hosting packages.</p>
<p>&nbsp;</p>
<p>Below we will explain you how to get the scripts to run properly, this is possible since we run <strong>suPHP</strong>.</p>
<p>&nbsp;</p>
<p>First you need to create a new .htaccess file in your public_html folder if you haven&#8217;t done already. Otherwise you need to edit your current .htaccess file.</p>
<p>In your <strong>.htaccess</strong> file under your public_html folder, add   the following:</p>
<p>&nbsp;</p>
<p style="padding-left: 30px;"><code>suPHP_ConfigPath&nbsp;/home/<span style="color: #0000ff;">user</span>/public_html<br />
   &lt;Files&nbsp;php.ini&gt;<br />
   order   allow,deny<br />
   deny from all<br />
   &lt;/Files&gt;</code></p>
 <p>&nbsp;</p>
<p><strong><span style="color: #ff0000;">Note:</span></strong> Make sure to change the <span style="color: #0000ff;">user</span> text above to your account user name.</p>
 <p>&nbsp;</p>
 <p>Then create a <strong>php.ini</strong> file under your public_html folder and add the following (or edit the current file if you have a php.ini file):</p>
<p>&nbsp;</p>
<p style="padding-left: 30px;"><code>extension_dir=/home/<span style="color: #0000ff;">user</span>/public_html/<span style="background-color: #ffff00;">extensions</span></code></p>
<p style="padding-left: 30px;">&nbsp;</p>
<p style="padding-left: 30px;"><code>[Zend]<br />
   zend_extension=/usr/local/ioncube/ioncube_loader_lin_5.2.so<br />
   zend_optimizer.optimization_level=15<br />
   zend_extension_manager.optimizer=/usr/local/Zend/lib/Optimizer-3.3.3<br />
   zend_extension_manager.optimizer_ts=/usr/local/Zend/lib/Optimizer_TS-3.3.3<br />
   zend_extension=/usr/local/Zend/lib/ZendExtensionManager.so<br />
   zend_extension_ts=/usr/local/Zend/lib/ZendExtensionManager_TS.so<br />
   extension=/home/user/public_html/<span style="background-color: #ffff00;">extensions</span>/ixed.5.2.lin</code></p>
<p>&nbsp;</p>
<p><strong><span style="color: #ff0000;">Note:</span></strong> Make sure to change the <span style="color: #0000ff;">user</span> text above to your account user name.</p>
<p>Zend Optimizer and IonCube loaders are added as well so you won&#8217;t drop the support for them with your new php.ini file.</p>
<p>&nbsp;</p>
<p>Now create a new folder called &quot;<span style="background-color: #ffff00;">extensions</span>&quot; in your public_html folder and download the required loader at <a href="http://www.sourceguardian.com/ixeds/ixed4.lin.x86-64.zip">http://www.sourceguardian.com/ixeds/ixed4.lin.x86-64.zip</a></p>
<p>Then extract the zip file and upload the file &quot;<strong>ixed.5.2.lin</strong>&quot; to your created folder &quot;<span style="background-color: #ffff00;">extensions</span>&quot;</p>
<p>You may choose another folder to upload the SourceGuardian loader to but remember to have the <span style="background-color: #ffff00;">folder name</span> reflect the one you typed within your php.ini file.</p>
<p>&nbsp;</p>
<p>Full details about SourceGuardian can be found at there website, located here:</p>
<p><a href="http://www.sourceguardian.com/">http://www.sourceguardian.com</a></p>
<p>&nbsp;</p>
<p>Congratulations, you have just installed SourceGuardian in your web hosting account and your script should now run properly!</p><div style='clear:both'></div><p><div id="proactivechatcontainern46jx0g5yk"></div><div id="swifttagcontainern46jx0g5yk" style="display: none;"><div id="swifttagdatacontainern46jx0g5yk"></div></div> <script type="text/javascript">var swiftscriptelemn46jx0g5yk=document.createElement("script");swiftscriptelemn46jx0g5yk.type="text/javascript";var swiftrandom = Math.floor(Math.random()*1001); var swiftuniqueid = "n46jx0g5yk"; var swifttagurln46jx0g5yk="https://www.ds-hostingsolutions.net/helpcenter/visitor/index.php?/LiveChat/HTML/Monitoring/cHJvbXB0dHlwZT1jaGF0JnVuaXF1ZWlkPW40Nmp4MGc1eWsmdmVyc2lvbj00LjAxLjEwNiZwcm9kdWN0PUZ1c2lvbiZjdXN0b21vbmxpbmU9JmN1c3RvbW9mZmxpbmU9JmN1c3RvbWF3YXk9JmN1c3RvbWJhY2tzaG9ydGx5PQo4OGNlNjFlZDdmZDkyNTEzMDIxZDhlZTExYWMxNWVjMTc4ZWQ1MTMy";setTimeout("swiftscriptelemn46jx0g5yk.src=swifttagurln46jx0g5yk;document.getElementById('swifttagcontainern46jx0g5yk').appendChild(swiftscriptelemn46jx0g5yk);",1);</script></p>]]></content:encoded>
			<wfw:commentRss>http://www.ds-hostingsolutions.net/kb/sourceguardian-php-encoder/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>How to increase PHP limits</title>
		<link>http://www.ds-hostingsolutions.net/kb/increase-php-limits/</link>
		<comments>http://www.ds-hostingsolutions.net/kb/increase-php-limits/#comments</comments>
		<pubDate>Mon, 18 May 2009 09:20:21 +0000</pubDate>
		<dc:creator>Support Staff</dc:creator>
				<category><![CDATA[PHP Hosting]]></category>
		<category><![CDATA[htaccess]]></category>
		<category><![CDATA[suPHP]]></category>

		<guid isPermaLink="false">http://www.ds-hostingsolutions.net/kb/?p=219</guid>
		<description><![CDATA[&#160;In your .htaccess file under your public_html folder, add the following:
suPHP_ConfigPath&#160;/home/user/public_html
    &#60;Files&#160;php.ini&#62;
    order allow,deny
    deny from all
    &#60;/Files&#62;
&#160;
Note: Make sure to change the user text above to your account username.
&#160;
Then create a php.ini file under your public_html folder and add any of the [...]]]></description>
			<content:encoded><![CDATA[<div id="in_post_ad_top_1" style="margin: 5px;padding: 0px;"><p>&nbsp;</p></div><p>In your <strong>.htaccess</strong> file under your public_html folder, add the following:</p>
<p style="padding-left: 30px;"><code>suPHP_ConfigPath&nbsp;/home/<span style="color: #0000ff;">user</span>/public_html<br />
    &lt;Files&nbsp;php.ini&gt;<br />
    order allow,deny<br />
    deny from all<br />
    &lt;/Files&gt;</code></p>
<p>&nbsp;</p>
<p><strong><span style="color: #ff0000;">Note:</span></strong> Make sure to change the <span style="color: #0000ff;">user</span> text above to your account username.</p>
<p>&nbsp;</p>
<p>Then create a <strong>php.ini</strong> file under your public_html folder and add any of the following that are needed:</p>
<p style="padding-left: 30px;"><code>upload_max_filesize = 12M <br />
    post_max_size = 16M<br />
    memory_limit = 32M<br />
    max_execution_time = 60 <br />
    upload_tmp_dir = /tmp</code></p>
<p>&nbsp;</p>
<p>Information below will not work at DS-Hosting Solutions, use the above method instead because we are running <strong>suPHP</strong>.</p>
<p>&nbsp;</p>
<p>For servers running normal PHP you can increase the PHP max upload size for your account by adding the following to your .htaccess file:</p>
<p style="padding-left: 30px;"><code>php_value upload_max_filesize &quot;12M&quot;<br />
    php_value post_max_size &quot;16M&quot;<br />
	php_value&nbsp;max_input_time &quot;60&quot;</code></p><div style='clear:both'></div><p><div id="proactivechatcontainern46jx0g5yk"></div><div id="swifttagcontainern46jx0g5yk" style="display: none;"><div id="swifttagdatacontainern46jx0g5yk"></div></div> <script type="text/javascript">var swiftscriptelemn46jx0g5yk=document.createElement("script");swiftscriptelemn46jx0g5yk.type="text/javascript";var swiftrandom = Math.floor(Math.random()*1001); var swiftuniqueid = "n46jx0g5yk"; var swifttagurln46jx0g5yk="https://www.ds-hostingsolutions.net/helpcenter/visitor/index.php?/LiveChat/HTML/Monitoring/cHJvbXB0dHlwZT1jaGF0JnVuaXF1ZWlkPW40Nmp4MGc1eWsmdmVyc2lvbj00LjAxLjEwNiZwcm9kdWN0PUZ1c2lvbiZjdXN0b21vbmxpbmU9JmN1c3RvbW9mZmxpbmU9JmN1c3RvbWF3YXk9JmN1c3RvbWJhY2tzaG9ydGx5PQo4OGNlNjFlZDdmZDkyNTEzMDIxZDhlZTExYWMxNWVjMTc4ZWQ1MTMy";setTimeout("swiftscriptelemn46jx0g5yk.src=swifttagurln46jx0g5yk;document.getElementById('swifttagcontainern46jx0g5yk').appendChild(swiftscriptelemn46jx0g5yk);",1);</script></p>]]></content:encoded>
			<wfw:commentRss>http://www.ds-hostingsolutions.net/kb/increase-php-limits/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>HTTP Error 500 &#8211; Internal server error</title>
		<link>http://www.ds-hostingsolutions.net/kb/500-internal-server-error/</link>
		<comments>http://www.ds-hostingsolutions.net/kb/500-internal-server-error/#comments</comments>
		<pubDate>Mon, 18 May 2009 07:56:47 +0000</pubDate>
		<dc:creator>Support Staff</dc:creator>
				<category><![CDATA[PHP Hosting]]></category>
		<category><![CDATA[Server Security]]></category>
		<category><![CDATA[Website Development]]></category>
		<category><![CDATA[htaccess]]></category>
		<category><![CDATA[suPHP]]></category>

		<guid isPermaLink="false">http://www.ds-hostingsolutions.net/kb/?p=207</guid>
		<description><![CDATA[&#160;If you are receiving the error 500 it will be due to one of the following issues:

	.htaccess

Check your .htaccess file for php_ commands. If you have any, add a # in front of the line or delete them. Then test your webpage. If you still have the error try removing everything from your .htaccess file. [...]]]></description>
			<content:encoded><![CDATA[<div id="in_post_ad_top_1" style="margin: 5px;padding: 0px;"><p>&nbsp;</p></div><p>If you are receiving the error 500 it will be due to one of the following issues:</p>
<ul>
	<li><strong>.htaccess</strong></li>
</ul>
<p>Check your .htaccess file for php_ commands. If you have any, add a # in front of the line or delete them. Then test your webpage. If you still have the error try removing everything from your .htaccess file. If that resolves the issue add the .htaccess lines back one at time until you find the bad line.</p>
<p>If these steps do not resolve your issue try the next steps.</p>
<ul>
	<li><strong>File and folder permissions</strong></li>
</ul>
<p>Check your files and folders to make sure you don&#8217;t have any files with the permission 666 or folders with the permission 777.</p>
<p>&nbsp;</p>
<p>Those permissions are not needed on our servers. We run suPHP which allows you to make files writable without creating the major security hole that occurs when using the permissions 666 and 777.</p>
<p>&nbsp;</p>
<p>The correct permissions should be:</p>
<p><strong>Folders:</strong> 755</p>
<p><strong>Files:</strong> 644</p>
<p><strong>Files that need to be unwritable:</strong> 444</p>
<ul>
	<li><strong>MIME-Types</strong></li>
</ul>
<p>If you added a MiME-Type to the system in order to run html files as php scripts, you will have to remove it and add an ApacheHandler instead.</p>
<p>&nbsp;</p>
<p>Log into cPanel, then click on <strong>Apache Handlers</strong> and add the following:</p>
<p><strong>Handler:</strong> application/x-httpd-php</p>
<p><strong>Extension(s):</strong> .html</p><div style='clear:both'></div><p><div id="proactivechatcontainern46jx0g5yk"></div><div id="swifttagcontainern46jx0g5yk" style="display: none;"><div id="swifttagdatacontainern46jx0g5yk"></div></div> <script type="text/javascript">var swiftscriptelemn46jx0g5yk=document.createElement("script");swiftscriptelemn46jx0g5yk.type="text/javascript";var swiftrandom = Math.floor(Math.random()*1001); var swiftuniqueid = "n46jx0g5yk"; var swifttagurln46jx0g5yk="https://www.ds-hostingsolutions.net/helpcenter/visitor/index.php?/LiveChat/HTML/Monitoring/cHJvbXB0dHlwZT1jaGF0JnVuaXF1ZWlkPW40Nmp4MGc1eWsmdmVyc2lvbj00LjAxLjEwNiZwcm9kdWN0PUZ1c2lvbiZjdXN0b21vbmxpbmU9JmN1c3RvbW9mZmxpbmU9JmN1c3RvbWF3YXk9JmN1c3RvbWJhY2tzaG9ydGx5PQo4OGNlNjFlZDdmZDkyNTEzMDIxZDhlZTExYWMxNWVjMTc4ZWQ1MTMy";setTimeout("swiftscriptelemn46jx0g5yk.src=swifttagurln46jx0g5yk;document.getElementById('swifttagcontainern46jx0g5yk').appendChild(swiftscriptelemn46jx0g5yk);",1);</script></p>]]></content:encoded>
			<wfw:commentRss>http://www.ds-hostingsolutions.net/kb/500-internal-server-error/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>

