<?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>ThinkSupport.net - Outsourced Web Hosting Support, Cheap Server Management, Cheap Fully Managed Dedicated Servers, Software Development, Website Designing and SEO services, Vision Helpdesk Software &#187; WHM/cPanel</title>
	<atom:link href="http://www.thinksupport.net/blog/category/whmcpanel/feed" rel="self" type="application/rss+xml" />
	<link>http://www.thinksupport.net/blog</link>
	<description>Outsourced Web Hosting and Software Development</description>
	<lastBuildDate>Tue, 01 Feb 2011 12:42:22 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.1</generator>
		<item>
		<title>OpenLDAP and PHP in Easyapache &#8211; Centos 5</title>
		<link>http://www.thinksupport.net/blog/openldap-and-php-in-easyapache-centos-5.html</link>
		<comments>http://www.thinksupport.net/blog/openldap-and-php-in-easyapache-centos-5.html#comments</comments>
		<pubDate>Tue, 01 Feb 2011 12:42:22 +0000</pubDate>
		<dc:creator>Sunil</dc:creator>
				<category><![CDATA[WHM/cPanel]]></category>

		<guid isPermaLink="false">http://www.thinksupport.net/blog/?p=340</guid>
		<description><![CDATA[First we need to install the openldap rpms WHM&#62;Software&#62;Install RPM - installed openldap - installed openldap-servers - installed openldap-devel &#8211; if it is not installed, you&#8217;ll get &#8220;Cannot find ldap.h&#8221; error while recompiling &#8211; this also needs cyrus-sasl-devel installed (If cyrus-sasl-devel won&#8217;t install &#8211; find your existing version and download it from the centos mirror [...]]]></description>
			<content:encoded><![CDATA[<p><strong>First we need to install the openldap rpms</strong></p>
<p><strong></strong>WHM&gt;Software&gt;Install RPM<br />
- installed openldap<br />
- installed openldap-servers<br />
- installed openldap-devel &#8211; if it is not installed, you&#8217;ll get <span style="color: darkred;">&#8220;Cannot find <span>ldap</span>.h&#8221;</span> error while recompiling    &#8211; this also needs <strong>cyrus-sasl-devel</strong> installed<br />
(If cyrus-sasl-devel won&#8217;t install &#8211; find your existing version and download it from the centos mirror<br />
- installed openldap-clients &#8211; for working from command line</p>
<p>if you are using <strong><span style="color: navy;">php5</span></strong>, add the following in <strong>/var/cpanel/easy/apache/rawopts/all_php5</strong><br />
&#8211;with-ldap=/usr</p>
<p>See this page for more info <a rel="nofollow" href="http://www.cpanel.net/support/docs/ea/ea3/ea3custom_flags.html" target="_blank">http://www.cpanel.net/support/docs/e&#8230;tom_flags.html</a> &#8211; see that page for php4 support</p>
<p>then run <strong>/scripts/easyapache</strong></p>
<p>It will then build apache / php and include <span>ldap</span> support for php.</p>
<p>Create a <strong>phpinfo</strong> page and you will see <span>ldap</span> listed there now.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.thinksupport.net/blog/openldap-and-php-in-easyapache-centos-5.html/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Confusion in suPHP, suPHPexec and Apache suEXEC</title>
		<link>http://www.thinksupport.net/blog/confusion-in-suphp-suphpexec-and-apache-suexec.html</link>
		<comments>http://www.thinksupport.net/blog/confusion-in-suphp-suphpexec-and-apache-suexec.html#comments</comments>
		<pubDate>Fri, 31 Dec 2010 17:43:35 +0000</pubDate>
		<dc:creator>Sunil</dc:creator>
				<category><![CDATA[WHM/cPanel]]></category>

		<guid isPermaLink="false">http://www.thinksupport.net/blog/?p=334</guid>
		<description><![CDATA[What is phpsuexec? Phpsuexec is a deprecated feature in cPanel where php is setup as cgi instead of apache module. All shared hosting servers have been updated from phpsuexec to suPHP. This KB applies to such clients that are still using phpsuexec on their VPSs/Dedicated servers. Phpsuexec brings a new level of security to the [...]]]></description>
			<content:encoded><![CDATA[<p><strong>What is phpsuexec?</strong></p>
<p>Phpsuexec is a deprecated feature in cPanel where php is setup as cgi instead of apache module. All shared hosting servers have been updated from phpsuexec to suPHP. This KB applies to such clients that are still using phpsuexec on their VPSs/Dedicated servers. Phpsuexec brings a new level of security to the way php is used.</p>
<p>1) php scripts execute using the permissions of userid of the account holder instead of user &#8220;nobody&#8221;</p>
<p>2) world writable folders (chmod 777) is not required for file uploads through php</p>
<p>3) The php file need to have ownership of the user to execute in the user account (by default it is).</p>
<p>4) php file (script) does not need 755 permissions. 644 is fine. In fact 400 or 600 is ok too (especially good for sensitive information).</p>
<p>5) php_flag or php_value can NOT be used in .htaccess files (It will result in Internal Server Error).</p>
<p>6) The php flags that do not work in .htaccess can be moved to php.ini file in the same folder where php script exists. However, the php flag/value will be in the format of php.ini and not that of .htaccess. For example this from .htaccess</p>
<p>php_flag register_globals off</p>
<p>will go into php.ini as:</p>
<p>register_globals off</p>
<p>If php.ini exists in the folder where the php scripts exists, it will take all values from it (and nothing will be taken from main php.ini.</p>
<p>7) If the folder that contains a php file/script is world writable (chmod 777), it will result in Internal Server Error. This is similar to cgi/perl scripts under suexec that do not like such permissions for security reason. The normal folder permissions should be 755.</p>
<p>8)  Apache specific php functions do not work:</p>
<p>http://www.php.net/manual/en/ref.apache.php</p>
<p>9) If your .htaccess file contains &#8220;Options&#8221; directive, it should have + or &#8211; with the directive to keep the ExecCGI active.</p>
<p>10) Symbolic links do not work for php scripts for security reasons.</p>
<p>11) Some web applications (OS commerce, ZenCart etc.) check if its configure.php file is writable (since php is being executed with userid it should be), so it will complain that its writable. Please change the permissions to 444 via ssh. (chmod 444 /path/to/configure.php)</p>
<p>12) HTTP authentication via php code does not work. However you can continue to use it via .htaccess or password protected folder feature of the control panel.</p>
<p>13) If you use &#8220;AddType application/x-httpd-php&#8221; in .htaccess, it should be set to &#8220;AddHandler application/x-httpd-php&#8221;</p>
<p>Similarly if you are using ForceType in .htaccess to force a file to be treated as php, you will need to change it to SetHandler.</p>
<p><strong>What is suPHP?<br />
What is suPHP? What is being changed from phpsuexec to suPHP?</strong></p>
<p>suPHP is a tool for executing PHP scripts with the permissions of their owners. Currently our servers use phpsuexec which also executes PHP with the permission of their owners. However these are two different tools and there are some improvements with moving to suPHP.</p>
<p>Once suPHP is available on your server, you can login to your control panel and find a link &#8216;PHP Configuration&#8217; under &#8216;Software/Services&#8217;. On that page</p>
<p>1. You can switch your account&#8217;s php to php4 or php5</p>
<p>2. You can read how to configure php and how suPHP works. It is similar to phpsuexec as explained above excluding some improvements mentioned below.</p>
<p>3. Download server wide php.ini for php4 or php5 and customize it for your own needs. You may need to do this regularly to keep your php settings in synch with server level settings e.g after Zend Optimizer upgrade.</p>
<p>Changes from phpsuexec to suPHP:</p>
<p>1. By default php CLI is php5. Here are the paths for your reference:</p>
<p>/usr/bin/php (php5 cgi)<br />
/usr/local/bin/php (php5 cli)<br />
/usr/php4/bin/php (php4 cgi)<br />
/usr/local/php4/bin/php (php4 cli)</p>
<p>2. There are some significant improvments in suphp such as</p>
<p>* HTTP based authentication auth works via php<br />
* symbolic links to php files also work<br />
* permissions of public_html does not need to be changed for using shared SSL with php5<br />
* Custom error pages will work with both php4 and php5</p>
<p>3. ionCube PHP Loader will be available server wide alongwith Zend Optimizer. If you use custom php.ini you will need to update it by downloading it from your control panel so that latest Zend Optimizer can load for your scripts as well.</p>
<p>4. If you are setting up custom php settings, the custom php.ini file will be required in a folder where the php script needs to execute. Or you can place php.ini anywhere and have this directive in public_html/.htaccess</p>
<p>suPHP_ConfigPath /home/username/php5-config</p>
<p>where username is your cpanel account username, and php5-config is just a folder name (you can name it anything) and it will pick php.ini from that folder. Yes, you can have php.ini outside of your webroot in suPHP. This is a new feature.</p>
<p>5. To activate php5 on a subfolder or in your whole account, this directive was added in .htaccess in phpsuexec</p>
<p>AddHandler application/x-httpd-php5 .php .php3 .phtml</p>
<p>or a variant of it. Now this must be proceeded by the marker comment to block cpanel from changing your settings:</p>
<p># Use PHP5 as default<br />
AddHandler application/x-httpd-php5 .php .php3 .phtml</p>
<p>Or if you use control panel to activate php5 (upgraded servers), then you do not need to manually add the above directive.</p>
<p>Other updates</p>
<p>1. For semi-dedicated clients, ffmpeg will be available via both php4 and php5.</p>
<p>2. mod_gzip is being installed as well on all servers.</p>
<p>________________________________________________________</p>
<p><strong>One more time.. </strong></p>
<p><strong>Differences between phpsuexec and regular php</strong></p>
<p>When using the common PHP installation on a webserver, php runs as the user nobody and it doesn&#8217;t require the execute flag to be enabled.</p>
<p>The problem on this is that if mod_openbasedir is not installed, every user will be able to read your php files because everyone is virtually sharing the same username (nobody).</p>
<p>As most of you already know, PHP Files are not meant to be read, but parsed, and that is where the problem resides. PHP Files have to be parsed, otherwise everyone who is able to read your php file will see settings that you would probably want to keep private, such as your MySQL username and password.</p>
<p>PHPSUEXEC fixes all this because it requires php to be run as the file owner&#8217;s username. (for example: andre)</p>
<p>This is not everything it fixes though. PHPSUEXEC is also here to fix file ownership problems. This has been a common issue on a few Content Management Systems such as Joomla and also on the popular blog software: WordPress.</p>
<p>It also adds security to your files as you can use permissions such as 600 or 700 in your files and your visitors will still be able to view them (parsed) in their browsers.</p>
<p>PHPSUEXEC will also refuse to serve any pages that are at security risk, for example with 777 as permissions. (will generate an Internal Server Error)</p>
<p><strong>PHP as an Apache Module</strong></p>
<p>When PHP runs as an Apache module, PHP files work under the Apache user/group known as “nobody”. For example, when a PHP file needs to write to another file or create/remove a file, it does so under the name “nobody”. In order to allow “nobody” to do this, you need to set specific permissions on the file/directory, such as 777 &#8211; which translates to read/write/execute by user/group/world. This is insecure because you have not only allowed the webserver (Apache) to read/write to the file, you have also allowed everyone else on the server to read/write to the file as well!</p>
<p>Due to the above conditions, when a PHP file creates or uploads a new file under your account, the new file will be owned by the user “nobody”. If you FTP into your account, all files owned by “nobody” will not be available for you to move, rename or delete. In this case the only way to remove the “nobody” owned files would be through a file on the server or to contact support and ask for the file ownership to be changed back to your username.</p>
<p><strong>PHP as a CGI with Suexec</strong></p>
<p>When PHP runs as a CGI with Suexec, PHP files work under your user/group. PHP files no longer require loose permissions to function, now they will require strict permissions. Setting your directories or PHP files to 777 will cause them to produce a 500 Internal Server Error, this happens to protect your PHP files from being abused by outside sources.</p>
<p>Under PHPSuexec your directories and PHP files can have permissions no greater than 755 (read/write/execute by your username, read/execute by group/world). Since you own your files, your scripts can function in any directory your user has created and can&#8217;t be manipulated by any outside users, including “nobody”.</p>
<p>Now, when a PHP file creates or uploads a new file under your account, the new file will be owned by your username. You will no longer have to worry about the webserver taking over your files and even more important, you will no longer have to worry about a stranger reading or writing to your files either!</p>
<p><strong>How To Enable WHM Apache PHP SuExec</strong></p>
<p>By default PHP on WHM/Cpanel is loaded as DSO (Dynamic Shared Object) module and is run by the user “nobody” by default. Though this method of loading the PHP module is normally the fastest way to serve PHP request, running it as using user “nobody” will be a real pain in the ass if you are serving multiple sites run by multiple users, you will be for sure run into file permission problems.</p>
<p>This is where the SuExec comes in play, every executed PHP scripts will be executed by the user who owns the VirtualHost that is server the request, this method has a lot of drawbacks too on both speed and security.</p>
<p>Anyway, if you still want to enable it then read on below.</p>
<p>1. Login to your Web Host Manager as root account then under the Service Configuration menu, look for the “Configure PHP and SuExec” and click on it.</p>
<p>2. On the “Configure PHP and SuExec” page, under “alter configuration” section, look for the PHP handlers and then change its values to “cgi” and then set the Apache SuExec to On. (by default the value is on)</p>
<p>3. Finally, click on “Save new configuration” button and wait til the Apache server restarted and your done.</p>
<p>To verify that SuExec is working as intended, try to upload a file or create a folder using an upload file script on PHP.</p>
<p>That’s all about it.</p>
<p><strong>Troubleshooting Internal Server Errors (Error 500)</strong></p>
<p>Everytime an internal server error occurs, it will be added to your Error Log in cPanel. (cPanel »» Error Log). This will usually give you a clue on where the error resides. In most cases it will be either a permission error on a bad command in your .htaccess file (remember that all php values have to go to your php.ini file).</p>
<p>Directories that need to be written onto will no longer require 777 as permissions and phpsuexec will refuse to write or read on directories exposed with such permissions. You will have to chmod them to 755 always.</p>
<p>To simplify it, just remember that you should never have a file or folder with world-writeable permissions, because you no longer have to.</p>
<p>MIMETypes</p>
<p>If you added a Mimetype to the system in order to run html files as php scripts (AddType as .htaccess command), you will have to remove it and add an ApacheHandler instead. This is easy to do though. Just log into your control panel, then click on Apache Handlers and add the following:</p>
<p>Extension: html (or htm) : AddHandler application/x-httpd-php</p>
]]></content:encoded>
			<wfw:commentRss>http://www.thinksupport.net/blog/confusion-in-suphp-suphpexec-and-apache-suexec.html/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>How to enable GeoIP Apache API (mod_geoip)</title>
		<link>http://www.thinksupport.net/blog/how-to-enable-geoip-apache-api-mod_geoip.html</link>
		<comments>http://www.thinksupport.net/blog/how-to-enable-geoip-apache-api-mod_geoip.html#comments</comments>
		<pubDate>Wed, 27 Jan 2010 15:47:35 +0000</pubDate>
		<dc:creator>Sunil</dc:creator>
				<category><![CDATA[WHM/cPanel]]></category>

		<guid isPermaLink="false">http://www.thinksupport.net/blog/?p=309</guid>
		<description><![CDATA[cd /usr/src wget http://geolite.maxmind.com/download/geoip/api/c/GeoIP-1.4.6.tar.gz tar -xvzf GeoIP* cd GeoIP* ./configure make make install cd /usr/src wget http://geolite.maxmind.com/download/geoip/api/mod_geoip2/mod_geoip2_1.2.5.tar.gz tar -xvzf mod_geoip* cd mod_geoip* /usr/local/apache/bin/apxs -i -a -L/usr/src/GeoIP-1.4.6/libGeoIP -I/usr/src/GeoIP-1.4.6/lib/GeoIP -lGeoIP -c mod_geoip.c Please note, you need to enable mod_geoip inside your httpd.conf with the following lines: GeoIPEnable On GeoIPDBFile /usr/local/share/GeoIP/GeoIP.dat]]></description>
			<content:encoded><![CDATA[<p>cd /usr/src<br />
wget http://geolite.maxmind.com/download/geoip/api/c/GeoIP-1.4.6.tar.gz<br />
tar -xvzf GeoIP*<br />
cd GeoIP*<br />
./configure<br />
make<br />
make install</p>
<p>cd /usr/src<br />
wget http://geolite.maxmind.com/download/geoip/api/mod_geoip2/mod_geoip2_1.2.5.tar.gz<br />
tar -xvzf mod_geoip*<br />
cd mod_geoip*<br />
/usr/local/apache/bin/apxs -i -a -L/usr/src/GeoIP-1.4.6/libGeoIP -I/usr/src/GeoIP-1.4.6/lib/GeoIP -lGeoIP -c mod_geoip.c</p>
<p>Please note, you need to enable mod_geoip inside your httpd.conf with the following lines:</p>
<p>GeoIPEnable On<br />
GeoIPDBFile /usr/local/share/GeoIP/GeoIP.dat</p>
]]></content:encoded>
			<wfw:commentRss>http://www.thinksupport.net/blog/how-to-enable-geoip-apache-api-mod_geoip.html/feed</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
		<item>
		<title>/usr/local/apache/bin/httpd: error while loading shared libraries: libiconv.so.2: cannot open shared object file: No such file or directory</title>
		<link>http://www.thinksupport.net/blog/usrlocalapachebinhttpd-error-while-loading-shared-libraries-libiconv-so-2-cannot-open-shared-object-file-no-such-file-or-directory.html</link>
		<comments>http://www.thinksupport.net/blog/usrlocalapachebinhttpd-error-while-loading-shared-libraries-libiconv-so-2-cannot-open-shared-object-file-no-such-file-or-directory.html#comments</comments>
		<pubDate>Sat, 19 Dec 2009 12:24:54 +0000</pubDate>
		<dc:creator>Sunil</dc:creator>
				<category><![CDATA[WHM/cPanel]]></category>

		<guid isPermaLink="false">http://www.thinksupport.net/blog/?p=306</guid>
		<description><![CDATA[If you see following error during easyapache - /usr/local/apache/bin/httpd: error while loading shared libraries: libiconv.so.2: cannot open shared object file: No such file or directory Solution : ln -s /usr/local/lib/libiconv.so.2 /usr/lib/libiconv.so.2 If this didn&#8217;t work then add following line in /etc/ld.so.conf file /usr/local/lib/ and execute command ldconfig Now run easyapache.]]></description>
			<content:encoded><![CDATA[<p>If you see following error during easyapache -<strong><br />
</strong></p>
<p><strong>/usr/local/apache/bin/httpd: error while loading shared libraries: libiconv.so.2: cannot open shared object file: No such file or directory</strong></p>
<p>Solution :</p>
<p><strong>ln -s /<span>usr/local/lib/libiconv.so.2 </span><span>/usr/lib/libiconv.so.2</span></strong></p>
<p><span>If this didn&#8217;t work then add following line in </span>/etc/ld.so.conf file</p>
<p><strong>/usr/local/lib/</strong></p>
<p>and execute command</p>
<p><strong>ldconfig</strong></p>
<p>Now run easyapache.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.thinksupport.net/blog/usrlocalapachebinhttpd-error-while-loading-shared-libraries-libiconv-so-2-cannot-open-shared-object-file-no-such-file-or-directory.html/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>How do I safely remove the /home/virtfs directory?</title>
		<link>http://www.thinksupport.net/blog/how-do-i-safely-remove-the-homevirtfs-directory.html</link>
		<comments>http://www.thinksupport.net/blog/how-do-i-safely-remove-the-homevirtfs-directory.html#comments</comments>
		<pubDate>Wed, 18 Nov 2009 17:26:27 +0000</pubDate>
		<dc:creator>Sunil</dc:creator>
				<category><![CDATA[Virtuozzo]]></category>
		<category><![CDATA[VPS]]></category>
		<category><![CDATA[WHM/cPanel]]></category>

		<guid isPermaLink="false">http://www.thinksupport.net/blog/?p=303</guid>
		<description><![CDATA[The virtfs directory contains hard links to all the system binaries to help with security via jailshelled accounts. If you remove the virtfs system without unmounting the directories under it, you will completely break the system. The procedure you need to do is the following: cd /home/virtfs find . -regex &#8216;^.*[How do I safely remove [...]]]></description>
			<content:encoded><![CDATA[<p>The virtfs directory contains hard links to all the system binaries to help with security via jailshelled accounts.</p>
<p>If you remove the virtfs system without unmounting the directories under it, you will completely break the system.</p>
<p>The procedure you need to do is the following:</p>
<p><strong>cd /home/virtfs<br />
find . -regex &#8216;^.*[How do I safely remove the virtfs directory?^.]&#8216; -type d &gt; t1<br />
for i in $(cat t1); do umount $i; done</strong></p>
<p>After this is ran, you can safely recursively remove the /home/virtfs directory.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.thinksupport.net/blog/how-do-i-safely-remove-the-homevirtfs-directory.html/feed</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
		<item>
		<title>Cannot change ownership to uid 501, gid 501: Disk quota exceeded</title>
		<link>http://www.thinksupport.net/blog/cannot-change-ownership-to-uid-501-gid-501-disk-quota-exceeded.html</link>
		<comments>http://www.thinksupport.net/blog/cannot-change-ownership-to-uid-501-gid-501-disk-quota-exceeded.html#comments</comments>
		<pubDate>Thu, 05 Nov 2009 12:56:40 +0000</pubDate>
		<dc:creator>Sunil</dc:creator>
				<category><![CDATA[WHM/cPanel]]></category>

		<guid isPermaLink="false">http://www.thinksupport.net/blog/cannot-change-ownership-to-uid-501-gid-501-disk-quota-exceeded.html</guid>
		<description><![CDATA[If you see following error while updating Perl modules - Cannot change ownership to uid 501, gid 501: Disk quota exceeded Then go to WHM -&#62; Basic cPanel/WHM Setup and change the Minimum UID to something like 30000]]></description>
			<content:encoded><![CDATA[<p>If you see following error while updating Perl modules -</p>
<p><strong>Cannot change ownership to uid 501, gid 501: Disk quota exceeded</strong></p>
<p>Then go to WHM -&gt; Basic cPanel/WHM Setup and change the Minimum UID to something like 30000</p>
]]></content:encoded>
			<wfw:commentRss>http://www.thinksupport.net/blog/cannot-change-ownership-to-uid-501-gid-501-disk-quota-exceeded.html/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Warning: in_array() [function.in-array]: Wrong datatype for second argument &#8211; Fantastico</title>
		<link>http://www.thinksupport.net/blog/warning-in_array-function-in-array-wrong-datatype-for-second-argument-fantastico.html</link>
		<comments>http://www.thinksupport.net/blog/warning-in_array-function-in-array-wrong-datatype-for-second-argument-fantastico.html#comments</comments>
		<pubDate>Fri, 09 Oct 2009 17:26:47 +0000</pubDate>
		<dc:creator>Sunil</dc:creator>
				<category><![CDATA[WHM/cPanel]]></category>

		<guid isPermaLink="false">http://www.thinksupport.net/blog/?p=297</guid>
		<description><![CDATA[In users cPanel after clicking the Fantastico icon. Left column is filled with: Warning: in_array() [function.in-array]: Wrong datatype for second argument in /tmp/cpanel_phpengine.1230646571.28207lX8XQnNUIp on line 1225 Solution : 1) Go into WHM as root, click on Tweak Settings, scroll down to the PHP section and make sure the IONCUBE PHP Loader is selected. Save changes [...]]]></description>
			<content:encoded><![CDATA[<p>In users cPanel after clicking the Fantastico icon. Left column is filled with:</p>
<p><strong>Warning: in_array() [function.in-array]: Wrong datatype for second argument in /tmp/cpanel_phpengine.1230646571.28207lX8XQnNUIp on line 1225</strong></p>
<p><strong>Solution :<br />
</strong><br />
1) Go into WHM as root, click on Tweak Settings, scroll down to the PHP section and make sure the IONCUBE PHP Loader is selected. Save changes if needed. Also make sure ioncube loader is installed on server.</p>
<p>2) Log into your server as root via SSH and execute the following command:<br />
<strong>/scripts/makecpphp</strong></p>
]]></content:encoded>
			<wfw:commentRss>http://www.thinksupport.net/blog/warning-in_array-function-in-array-wrong-datatype-for-second-argument-fantastico.html/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>No Input File Specified &#8211; With new Fantastico</title>
		<link>http://www.thinksupport.net/blog/no-input-file-specified-with-new-fantastico.html</link>
		<comments>http://www.thinksupport.net/blog/no-input-file-specified-with-new-fantastico.html#comments</comments>
		<pubDate>Sat, 12 Sep 2009 14:51:16 +0000</pubDate>
		<dc:creator>Sunil</dc:creator>
				<category><![CDATA[WHM/cPanel]]></category>

		<guid isPermaLink="false">http://www.thinksupport.net/blog/no-input-file-specified-with-new-fantastico.html</guid>
		<description><![CDATA[After installing Fantastico if you see this error on every Fantastico page: No Input File Specified Create the following directories if they do not exist: Code: mkdir /usr/local/cpanel/base/tmp mkdir /usr/local/cpanel/3rdparty/tmp Then chmod each one of them to 777: Code: chmod -R 1777 /usr/local/cpanel/base/tmp chmod -R 1777 /usr/local/cpanel/3rdparty/tmp chmod -R 1777 /tmp If it doeesn&#8217;t fix [...]]]></description>
			<content:encoded><![CDATA[<p>After installing Fantastico if you see this error on every Fantastico page:</p>
<p><span style="color: #ff0000;"><strong>No Input File Specified</strong></span></p>
<p>Create the following directories if they do not exist:</p>
<p>Code:</p>
<p><strong>mkdir /usr/local/cpanel/base/tmp</strong><br />
<strong>mkdir /usr/local/cpanel/3rdparty/tmp</strong></p>
<p>Then chmod each one of them to 777:</p>
<p>Code:</p>
<p><strong>chmod -R 1777 /usr/local/cpanel/base/tmp</strong><br />
<strong>chmod -R 1777 /usr/local/cpanel/3rdparty/tmp</strong></p>
<p><strong>chmod -R 1777 /tmp</strong></p>
<p>If it doeesn&#8217;t fix then run the following script</p>
<p><strong>/scripts/makecpphp</strong></p>
<p>Above script will make new cpanel php.ini file, please note that this is not related to apache,  php.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.thinksupport.net/blog/no-input-file-specified-with-new-fantastico.html/feed</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
		<item>
		<title>How to fix Apache error (28)No space left on device</title>
		<link>http://www.thinksupport.net/blog/how-to-fix-apache-error-28no-space-left-on-device.html</link>
		<comments>http://www.thinksupport.net/blog/how-to-fix-apache-error-28no-space-left-on-device.html#comments</comments>
		<pubDate>Tue, 18 Aug 2009 15:47:54 +0000</pubDate>
		<dc:creator>Sunil</dc:creator>
				<category><![CDATA[Plesk]]></category>
		<category><![CDATA[WHM/cPanel]]></category>

		<guid isPermaLink="false">http://www.thinksupport.net/blog/?p=269</guid>
		<description><![CDATA[On some occasions apache will just abruptly fail, and become stopped, failing to restart with an error message like &#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;- [Tue Aug 18 16:34:45 2009] [notice] suEXEC mechanism enabled (wrapper: /usr/local/apache/bin/suexec) [Tue Aug 18 16:34:45 2009] [crit] (28)No space left on device: mod_rewrite: could not create rewrite_log_lock Configuration Failed [Tue Aug 18 16:38:46 2009] [notice] [...]]]></description>
			<content:encoded><![CDATA[<p>On some occasions apache will just abruptly fail, and become stopped, failing to restart with an error message like</p>
<p>&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;-<br />
[Tue Aug 18 16:34:45 2009] [notice] suEXEC mechanism enabled (wrapper: /usr/local/apache/bin/suexec)<br />
[Tue Aug 18 16:34:45 2009] [crit] (28)No space left on device: mod_rewrite: could not create rewrite_log_lock<br />
Configuration Failed<br />
[Tue Aug 18 16:38:46 2009] [notice] suEXEC mechanism enabled (wrapper: /usr/local/apache/bin/suexec)<br />
[Tue Aug 18 16:38:46 2009] [crit] (28)No space left on device: mod_rewrite: could not create rewrite_log_lock<br />
Configuration Failed<br />
&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;-</p>
<p>Checking your disk shows that you have plenty of space. The problem is that apache didn&#8217;t shut down properly, and it&#8217;s left myriads of semaphore-arrays left, owned by my apache-user. Run:-</p>
<p><strong># ipcs -s | grep nobody</strong></p>
<p>Removing these semaphores immediately should solve the problem and allow apache to start.</p>
<p><strong># ipcs -s | grep nobody | perl -e &#8216;while (&lt;STDIN&gt;) { @a=split(/\s+/); print `ipcrm sem $a[1]`}&#8217;</strong></p>
<p><strong><br />
</strong></p>
]]></content:encoded>
			<wfw:commentRss>http://www.thinksupport.net/blog/how-to-fix-apache-error-28no-space-left-on-device.html/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>R=lookuphost defer (-1): host lookup did not complete</title>
		<link>http://www.thinksupport.net/blog/rlookuphost-defer-1-host-lookup-did-not-complete.html</link>
		<comments>http://www.thinksupport.net/blog/rlookuphost-defer-1-host-lookup-did-not-complete.html#comments</comments>
		<pubDate>Wed, 05 Aug 2009 14:48:37 +0000</pubDate>
		<dc:creator>Sunil</dc:creator>
				<category><![CDATA[Direct Admin]]></category>
		<category><![CDATA[WHM/cPanel]]></category>

		<guid isPermaLink="false">http://www.thinksupport.net/blog/rlookuphost-defer-1-host-lookup-did-not-complete.html</guid>
		<description><![CDATA[If you see following error message in exim maillogs ============== 2009-08-05 15:30:06 1MYhUc-0007Bz-LU == USER@domain.com R=lookuphost defer (-1): host lookup did not complete ============== Solution : This is likely because your resolving nameservers are no longer responding to DNS queries. To fix this issue, you can manually edit the /etc/resolv.conf file.]]></description>
			<content:encoded><![CDATA[<p>If you see following error message in exim maillogs</p>
<p>==============<br />
<strong>2009-08-05 15:30:06 1MYhUc-0007Bz-LU == USER@domain.com R=lookuphost defer (-1): host lookup did not complete</strong><br />
==============</p>
<p><strong>Solution : </strong>This is likely because your resolving nameservers are no longer responding to DNS queries. To fix this issue, you can manually edit the /etc/resolv.conf file.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.thinksupport.net/blog/rlookuphost-defer-1-host-lookup-did-not-complete.html/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>

