<?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>cPanel Admins &#187; Apache</title>
	<atom:link href="http://www.cpaneladmins.com/category/apache/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.cpaneladmins.com</link>
	<description>Random Notes for cPanel Admins</description>
	<lastBuildDate>Tue, 01 Feb 2011 02:22:57 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.3.1</generator>
		<item>
		<title>500: [warn] Directory / is not owned by username</title>
		<link>http://www.cpaneladmins.com/500-warn-directory-is-not-owned-by-username/</link>
		<comments>http://www.cpaneladmins.com/500-warn-directory-is-not-owned-by-username/#comments</comments>
		<pubDate>Sat, 22 May 2010 05:42:16 +0000</pubDate>
		<dc:creator>tech</dc:creator>
				<category><![CDATA[Apache]]></category>

		<guid isPermaLink="false">http://www.cpaneladmins.com/?p=319</guid>
		<description><![CDATA[If your site is getting a 500 error, you&#8217;ll want to check Apache&#8217;s error_log at /usr/local/apache/logs/error_log. If you see the following error, you&#8217;ll want to check the ownership of &#8220;/&#8221; to ensure it&#8217;s owned by root:root, and not a user on your server. [Mon May 03 22:26:47 2010] [warn] Directory / is not owned by [...]]]></description>
			<content:encoded><![CDATA[<p>If your site is getting a 500 error, you&#8217;ll want to check Apache&#8217;s error_log at /usr/local/apache/logs/error_log.</p>
<p>If you see the following error, you&#8217;ll want to check the ownership of &#8220;/&#8221; to ensure it&#8217;s owned by root:root, and not a user on your server.</p>
<p><code>[Mon May 03 22:26:47 2010] [warn] Directory / is not owned by rrsdd</code></p>
<p>Let&#8217;s check the ownership:</p>
<p><code># stat /<br />
 File: `/'<br />
 Size: 4096            Blocks: 8          IO Block: 4096   directory<br />
Device: 1bh/27d Inode: 99717474    Links: 26<br />
Access: (0755/drwxr-xr-x)  Uid: (  535/  cpus123)   Gid: (    0/    cpus123)</code></p>
<p>This shows that the / folder is owned by &#8220;cpus123&#8243; which is incorrect, and you&#8217;ll want to change the ownership to root:root.</p>
<p>#chown root:root /</p>
<p>Now let&#8217;s verify:</p>
<p><code># stat /<br />
  File: `/'<br />
  Size: 4096      	Blocks: 8          IO Block: 4096   directory<br />
Device: 17h/23d	Inode: 917505      Links: 25<br />
Access: (0755/drwxr-xr-x)  Uid: (    0/    root)   Gid: (    0/    root)</code></p>
<p><a class="a2a_dd a2a_target addtoany_share_save" href="http://www.addtoany.com/share_save#url=http%3A%2F%2Fwww.cpaneladmins.com%2F500-warn-directory-is-not-owned-by-username%2F&amp;title=500%3A%20%5Bwarn%5D%20Directory%20%2F%20is%20not%20owned%20by%20username" id="wpa2a_2"><img src="http://www.cpaneladmins.com/wp-content/plugins/add-to-any/share_save_171_16.png" width="171" height="16" alt="Share"/></a></p>]]></content:encoded>
			<wfw:commentRss>http://www.cpaneladmins.com/500-warn-directory-is-not-owned-by-username/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>info [rebuildhttpdconf] User &#8216;username&#8217; data set has no &#8216;main_domain&#8217; key.</title>
		<link>http://www.cpaneladmins.com/info-rebuildhttpdconf-user-username-data-set-has-no-main_domain-key-2/</link>
		<comments>http://www.cpaneladmins.com/info-rebuildhttpdconf-user-username-data-set-has-no-main_domain-key-2/#comments</comments>
		<pubDate>Sat, 22 May 2010 05:32:31 +0000</pubDate>
		<dc:creator>tech</dc:creator>
				<category><![CDATA[Apache]]></category>
		<category><![CDATA[Command Line]]></category>
		<category><![CDATA[cPanel]]></category>
		<category><![CDATA[EasyApache]]></category>
		<category><![CDATA[main_domain]]></category>
		<category><![CDATA[userdata]]></category>
		<category><![CDATA[users]]></category>

		<guid isPermaLink="false">http://www.cpaneladmins.com/?p=313</guid>
		<description><![CDATA[Error: info [rebuildhttpdconf] User &#8216;username&#8217; data set has no &#8216;main_domain&#8217; key. Solution: Check to see if there is a file called &#8220;main&#8221; for the user(s) affected users in /var/cpanel/userdata/username. If it&#8217;s not present, verify the domain exists in httpd.conf, and run /usr/local/cpanel/bin/userdata_update to recreate the &#8220;main&#8221; file based off the apache configuration.]]></description>
			<content:encoded><![CDATA[<p><strong>Error: </strong>info [rebuildhttpdconf] User &#8216;username&#8217; data set has no &#8216;main_domain&#8217; key.</p>
<p><strong>Solution: </strong>Check to see if there is a file called &#8220;main&#8221; for the user(s) affected users in /var/cpanel/userdata/username.</p>
<p>If it&#8217;s not present, verify the domain exists in httpd.conf, and run /usr/local/cpanel/bin/userdata_update to recreate the &#8220;main&#8221; file based off the apache configuration.  </p>
<p><a class="a2a_dd a2a_target addtoany_share_save" href="http://www.addtoany.com/share_save#url=http%3A%2F%2Fwww.cpaneladmins.com%2Finfo-rebuildhttpdconf-user-username-data-set-has-no-main_domain-key-2%2F&amp;title=info%20%5Brebuildhttpdconf%5D%20User%20%26%238216%3Busername%26%238217%3B%20data%20set%20has%20no%20%26%238216%3Bmain_domain%26%238217%3B%20key." id="wpa2a_4"><img src="http://www.cpaneladmins.com/wp-content/plugins/add-to-any/share_save_171_16.png" width="171" height="16" alt="Share"/></a></p>]]></content:encoded>
			<wfw:commentRss>http://www.cpaneladmins.com/info-rebuildhttpdconf-user-username-data-set-has-no-main_domain-key-2/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Apache error: RewriteCond&gt; directive missing closing &#8216;&gt;&#8217;</title>
		<link>http://www.cpaneladmins.com/apache-error-rewritecond-directive-missing-closing/</link>
		<comments>http://www.cpaneladmins.com/apache-error-rewritecond-directive-missing-closing/#comments</comments>
		<pubDate>Sat, 22 May 2010 05:24:25 +0000</pubDate>
		<dc:creator>tech</dc:creator>
				<category><![CDATA[Apache]]></category>
		<category><![CDATA[htaccess]]></category>
		<category><![CDATA[RewriteCond]]></category>

		<guid isPermaLink="false">http://www.cpaneladmins.com/?p=307</guid>
		<description><![CDATA[Error: httpd: Syntax error on line 13 of /home/girit/public_html/.htaccess.igvjRiTOB3TiKlh0Pf8wcDk4yuRcH5ba: RewriteCond> directive missing closing '>' Solution: edit the .htaccess file in vi (or your favorite text editor) and ensure there is a blank line (new line) at the bottom of the file.]]></description>
			<content:encoded><![CDATA[<p><strong>Error: </strong></p>
<p><code>httpd: Syntax error on line 13 of<br />
/home/girit/public_html/.htaccess.igvjRiTOB3TiKlh0Pf8wcDk4yuRcH5ba:<br />
RewriteCond> directive missing closing '>'</code></p>
<p><strong>Solution:</strong> edit the .htaccess file in vi (or your favorite text editor) and ensure there is a blank line (new line) at the bottom of the file.</p>
<p><a class="a2a_dd a2a_target addtoany_share_save" href="http://www.addtoany.com/share_save#url=http%3A%2F%2Fwww.cpaneladmins.com%2Fapache-error-rewritecond-directive-missing-closing%2F&amp;title=Apache%20error%3A%20RewriteCond%3E%20directive%20missing%20closing%20%26%238216%3B%3E%26%238217%3B" id="wpa2a_6"><img src="http://www.cpaneladmins.com/wp-content/plugins/add-to-any/share_save_171_16.png" width="171" height="16" alt="Share"/></a></p>]]></content:encoded>
			<wfw:commentRss>http://www.cpaneladmins.com/apache-error-rewritecond-directive-missing-closing/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>PHPInfo</title>
		<link>http://www.cpaneladmins.com/phpinfo/</link>
		<comments>http://www.cpaneladmins.com/phpinfo/#comments</comments>
		<pubDate>Thu, 22 Apr 2010 21:50:14 +0000</pubDate>
		<dc:creator>tech</dc:creator>
				<category><![CDATA[Apache]]></category>
		<category><![CDATA[PHP]]></category>
		<category><![CDATA[phpinfo]]></category>

		<guid isPermaLink="false">http://www.cpaneladmins.com/?p=280</guid>
		<description><![CDATA[PHPInfo pages can be useful when needing to verify what php modules are installed/loading properly, or to see which php.ini a site is using. http://us3.php.net/phpinfo]]></description>
			<content:encoded><![CDATA[<p>PHPInfo pages can be useful when needing to verify what php modules are installed/loading properly, or to see which php.ini a site is using.</p>
<p><code><?php</p>
<p>// Show all information, defaults to INFO_ALL<br />
phpinfo();</p>
<p>// Show just the module information.<br />
// phpinfo(8) yields identical results.<br />
phpinfo(INFO_MODULES);</p>
<p>?></code></p>
<p>http://us3.php.net/phpinfo</p>
<p><a class="a2a_dd a2a_target addtoany_share_save" href="http://www.addtoany.com/share_save#url=http%3A%2F%2Fwww.cpaneladmins.com%2Fphpinfo%2F&amp;title=PHPInfo" id="wpa2a_8"><img src="http://www.cpaneladmins.com/wp-content/plugins/add-to-any/share_save_171_16.png" width="171" height="16" alt="Share"/></a></p>]]></content:encoded>
			<wfw:commentRss>http://www.cpaneladmins.com/phpinfo/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>How to Install EAccelerator, IonCube, Zend Optimizer, SourceGuardian, and SuHosin outside of EasyApache</title>
		<link>http://www.cpaneladmins.com/how-to-install-eaccelerator-zend-optimizer-ioncube-on-cpanelr/</link>
		<comments>http://www.cpaneladmins.com/how-to-install-eaccelerator-zend-optimizer-ioncube-on-cpanelr/#comments</comments>
		<pubDate>Sun, 11 Apr 2010 03:41:23 +0000</pubDate>
		<dc:creator>tech</dc:creator>
				<category><![CDATA[Apache]]></category>
		<category><![CDATA[EasyApache]]></category>
		<category><![CDATA[PHP]]></category>

		<guid isPermaLink="false">http://www.cpaneladmins.com/?p=205</guid>
		<description><![CDATA[Many don&#8217;t know that you don&#8217;t need to run EasyApache to install EAccelerator, IonCube Loader, Zend Optimizer, SourceGuardian, or SuHosin. Why waste your time? You can use /scripts/phpextensionmgr to install or uninstall these modules! # /scripts/phpextensionmgr list Available Extensions: EAccelerator IonCubeLoader Zendopt SourceGuardian PHPSuHosin So, if you wanted to install Zend Optimizer, you&#8217;d run: # [...]]]></description>
			<content:encoded><![CDATA[<p>Many don&#8217;t know that you don&#8217;t need to run EasyApache to install EAccelerator, IonCube Loader, Zend Optimizer, SourceGuardian, or SuHosin.  Why waste your time? </p>
<p>You can use /scripts/phpextensionmgr to install or uninstall these modules!</p>
<p><code># /scripts/phpextensionmgr list<br />
Available Extensions:<br />
EAccelerator<br />
IonCubeLoader<br />
Zendopt<br />
SourceGuardian<br />
PHPSuHosin<br />
</code></p>
<p>So, if you wanted to install Zend Optimizer, you&#8217;d run:</p>
<p><code># /scripts/phpextensionmgr install Zendopt<br />
Installing Zendopt<br />
Determining PHP version<br />
Installing Zend Optimizer binary<br />
Activating Zend Optimizer in /usr/local/lib/php.ini<br />
Zend Optimizer activated<br />
Skipping install to /usr/local/php4, missing php.ini</code></p>
<p>Easy peasy. <img src='http://www.cpaneladmins.com/wp-includes/images/smilies/icon_smile.gif' alt=':)' class='wp-smiley' /> </p>
<p><a class="a2a_dd a2a_target addtoany_share_save" href="http://www.addtoany.com/share_save#url=http%3A%2F%2Fwww.cpaneladmins.com%2Fhow-to-install-eaccelerator-zend-optimizer-ioncube-on-cpanelr%2F&amp;title=How%20to%20Install%20EAccelerator%2C%20IonCube%2C%20Zend%20Optimizer%2C%20SourceGuardian%2C%20and%20SuHosin%20outside%20of%20EasyApache" id="wpa2a_10"><img src="http://www.cpaneladmins.com/wp-content/plugins/add-to-any/share_save_171_16.png" width="171" height="16" alt="Share"/></a></p>]]></content:encoded>
			<wfw:commentRss>http://www.cpaneladmins.com/how-to-install-eaccelerator-zend-optimizer-ioncube-on-cpanelr/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Modifying your PHP Handler Configuration via SSH</title>
		<link>http://www.cpaneladmins.com/modifying-your-php-handler-configuration-via-ssh/</link>
		<comments>http://www.cpaneladmins.com/modifying-your-php-handler-configuration-via-ssh/#comments</comments>
		<pubDate>Sun, 11 Apr 2010 03:34:31 +0000</pubDate>
		<dc:creator>tech</dc:creator>
				<category><![CDATA[Apache]]></category>
		<category><![CDATA[Command Line]]></category>
		<category><![CDATA[PHP]]></category>

		<guid isPermaLink="false">http://www.cpaneladmins.com/?p=200</guid>
		<description><![CDATA[Your PHP handler and SuExec configuration can be modified in WHM >> Apache Configuration >> PHP and SuExec Configuration, but if you&#8217;d like to make your change via SSH, you can use rebuild_phpconf. Note: with this utility, you can not add new handlers, or enable an alternate PHP version if it&#8217;s not installed. You&#8217;d need [...]]]></description>
			<content:encoded><![CDATA[<p>Your PHP handler and SuExec configuration can be modified in WHM >> Apache Configuration >> PHP and SuExec Configuration, but if you&#8217;d like to make your change via SSH, you can use rebuild_phpconf.  </p>
<p><strong>Note</strong>: with this utility, you can not add new handlers, or enable an alternate PHP version if it&#8217;s not installed.  You&#8217;d need to use EasyApache to enable that change.</p>
<p><strong>What&#8217;s my current configuration?<br />
</strong><code># /usr/local/cpanel/bin/rebuild_phpconf --current<br />
Available handlers: suphp dso cgi none<br />
DEFAULT PHP: 5<br />
PHP4 SAPI: none<br />
PHP5 SAPI: suphp<br />
SUEXEC: enabled</code></p>
<p><strong>Let&#8217;s say I wanted to switch to DSO, keeping PHP4 disabled, and SuExec enabled:</strong><br />
<code># /usr/local/cpanel/bin/rebuild_phpconf 5 none fcgi 1</code></p>
<p><strong>For reference, the usage details:</strong><br />
<code>Usage: /usr/local/cpanel/bin/rebuild_phpconf [--dryrun] [--no-restart] [--no-htaccess] [--current|--available] <Default PHP> <PHP4 Handler> <PHP5 Handler> <Suexec><br />
 --dryrun       : Only display the changes that would be made<br />
 --no-restart   : Don't restart Apache after updating the php.conf link<br />
 --no-htaccess  : Don't update user configurable PHP mime mapping.<br />
 --current      : Show current settings<br />
 --available    : Show available handlers and PHP SAPIs<br />
 <Default PHP>  : Version of PHP to set as default handler for .php files<br />
 <PHP# Handler> : Type of Apache module to use in serving PHP requests<br />
 <Suexec>       : enabled, disabled, 1 or 0<br />
</code></p>
<p><a class="a2a_dd a2a_target addtoany_share_save" href="http://www.addtoany.com/share_save#url=http%3A%2F%2Fwww.cpaneladmins.com%2Fmodifying-your-php-handler-configuration-via-ssh%2F&amp;title=Modifying%20your%20PHP%20Handler%20Configuration%20via%20SSH" id="wpa2a_12"><img src="http://www.cpaneladmins.com/wp-content/plugins/add-to-any/share_save_171_16.png" width="171" height="16" alt="Share"/></a></p>]]></content:encoded>
			<wfw:commentRss>http://www.cpaneladmins.com/modifying-your-php-handler-configuration-via-ssh/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>configure: error: Problem with libXpm.(a&#124;so) or libX11.(a&#124;so)</title>
		<link>http://www.cpaneladmins.com/configure-error-problem-with-libxpm-aso-or-libx11-aso/</link>
		<comments>http://www.cpaneladmins.com/configure-error-problem-with-libxpm-aso-or-libx11-aso/#comments</comments>
		<pubDate>Fri, 08 Jan 2010 05:15:14 +0000</pubDate>
		<dc:creator>tech</dc:creator>
				<category><![CDATA[Apache]]></category>
		<category><![CDATA[EasyApache]]></category>
		<category><![CDATA[FreeBSD]]></category>

		<guid isPermaLink="false">http://www.cpaneladmins.com/?p=141</guid>
		<description><![CDATA[Error: configure: error: Problem with libXpm.(a&#124;so) or libX11.(a&#124;so) This happens most times when compiling with gd enabled for the first time. Reinstall X11 libraries and try again: cd /usr/ports/x11/libX11/ make deinstall make install]]></description>
			<content:encoded><![CDATA[<p>Error: configure: error: Problem with libXpm.(a|so) or libX11.(a|so)</p>
<p>This happens most times when compiling with gd enabled for the first time. Reinstall X11 libraries and try again:<br />
</code><br />
cd /usr/ports/x11/libX11/<br />
make deinstall<br />
make install<br />
</code></p>
<p><a class="a2a_dd a2a_target addtoany_share_save" href="http://www.addtoany.com/share_save#url=http%3A%2F%2Fwww.cpaneladmins.com%2Fconfigure-error-problem-with-libxpm-aso-or-libx11-aso%2F&amp;title=configure%3A%20error%3A%20Problem%20with%20libXpm.%28a%7Cso%29%20or%20libX11.%28a%7Cso%29" id="wpa2a_14"><img src="http://www.cpaneladmins.com/wp-content/plugins/add-to-any/share_save_171_16.png" width="171" height="16" alt="Share"/></a></p>]]></content:encoded>
			<wfw:commentRss>http://www.cpaneladmins.com/configure-error-problem-with-libxpm-aso-or-libx11-aso/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>EasyApache Fails Due to YUM Failing</title>
		<link>http://www.cpaneladmins.com/easyapache-fails-due-to-yum-failing/</link>
		<comments>http://www.cpaneladmins.com/easyapache-fails-due-to-yum-failing/#comments</comments>
		<pubDate>Sun, 15 Nov 2009 14:06:49 +0000</pubDate>
		<dc:creator>tech</dc:creator>
				<category><![CDATA[Command Line]]></category>
		<category><![CDATA[EasyApache]]></category>
		<category><![CDATA[RPM]]></category>
		<category><![CDATA[yum]]></category>

		<guid isPermaLink="false">http://www.cpaneladmins.com/?p=113</guid>
		<description><![CDATA[EasyApache requires a working package manager to be able to run properly, as it needs to confirm several RPMs are up to date before proceeding with the build. !! The server's system package manager, 'YUM', failed. !! !! This is the command that failed: yum --exclude=kernel* -y install aspell aspell-devel automake19 gettext libstdc++.x86_64 libpng-devel openssl [...]]]></description>
			<content:encoded><![CDATA[<p>EasyApache requires a working package manager to be able to run properly, as it needs to confirm several RPMs are up to date before proceeding with the build.</p>
<pre lang=”LANGUAGE” line=”1″ file=”download.txt” colla=”+”>
!! The server's system package manager, 'YUM', failed. !!
!!
This is the command that failed:
	yum --exclude=kernel* -y install aspell aspell-devel automake19 gettext
libstdc++.x86_64 libpng-devel openssl libpng-dev zlib-devel autoconf261
libidn-devel gmake libidn libXpm openssl-devel automake coreutils patch
libltdl3-devel libltdl libopenssl0.9.7-static-devel libtool-ltdl-devel
libXpm-devel sed libXpm-dev lsof krb5-dev flex glibc-dev expat-dev krb5-devel
pspell-devel libstdc++-devel.x64_64 xorg-x11-devel libtool-ltdl libssl-dev
pam-devel libopenssl0-devel zlib1-devel expat-devel pspell libopenssl0-dev
expat glibc-devel gcc-c++ zlib bison libjpeg-devel libtool-libltdl-devel
libtool openssl-dev libopenssl0 libz-devel libjpeg-dev pam-dev fileutils
libltdl-devel libopenssl0.9.7-devel e2fsprogs-devel make libstdc++-dev.x86_64
libX11-devel gd cpp xorg-x11-dev gcc ssl-dev autoconf lex
!!
!!
Since EasyApache was unable to resolve it automatically you should:
	1) Manually run the failed YUM command (shown above) via SSH
        2) See if your particular error is addressed at 

http://www.cpanel.net/support/could_not_ensurepkgs.htm

	3) Resolve the YUM problem manually
	4) Re-run EasyApache
!!
!! Please visit 

http://www.cpanel.net/support/could_not_ensurepkgs.htm

 for help with this error. !!

!! Restoring original working apache !!
</pre>
<p>First things first.  Try running &#8216;yum -y update&#8217; and see if it completes.  You may see the following when running yum update.</p>
<pre lang=”LANGUAGE” line=”1″ file=”download.txt” colla=”+”>
error: rpmdbNextIterator: skipping h#      27 region trailer: BAD, tag 1507328 type 1507328 offset -1507328 count 1507328
error: rpmdbNextIterator: skipping h#      65 region trailer: BAD, tag 724250418 type 825833527 offset -740320047 count 842150704
error: rpmdbNextIterator: skipping h#      69 region trailer: BAD, tag 942410249 type 1952543335 offset -1702113073 count 842610488
error: rpmdbNextIterator: skipping h#      99 region trailer: BAD, tag 1814980474 type 4544080 offset -1598245200 count 1212502623
</pre>
<p>and so on and so on&#8230;.</p>
<p>Then it&#8217;ll actually show packages that require updates, and experience a segmentation fault.</p>
<pre lang=”LANGUAGE” line=”1″ file=”download.txt” colla=”+”>
---> Package hotplug.x86_64 3:2004_04_01-7.10 set to be updated
---> Package fetchmail.x86_64 0:6.2.5-6.0.1.el4_8.1 set to be updated
--> Running transaction check
Segmentation fault
[root@vps ~]#
</pre>
<p>This means that your RPM database is corrupt, which is easily fixed with the following:</p>
<pre lang=”LANGUAGE” line=”1″ file=”download.txt” colla=”+”>
[root@vps ~]#rm -f /var/lib/rpm/__db.*
[root@vps ~]#rpm -vv --rebuilddb
</pre>
<p>Once that finishes, run &#8216;yum update&#8217; again, and it should complete successfully.  If so, you&#8217;re all set.  Go ahead and retry your easyapache build.</p>
<p><a class="a2a_dd a2a_target addtoany_share_save" href="http://www.addtoany.com/share_save#url=http%3A%2F%2Fwww.cpaneladmins.com%2Feasyapache-fails-due-to-yum-failing%2F&amp;title=EasyApache%20Fails%20Due%20to%20YUM%20Failing" id="wpa2a_16"><img src="http://www.cpaneladmins.com/wp-content/plugins/add-to-any/share_save_171_16.png" width="171" height="16" alt="Share"/></a></p>]]></content:encoded>
			<wfw:commentRss>http://www.cpaneladmins.com/easyapache-fails-due-to-yum-failing/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>How to install imagick for PHP</title>
		<link>http://www.cpaneladmins.com/how-to-install-imagick-for-php/</link>
		<comments>http://www.cpaneladmins.com/how-to-install-imagick-for-php/#comments</comments>
		<pubDate>Tue, 10 Nov 2009 23:12:02 +0000</pubDate>
		<dc:creator>tech</dc:creator>
				<category><![CDATA[Apache]]></category>
		<category><![CDATA[cPanel]]></category>

		<guid isPermaLink="false">http://www.cpaneladmins.com/?p=103</guid>
		<description><![CDATA[The imagick.so PHP module can&#8217;t currently be installed via PECL, due to it&#8217;s inability to write to /var/tmp. To get around that, you can install it manuall: # yum install ImageM* netpbm gd gd-* libjpeg libexif gcc coreutils make # cd /usr/local/src # wget http://pecl.php.net/get/imagick-2.2.2.tgz # tar zxvf ./imagick-2.2.2.tgz # cd imagick-2.2.2 # phpize # [...]]]></description>
			<content:encoded><![CDATA[<p>The imagick.so PHP module can&#8217;t currently be installed via PECL, due to it&#8217;s inability to write to /var/tmp.  To get around that, you can install it manuall:</p>
<pre lang=”LANGUAGE” line=”1″ file=”download.txt” colla=”+”>
# yum install ImageM* netpbm gd gd-* libjpeg libexif gcc coreutils make
# cd /usr/local/src
# wget http://pecl.php.net/get/imagick-2.2.2.tgz
# tar zxvf ./imagick-2.2.2.tgz
# cd imagick-2.2.2
# phpize
# ./configure
# make
# make test
# make install
</pre>
<p>This will compile imagick.so, and move it to your extensions directory specified in php.ini.  Now you&#8217;ll need to add the following to php.ini:</p>
<pre lang=”LANGUAGE” line=”1″ file=”download.txt” colla=”+”>
extension=imagick.so
</pre>
<p>and restart apache:</p>
<pre lang=”LANGUAGE” line=”1″ file=”download.txt” colla=”+”>
/scripts/restartsrv_httpd
</pre>
<p><a class="a2a_dd a2a_target addtoany_share_save" href="http://www.addtoany.com/share_save#url=http%3A%2F%2Fwww.cpaneladmins.com%2Fhow-to-install-imagick-for-php%2F&amp;title=How%20to%20install%20imagick%20for%20PHP" id="wpa2a_18"><img src="http://www.cpaneladmins.com/wp-content/plugins/add-to-any/share_save_171_16.png" width="171" height="16" alt="Share"/></a></p>]]></content:encoded>
			<wfw:commentRss>http://www.cpaneladmins.com/how-to-install-imagick-for-php/feed/</wfw:commentRss>
		<slash:comments>2</slash:comments>
		</item>
		<item>
		<title>suphp 500 error, Premature end of script headers</title>
		<link>http://www.cpaneladmins.com/suphp-500-error-premature-end-of-script-headers/</link>
		<comments>http://www.cpaneladmins.com/suphp-500-error-premature-end-of-script-headers/#comments</comments>
		<pubDate>Sat, 26 Sep 2009 15:07:32 +0000</pubDate>
		<dc:creator>tech</dc:creator>
				<category><![CDATA[Apache]]></category>
		<category><![CDATA[PHP]]></category>
		<category><![CDATA[suphp]]></category>
		<category><![CDATA[VPS]]></category>

		<guid isPermaLink="false">http://www.cpaneladmins.com/?p=49</guid>
		<description><![CDATA[[Sat Sep 26 22:02:33 2008] [error] [client 111.222.333.444] Premature end of script headers: phpinfo.php [Sat Sep 26 22:02:33 2008] [error] [client 111.222.333.444] File does not exist: /home/username/public_html/500.shtml First step: ensure that you&#8217;re using proper permissions on your files for suphp. Your php files should have 644 permissions, and ownership of the user whose home folder [...]]]></description>
			<content:encoded><![CDATA[<p><code><br />
[Sat Sep 26 22:02:33 2008] [error] [client 111.222.333.444] Premature end of script headers: phpinfo.php<br />
[Sat Sep 26 22:02:33 2008] [error] [client 111.222.333.444] File does not exist: /home/username/public_html/500.shtml<br />
</code></p>
<p>First step: ensure that you&#8217;re using proper permissions on your files for suphp.  Your php files should have 644 permissions, and ownership of the user whose home folder the files are in.</p>
<p>If ownership and permissions are correct, it could be a memory issue.  I&#8217;ve found that some users who experience this error are running out of available memory for php to execute properly. You can try switching your PHP handler to cgi or fcgi, which will actually display an &#8220;out of memory&#8221; error in apache&#8217;s error_log, but suphp will not.</p>
<p><code><br />
[Sat Sep 26 08:48:02 2009] [error] [client 111.222.333.444] Premature end of<br />
script headers: php5<br />
[Sat Sep 26 08:48:02 2009] [error] [client 111.222.333.444] File does not exist:<br />
/home/username/public_html/500.shtml<br />
[Sat Sep 26 08:48:02 2009] [error] [client 111.222.333.444] Out of memory<br />
</code></p>
<p>If you do have available RAM, but PHP isn&#8217;t able to use it, try increasing the RLimit value in httpd.conf and see if your script will execute then.  If you look at &#8220;free&#8221; and you don&#8217;t have much free memory, you may need to upgrade your server or VPS.</p>
<p><a class="a2a_dd a2a_target addtoany_share_save" href="http://www.addtoany.com/share_save#url=http%3A%2F%2Fwww.cpaneladmins.com%2Fsuphp-500-error-premature-end-of-script-headers%2F&amp;title=suphp%20500%20error%2C%20Premature%20end%20of%20script%20headers" id="wpa2a_20"><img src="http://www.cpaneladmins.com/wp-content/plugins/add-to-any/share_save_171_16.png" width="171" height="16" alt="Share"/></a></p>]]></content:encoded>
			<wfw:commentRss>http://www.cpaneladmins.com/suphp-500-error-premature-end-of-script-headers/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>

