<?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</title>
	<atom:link href="http://www.thinksupport.net/blog/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>Howto: turn off open_basedir in Plesk</title>
		<link>http://www.thinksupport.net/blog/howto-turn-off-open_basedir-in-plesk.html</link>
		<comments>http://www.thinksupport.net/blog/howto-turn-off-open_basedir-in-plesk.html#comments</comments>
		<pubDate>Thu, 09 Dec 2010 12:49:37 +0000</pubDate>
		<dc:creator>Sunil</dc:creator>
				<category><![CDATA[Plesk]]></category>

		<guid isPermaLink="false">http://www.thinksupport.net/blog/?p=331</guid>
		<description><![CDATA[By default Plesk applies open_basedir restriction for all the domains on the server. You can remove the open_basedir restriction lines from the httpd.include file located at /home/httpd/vhosts/example.com/conf/ directory but Plesk will overwrite the file again once it rebuild the include files. To permanently remove the open_basedir restrictions for a domain, create a vhost.conf file vi [...]]]></description>
			<content:encoded><![CDATA[<p>By default Plesk applies open_basedir restriction for all the domains on the server. You can remove the open_basedir restriction lines from the httpd.include file located at /home/httpd/vhosts/example.com/conf/ directory but Plesk will overwrite the file again once it rebuild the include files.</p>
<p>To permanently remove the open_basedir restrictions for a domain, create a vhost.conf file</p>
<p>vi /home/httpd/vhosts/example.com/conf/vhost.conf</p>
<p>and place the following lines:</p>
<p>&lt;Directory /home/httpd/vhosts/example.com/httpdocs/&gt;<br />
php_admin_value open_basedir none<br />
&lt;/Directory&gt;</p>
<p>Once done, rebuild the include file with the command:</p>
<p>/usr/local/psa/admin/bin/websrvmng -a</p>
<p>and restart the Apache service:</p>
<p>service httpd restart</p>
<p>To verify the new settings, place a phpinfo.php file under the account, browse the file and check the “Local Value” column.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.thinksupport.net/blog/howto-turn-off-open_basedir-in-plesk.html/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>How to install SuPHP/phpSuExec on Plesk?</title>
		<link>http://www.thinksupport.net/blog/how-to-install-suphpphpsuexec-on-plesk.html</link>
		<comments>http://www.thinksupport.net/blog/how-to-install-suphpphpsuexec-on-plesk.html#comments</comments>
		<pubDate>Thu, 09 Dec 2010 12:46:00 +0000</pubDate>
		<dc:creator>Sunil</dc:creator>
				<category><![CDATA[Plesk]]></category>

		<guid isPermaLink="false">http://www.thinksupport.net/blog/?p=328</guid>
		<description><![CDATA[SuPHP Or PHPSuExec is a module that increases the security of the server and executes PHP files under the ownership of the owner of the file instead of the Apache user i.e. “apache”. The advantages of having suPHP are: 1. Files and Directories those need 777 permissions to write into, via the browser will now [...]]]></description>
			<content:encoded><![CDATA[<p>SuPHP Or PHPSuExec is a module that increases the security of the server and executes PHP files under the ownership of the owner of the file instead of the Apache user i.e. “apache”.</p>
<p>The advantages of having suPHP are:</p>
<p>1. Files and Directories those need 777 permissions to write into, via the browser will now need a maximum of 755 permissions. The files/directories with 777 permissions will result in an “Internal Server Error”.</p>
<p>2. If you need to manipulate the value of a php directive for a domain, for ex. register_globals, it needs to be placed in the php.ini of a domain instead of the .htaccess file as it will result in an “Internal Server Error”.</p>
<p>3. All the files and directories uploaded using a script will have the ownership of the user instead of user ‘apache’ (i.e. the Apache user).</p>
<p>4. A user can edit/remove the files using Ftp that are uploaded via the browser.</p>
<p>In order to install SuPHP on the server, download and install the atomic script</p>
<p># wget -q -O – http://www.atomicorp.com/installers/atomic | sh</p>
<p>Once the script is installed, install SuPHP module using yum</p>
<p># yum install mod_suphp</p>
<p>The next step is to load the SuPHP module with Apache. The suphp installation automatically creates a “mod_suphp.conf” file under the Apache configuration directory, if not create it.</p>
<p># vi /etc/httpd/conf.d/mod_suphp.conf</p>
<p>and insert the following lines:</p>
<p>#Load the Mod_SuPHP module<br />
LoadModule suphp_module modules/mod_suphp.so</p>
<p>### Uncomment to activate mod_suphp<br />
suPHP_AddHandler x-httpd-php<br />
AddHandler x-httpd-php .php</p>
<p>#Enable the SuPHP engine<br />
suPHP_Engine on</p>
<p>#Specify the path to the configuration directory<br />
suPHP_ConfigPath /etc</p>
<p>Apache calls all the configuration files from the /etc/httpd/conf.d directory by default so there is no need to include the module in the httpd.conf file separately.</p>
<p>Now,  configuration file under /etc should be present (if not create it)</p>
<p>vi /etc/suphp.conf</p>
<p>copy/paste the following contents as it is:</p>
<p>[global]<br />
logfile=/var/log/suphp.log<br />
loglevel=info<br />
webserver_user=apache<br />
docroot=/var/www/vhosts<br />
allow_file_group_writeable=true<br />
allow_file_others_writeable=false<br />
allow_directory_group_writeable=true<br />
allow_directory_others_writeable=false<br />
errors_to_browser=false<br />
umask=0022<br />
min_uid=30<br />
min_gid=30<br />
x-httpd-php=”php:/usr/bin/php-cgi”<br />
x-suphp-cgi=”execute:!self”</p>
<p>Make sure the “handle_userdir” directive is commented or removed from the file since it is deprecated from the latest version.</p>
<p>At the end, we have to restart the httpd service for all these changes to take effect</p>
<p># service httpd restart</p>
<p>Test the SuPHP installation: Create a phpinfo.php file with 777 permission and it should show you an “Internal Server Error” on browsing.</p>
<p>Note: The double-quotes ( ” ) in the suphp.conf file may change to dots ( . ) if the contents are pasted as it is, so make sure you change them to double-quotes.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.thinksupport.net/blog/how-to-install-suphpphpsuexec-on-plesk.html/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>PleskFatalException Unable to connect to database</title>
		<link>http://www.thinksupport.net/blog/pleskfatalexception-unable-to-connect-to-database.html</link>
		<comments>http://www.thinksupport.net/blog/pleskfatalexception-unable-to-connect-to-database.html#comments</comments>
		<pubDate>Thu, 09 Dec 2010 12:38:52 +0000</pubDate>
		<dc:creator>Sunil</dc:creator>
				<category><![CDATA[Plesk]]></category>

		<guid isPermaLink="false">http://www.thinksupport.net/blog/?p=325</guid>
		<description><![CDATA[When a Plesk server exceeds the allotted Mysql connections, you will see the “Mysql: Too many connections” error message while accessing the Plesk control panel instead of the login prompt. The temporary solution is to restart the Mysql service, and the permanent solution is to increase the “max_connections”. ERROR: PleskFatalException Unable to connect to database: [...]]]></description>
			<content:encoded><![CDATA[<p>When a Plesk server exceeds the allotted Mysql connections, you will see the “Mysql: Too many connections” error message while accessing the Plesk control panel instead of the login prompt. The temporary solution is to restart the Mysql service, and the permanent solution is to increase the “max_connections”.</p>
<p>ERROR: PleskFatalException<br />
Unable to connect to database: mysql_connect() : Too many connections<br />
0: /usr/local/psa/admin/plib/common_func.php3:190<br />
psaerror(string ‘Unable to connect to database: mysql_connect() Too many connections’)</p>
<p>To resolve the “Mysql: Too many connections” issue, ssh to your server as root and restart the Mysql service</p>
<p># /etc/init.d/mysqld restart</p>
<p>If the problem occurs quite frequently, you need to increase the “max_connections” on your server. First check the number max_connections set on your server</p>
<p># mysqladmin variables -uadmin -p`cat /etc/psa/.psa.shadow` | grep max_connections</p>
<p>To increase the max_connections, edit the Mysql configuration file my.cnf</p>
<p># vi /etc/my.cnf</p>
<p>and set the following parameter</p>
<p>max_connections = xxx</p>
<p>where, xxx is the number of connections you wish to set.</p>
<p>Save the file and restart the Mysql service for the changes to take affect:</p>
<p># /etc/init.d/mysqld restart</p>
]]></content:encoded>
			<wfw:commentRss>http://www.thinksupport.net/blog/pleskfatalexception-unable-to-connect-to-database.html/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>qmail-inject: fatal: mail server permanently rejected message</title>
		<link>http://www.thinksupport.net/blog/qmail-inject-fatal-mail-server-permanently-rejected-message.html</link>
		<comments>http://www.thinksupport.net/blog/qmail-inject-fatal-mail-server-permanently-rejected-message.html#comments</comments>
		<pubDate>Thu, 09 Dec 2010 12:37:42 +0000</pubDate>
		<dc:creator>Sunil</dc:creator>
				<category><![CDATA[Plesk]]></category>

		<guid isPermaLink="false">http://www.thinksupport.net/blog/?p=323</guid>
		<description><![CDATA[You see the “qmail-inject: fatal: mail server permanently rejected message” error message while sending emails from a Plesk server and the error message such as follows in the mail logs: qmail-queue-handlers[xxxx]: Unable to change group ID: Operation not permitted qmail-queue[xxxx]: files: write buf 0xbff4dfe0[156] to fd (5) error – (32) Broken pipe qmail-queue[xxxx]: files: cannot [...]]]></description>
			<content:encoded><![CDATA[<p>You see the “qmail-inject: fatal: mail server permanently rejected message” error message while sending emails from a Plesk server and the error message such as follows in the mail logs:</p>
<p>qmail-queue-handlers[xxxx]: Unable to change group ID: Operation not permitted<br />
qmail-queue[xxxx]: files: write buf 0xbff4dfe0[156] to fd (5) error – (32) Broken pipe<br />
qmail-queue[xxxx]: files: cannot write chuck from 4 to 5 – (32) Broken pipe</p>
<p>It is due to the incorrect permission/ownership of the ‘qmail-queue’ file under the “/var/qmail/bin” directory. Make sure<br />
the ownership is ”mhandlers-user:popuser’<br />
the permission is 2511.</p>
<p>Check the current ownership/permission:</p>
<p># ls -la /var/qmail/bin/qmail-queue</p>
<p>It should be as follows:</p>
<p>-r-x–s–x  1 mhandlers-user popuser 67804 May  4 08:41 /var/qmail/bin/qmail-queue</p>
<p>If not, correct the ownership</p>
<p># chown mhandlers-user.popuser /var/qmail/bin/qmail-queue</p>
<p>set the proper permissions,</p>
<p># chmod 2511 /var/qmail/bin/qmail-queue</p>
<p>Restart Qmail once and see if the email works.</p>
<p>Note: If the emails still doesn’t work, please comment this post with the error message and the output of the following command and I will find out the solution for you:</p>
<p>ls -la /var/qmail/bin/qmail-queue*</p>
]]></content:encoded>
			<wfw:commentRss>http://www.thinksupport.net/blog/qmail-inject-fatal-mail-server-permanently-rejected-message.html/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>How to enable http compression on a Plesk server?</title>
		<link>http://www.thinksupport.net/blog/how-to-enable-http-compression-on-a-plesk-server.html</link>
		<comments>http://www.thinksupport.net/blog/how-to-enable-http-compression-on-a-plesk-server.html#comments</comments>
		<pubDate>Thu, 09 Dec 2010 12:36:57 +0000</pubDate>
		<dc:creator>Sunil</dc:creator>
				<category><![CDATA[Plesk]]></category>

		<guid isPermaLink="false">http://www.thinksupport.net/blog/?p=321</guid>
		<description><![CDATA[First of all, what is http compression and which module to use for http compression? Compressing data before transmitting to the browsers and then uncompressing the data before displaying. The module that is responsible for http compression i.e. compressing the data is called mod_deflate.The main advantage is that it saves a lot of bandwidth. On [...]]]></description>
			<content:encoded><![CDATA[<p>First of all, what is http compression and which module to use for http compression? Compressing data before transmitting to the browsers and then uncompressing the data before displaying. The module that is responsible for http compression i.e. compressing the data is called mod_deflate.The main advantage is that it saves a lot of bandwidth.</p>
<p>On a Plesk server, the mod_deflate module is installed by default, however it may be disabled in the Apache configuration file. To enable the module edit the Apache configuration file</p>
<p>vi /etc/httpd/conf/httpd.conf</p>
<p>Search for the line</p>
<p>#LoadModule deflate_module modules/mod_deflate.so</p>
<p>and uncomment it i.e. remove the ‘#’ mark</p>
<p>LoadModule deflate_module modules/mod_deflate.so</p>
<p>Save the file and restart the httpd service</p>
<p>service httpd restart</p>
<p>Now, create a .conf file under the /etc/httpd/conf.d/ directory since Apache reads all the .conf files from that directory on a Plesk server</p>
<p>vi /etc/httpd/conf.d/deflate.conf</p>
<p>and place the following code in it</p>
<p>&lt;Location /&gt;<br />
SetOutputFilter DEFLATE<br />
SetEnvIfNoCase Request_URI  \<br />
\.(?:gif|jpe?g|png)$ no-gzip dont-vary<br />
&lt;/Location&gt;</p>
<p>Save the file and restart the httpd service. The compression code will compress all the files except the .gif, .jpe, .jpeg and .png files. To test the compression, use the tool</p>
<p>http://www.whatsmyip.org/mod_gzip_test/</p>
<p>To enable compression for a specific directory or domain, specify the directory path in the &lt;Location&gt; directive in deflate.conf and restart the Apache server.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.thinksupport.net/blog/how-to-enable-http-compression-on-a-plesk-server.html/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>How to access psa database in Plesk?</title>
		<link>http://www.thinksupport.net/blog/how-to-access-psa-database-in-plesk.html</link>
		<comments>http://www.thinksupport.net/blog/how-to-access-psa-database-in-plesk.html#comments</comments>
		<pubDate>Thu, 09 Dec 2010 12:35:44 +0000</pubDate>
		<dc:creator>Sunil</dc:creator>
				<category><![CDATA[Plesk]]></category>

		<guid isPermaLink="false">http://www.thinksupport.net/blog/?p=319</guid>
		<description><![CDATA[Plesk uses a ‘psa’ database to store all the data and values. This data can be easily retrieved at any point of time using the Mysql queries. How to access the psa database in Plesk? There are 2 ways to access the Plesk psa database, from the Linux command line (via ssh) and from the [...]]]></description>
			<content:encoded><![CDATA[<p>Plesk uses a ‘psa’ database to store all the data and values. This data can be easily retrieved at any point of time using the Mysql queries.</p>
<p>How to access the psa database in Plesk?<br />
There are 2 ways to access the Plesk psa database, from the Linux command line (via ssh) and from the Plesk control panel.</p>
<p>Method 1) To access the psa database from command line:</p>
<p>SSH to your server as root. and execute the mysql command. The /etc/psa/.psa.shadow file contains the Plesk admin password.</p>
<p># mysql -uadmin -p`cat /etc/psa/.psa.shadow`</p>
<p>You will be taken to the Mysql prompt. To switch to the psa database, execute,</p>
<p>mysql&gt; use psa;</p>
<p>You are now in the psa database and can view all the tables</p>
<p>mysql&gt; show tables;</p>
<p>Method 2) From the Plesk control panel.</p>
<p>Login to Plesk as user ‘admin’ and password from /etc/psa/.psa.shadow file.</p>
<p>Click &#8220;Settings&#8221; &gt;&gt; &#8220;Database Hosting Preferences&#8221; &gt;&gt; click OK &gt;&gt;<br />
&#8220;Local MySQL server&#8221; &gt;&gt; &#8220;Databases&#8221; tab &gt;&gt; &#8220;Webadmin&#8221;.</p>
<p>Once you click “Webadmin”, phpMyAdmin will open in a new window from where you can access all the databases including the ‘psa’ database. Make sure pop-ups are enabled in your browser.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.thinksupport.net/blog/how-to-access-psa-database-in-plesk.html/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Plesk Installation: Unable to install the psa-backup-manager</title>
		<link>http://www.thinksupport.net/blog/plesk-installation-unable-to-install-the-psa-backup-manager.html</link>
		<comments>http://www.thinksupport.net/blog/plesk-installation-unable-to-install-the-psa-backup-manager.html#comments</comments>
		<pubDate>Thu, 09 Dec 2010 12:35:00 +0000</pubDate>
		<dc:creator>Sunil</dc:creator>
				<category><![CDATA[Plesk]]></category>

		<guid isPermaLink="false">http://www.thinksupport.net/blog/?p=317</guid>
		<description><![CDATA[You see a “Unable to install the psa-backup-manager” error while installing Plesk and it is because of the incomplete db4 packages needed for embedded database support for various applications. The complete error message looks like: Determining the packages that need to be installed. ERROR: Unable to install the “psa-backup-manager-9.x.x-cos5.buildxxxxxxx.00.i586? package. Not all packages were installed. [...]]]></description>
			<content:encoded><![CDATA[<p>You see a “Unable to install the psa-backup-manager” error while installing Plesk and it is because of the incomplete db4 packages needed for embedded database support for various applications. The complete error message looks like:</p>
<p>Determining the packages that need to be installed.<br />
ERROR: Unable to install the “psa-backup-manager-9.x.x-cos5.buildxxxxxxx.00.i586? package.<br />
Not all packages were installed.<br />
Please, contact product technical support.</p>
<p>Solution:</p>
<p>Check if the required db4 packages are installed by executing:</p>
<p># rpm -qa | grep db4</p>
<p>It will list the db4 packages. If the db4-devel and db4-utils are missing from the above output, install the packages using yum</p>
<p># yum install db4-utils<br />
# yum install db4-devel</p>
<p>That’s it. You can start the Plesk installation once again and it will install the psa-backup-manager successfully.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.thinksupport.net/blog/plesk-installation-unable-to-install-the-psa-backup-manager.html/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Plesk: Unable to create PHostingManager object:Unable to set current ip address</title>
		<link>http://www.thinksupport.net/blog/plesk-unable-to-create-phostingmanager-objectunable-to-set-current-ip-address.html</link>
		<comments>http://www.thinksupport.net/blog/plesk-unable-to-create-phostingmanager-objectunable-to-set-current-ip-address.html#comments</comments>
		<pubDate>Thu, 09 Dec 2010 12:33:27 +0000</pubDate>
		<dc:creator>Sunil</dc:creator>
				<category><![CDATA[Plesk]]></category>

		<guid isPermaLink="false">http://www.thinksupport.net/blog/?p=314</guid>
		<description><![CDATA[You may notice an error message “Unable to create PHostingManager object:Unable to set current ip address: IP address is missing” in Plesk when trying to manage a domain from Domains &#62;&#62; domainname.tld. The error appears when an IP assigned to a domain is not assigned to the ‘Owner’ of the domain. To fix the issue, [...]]]></description>
			<content:encoded><![CDATA[<p>You may notice an error message “Unable to create PHostingManager object:Unable to set current ip address: IP address is missing” in Plesk when trying to manage a domain from Domains &gt;&gt; domainname.tld. The error appears when an IP assigned to a domain is not assigned to the ‘Owner’ of the domain.</p>
<p>To fix the issue, go to</p>
<p>Plesk &#8211;&gt; Click &#8216;Settings&#8217; &#8211;&gt; click &#8220;IP Addresses&#8221; &#8211;&gt;<br />
click the number under the &#8216;Users&#8217; coloumn in front of the IP address &#8211;&gt;<br />
Assign the IP to the owner.</p>
<p>This will update the ‘psa’ database and allow the user to manage the domain from Plesk.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.thinksupport.net/blog/plesk-unable-to-create-phostingmanager-objectunable-to-set-current-ip-address.html/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>

