<?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>The cPanel Admin &#187; easyapache</title>
	<atom:link href="http://www.thecpaneladmin.com/tag/easyapache/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.thecpaneladmin.com</link>
	<description>We know stuff about cPanel.</description>
	<lastBuildDate>Mon, 21 Nov 2011 19:50:55 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.2.1</generator>
		<item>
		<title>Overview of PHP Handlers</title>
		<link>http://www.thecpaneladmin.com/overview-php-handlers/</link>
		<comments>http://www.thecpaneladmin.com/overview-php-handlers/#comments</comments>
		<pubDate>Wed, 04 Aug 2010 19:30:02 +0000</pubDate>
		<dc:creator>Vanessa</dc:creator>
				<category><![CDATA[Misc]]></category>
		<category><![CDATA[easyapache]]></category>
		<category><![CDATA[php]]></category>

		<guid isPermaLink="false">http://www.thecpaneladmin.com/?p=610</guid>
		<description><![CDATA[One user on the cPanel forums spent some time summarizing the four PHP handlers,currently available via EasyApache, into a neat little chart that makes it easy to do a quick comparison. With that user&#8217;s permission, I&#8217;m posting the chart here: Click on the image for the original-sized diagram. Thanks to Miraenda from errorcodex.com for providing [...]


Related posts:<ol><li><a href='http://www.thecpaneladmin.com/installing-clamav-on-a-cpanel-server/' rel='bookmark' title='Installing ClamAV on a cPanel Server'>Installing ClamAV on a cPanel Server</a></li>
<li><a href='http://www.thecpaneladmin.com/mass-change-default-ddresses/' rel='bookmark' title='Mass Change Default (Catch All) Addresses'>Mass Change Default (Catch All) Addresses</a></li>
</ol>]]></description>
			<content:encoded><![CDATA[<p>One user on the cPanel forums spent some time summarizing the four PHP handlers,currently available via EasyApache, into a neat little chart that makes it easy to do a quick comparison.  With that user&#8217;s permission, I&#8217;m posting the chart here:</p>
<p style="text-align: center;"><a href="http://www.thecpaneladmin.com/wp-content/uploads/2010/08/phphandlers2.png"><img class="size-medium wp-image-611  aligncenter" title="phphandlers" src="http://www.thecpaneladmin.com/wp-content/uploads/2010/08/phphandlers2-300x289.png" alt="" width="300" height="289" /></a></p>
<p style="text-align: center;">Click on the image for the original-sized diagram. Thanks to Miraenda from <a href="http://errorcodex.com" target="_blank">errorcodex.com</a> for providing it!</p>
<p><map name='google_ad_map_610_78e79355861d63ba'>
<area shape='rect' href='http://imageads.googleadservices.com/pagead/imgclick/610?pos=0' coords='1,2,367,28' />
<area shape='rect' href='http://services.google.com/feedback/abg' coords='384,10,453,23'/></map>
<img usemap='#google_ad_map_610_78e79355861d63ba' border='0' src='http://imageads.googleadservices.com/pagead/ads?format=468x30_aff_img&amp;client=&amp;channel=&amp;output=png&amp;cuid=610&amp;url= http%3A%2F%2Fwww.thecpaneladmin.com%2Foverview-php-handlers%2F' /></p><img src="http://www.thecpaneladmin.com/?ak_action=api_record_view&id=610&type=feed" alt="" />

<p>Related posts:<ol><li><a href='http://www.thecpaneladmin.com/installing-clamav-on-a-cpanel-server/' rel='bookmark' title='Installing ClamAV on a cPanel Server'>Installing ClamAV on a cPanel Server</a></li>
<li><a href='http://www.thecpaneladmin.com/mass-change-default-ddresses/' rel='bookmark' title='Mass Change Default (Catch All) Addresses'>Mass Change Default (Catch All) Addresses</a></li>
</ol></p>]]></content:encoded>
			<wfw:commentRss>http://www.thecpaneladmin.com/overview-php-handlers/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Automating Apache and PHP Updates</title>
		<link>http://www.thecpaneladmin.com/automating-apache-php-updates/</link>
		<comments>http://www.thecpaneladmin.com/automating-apache-php-updates/#comments</comments>
		<pubDate>Wed, 19 May 2010 14:58:58 +0000</pubDate>
		<dc:creator>Vanessa</dc:creator>
				<category><![CDATA[Misc]]></category>
		<category><![CDATA[apache]]></category>
		<category><![CDATA[automation]]></category>
		<category><![CDATA[easyapache]]></category>
		<category><![CDATA[php]]></category>

		<guid isPermaLink="false">http://www.thecpaneladmin.com/?p=416</guid>
		<description><![CDATA[A lot of hosts that deploy a large number of servers are automating updates instead of running them manually. While cPanel updates can be automated as well, it&#8217;s become a common question of how to automate Apache and PHP updates across a large number of servers without having to manually run EasyApache on each server, [...]


Related posts:<ol><li><a href='http://www.thecpaneladmin.com/cpanel-installing-mod_python-apache-2/' rel='bookmark' title='cPanel: Installing Mod_Python on Apache 2'>cPanel: Installing Mod_Python on Apache 2</a></li>
<li><a href='http://www.thecpaneladmin.com/configuring-pureftp/' rel='bookmark' title='Command Line PureFTP Configuration on cPanel'>Command Line PureFTP Configuration on cPanel</a></li>
<li><a href='http://www.thecpaneladmin.com/cpanel-updates-redhat-9-break-stuff/' rel='bookmark' title='cPanel Updates on Redhat 9 Can Break Stuff'>cPanel Updates on Redhat 9 Can Break Stuff</a></li>
</ol>]]></description>
			<content:encoded><![CDATA[<p>A lot of hosts that deploy a large number of servers are automating updates instead of running them manually. While cPanel updates can be automated as well, it&#8217;s become a common question of how to automate Apache and PHP updates across a large number of servers without having to manually run EasyApache on each server, which can be a very time-consuming process. If Apache and PHP were built via RPM, you could simply run a yum update. However, since they are built with EasyApache it&#8217;s not quite as simple as updating an RPM, but it&#8217;s still very easy to automate.</p>
<p>A few things I want to mention before you consider automating Apache and PHP updates:</p>
<ul>
<li>You shouldn&#8217;t do this unless you have cPanel updates running automatically as well, for stable and release builds only. This reduces the chance of something going wrong and leaving you with broken builds across a ton of servers</li>
<li>Always test your build first on one server before deploying</li>
</ul>
<p><strong>Scenario:<br />
</strong></p>
<p><em>You have a large number of servers that are set up almost identically, and you want to schedule monthly updates to make sure PHP and Apache are always up to date, but still similar to provide consistency.</em></p>
<p>The easiest way to set this up is as follows:</p>
<p>1) Run EasyApache on one of the servers, configure your build as you wish, then save the profile. I would also recommend running the build to make sure that it works properly before you deploy it.</p>
<p>2) Go into <strong>/var/cpanel/easy/apache/profile</strong> and look for a file called <strong>_last_success.yaml</strong>. This will be the one you just saved, unless you updated a template that was already named, or you know for a fact that it&#8217;s named something else. Rename this template to something you would recognize, like latest.yaml. Edit the yaml file and change these fields:</p>
<blockquote><p>name: Shared server build<br />
note: &#8220;Default build for all shared servers&#8221;</p></blockquote>
<p>The name and note will identify the build in your EasyApache interface.</p>
<p>3) Move this script to the &#8216;custom&#8217; folder (<strong>/var/cpanel/easy/apache/profile/custom</strong>)</p>
<p>From here, what I recommend doing is uploading the build template to a repository so it can be easily &#8220;grabbed&#8221;. That way each time you update the build, you would update the template in the repository and automate the command that downloads it and builds Apache.  Since I named my yaml file latest.yaml, this is the command I&#8217;d run via cron on all my servers:</p>
<blockquote><p>wget -O /var/cpanel/easy/apache/custom/latest.yaml http://repo.mydomain.com/ea/latest.yaml &amp;&amp; /scripts/easyapache &#8211;profile=latest.yaml &#8211;build</p></blockquote>
<p>The following command builds the profile automtically:</p>
<blockquote><p>/scripts/easyapache &#8211;profile=latest.yaml &#8211;build</p></blockquote>
<p>The <strong>latest.yaml</strong> file is the file name of the template I&#8217;m using, and <strong>&#8211;build</strong> indicates that the build should be started immediately instead of loading the EA configuration screen.</p>
<p>Here are a couple other options you might want to pass to /scripts/easyapache:</p>
<ul>
<li>&#8211;do_not_revert_on_conf_failure : Use if you want to fix httpd.conf problems manually after the build. NOT recommended for automated EA updates</li>
<li>&#8211;skip-cpanel-version-check: Use if you don&#8217;t run automated cPanel updates and don&#8217;t want EasyApache to prompt for an update</li>
<li>&#8211;always_do_the_latest_phps : Always use the latest PHP version, keeping in mind that &#8220;latest version&#8221; refers to the latest version available in EA</li>
<li>&#8211;always_do_the_oldest_phps : Always use the oldest PHP version available in EA</li>
</ul>
<p>You may also want to consider using hooks to automate post-build tests, and report any issues that may arise. Hooks are events/commands that run before or after a specific action. You can read more about hooks below:</p>
<p><a href="http://etwiki.cpanel.net/twiki/bin/view/EasyApache3/EasyApacheHooks" target="_blank">http://etwiki.cpanel.net/twiki/bin/view/EasyApache3/EasyApacheHooks</a></p>
<p><map name='google_ad_map_416_78e79355861d63ba'>
<area shape='rect' href='http://imageads.googleadservices.com/pagead/imgclick/416?pos=0' coords='1,2,367,28' />
<area shape='rect' href='http://services.google.com/feedback/abg' coords='384,10,453,23'/></map>
<img usemap='#google_ad_map_416_78e79355861d63ba' border='0' src='http://imageads.googleadservices.com/pagead/ads?format=468x30_aff_img&amp;client=&amp;channel=&amp;output=png&amp;cuid=416&amp;url= http%3A%2F%2Fwww.thecpaneladmin.com%2Fautomating-apache-php-updates%2F' /></p><img src="http://www.thecpaneladmin.com/?ak_action=api_record_view&id=416&type=feed" alt="" />

<p>Related posts:<ol><li><a href='http://www.thecpaneladmin.com/cpanel-installing-mod_python-apache-2/' rel='bookmark' title='cPanel: Installing Mod_Python on Apache 2'>cPanel: Installing Mod_Python on Apache 2</a></li>
<li><a href='http://www.thecpaneladmin.com/configuring-pureftp/' rel='bookmark' title='Command Line PureFTP Configuration on cPanel'>Command Line PureFTP Configuration on cPanel</a></li>
<li><a href='http://www.thecpaneladmin.com/cpanel-updates-redhat-9-break-stuff/' rel='bookmark' title='cPanel Updates on Redhat 9 Can Break Stuff'>cPanel Updates on Redhat 9 Can Break Stuff</a></li>
</ol></p>]]></content:encoded>
			<wfw:commentRss>http://www.thecpaneladmin.com/automating-apache-php-updates/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Dynamic PHP Extensions Not Loading</title>
		<link>http://www.thecpaneladmin.com/dynamic-php-extensions-not-loading/</link>
		<comments>http://www.thecpaneladmin.com/dynamic-php-extensions-not-loading/#comments</comments>
		<pubDate>Tue, 04 May 2010 21:37:20 +0000</pubDate>
		<dc:creator>Vanessa</dc:creator>
				<category><![CDATA[Misc]]></category>
		<category><![CDATA[easyapache]]></category>
		<category><![CDATA[fixes]]></category>
		<category><![CDATA[php]]></category>

		<guid isPermaLink="false">http://www.thecpaneladmin.com/?p=312</guid>
		<description><![CDATA[I recently saw an issue on one of our servers where we were trying to enable Zend Optimizer and IonCube Loaders, but they just won&#8217;t show up on a phpinfo page despite showing up via command line: -bash-3.2# php -v PHP 4.4.9 (cli) (built: May  4 2010 13:55:07) Copyright (c) 1997-2008 The PHP Group Zend [...]


Related posts:<ol><li><a href='http://www.thecpaneladmin.com/automating-apache-php-updates/' rel='bookmark' title='Automating Apache and PHP Updates'>Automating Apache and PHP Updates</a></li>
<li><a href='http://www.thecpaneladmin.com/overview-php-handlers/' rel='bookmark' title='Overview of PHP Handlers'>Overview of PHP Handlers</a></li>
<li><a href='http://www.thecpaneladmin.com/installing-imagemagick-oncpanel-server/' rel='bookmark' title='Installing ImageMagick on a cPanel Server'>Installing ImageMagick on a cPanel Server</a></li>
</ol>]]></description>
			<content:encoded><![CDATA[<p>I recently saw an issue on one of our servers where we were trying to enable Zend Optimizer and IonCube Loaders, but they just won&#8217;t show up on a phpinfo page despite showing up via command line:</p>
<p><code>-bash-3.2# php -v<br />
PHP 4.4.9 (cli) (built: May  4 2010 13:55:07)<br />
Copyright (c) 1997-2008 The PHP Group<br />
Zend Engine v1.3.0, Copyright (c) 1998-2004 Zend Technologies<br />
with the ionCube PHP Loader v3.3.14, Copyright (c) 2002-2010, by ionCube Ltd., and<br />
with Zend Optimizer v3.3.3, Copyright (c) 1998-2007, by Zend Technologies<br />
</code><br />
After toggling around with this and finally getting cPanel installed, one of their techs (Kyle P.) figured out that the problem is with PHP being built with the versioning extension, which can apparently cause dynamic modules not to load when PHP is invoked as a DSO (and likely as CGI, but couldn&#8217;t reproduce it). The CPanel documentation also recommends against it:</p>
<p><em><strong>&#8220;Versioning</strong> &#8211; The PHP versioning option was intended         to allow the same sort of functionality that the concurrent DSO patches         allow. It does not work well and is not recommended by cPanel or the         PHP developers.&#8221;</em></p>
<p>Quite honestly, I never used versioning on a server and I knew it wasn&#8217;t something that was recommended, but at least now we know why!</p>
<p><map name='google_ad_map_312_78e79355861d63ba'>
<area shape='rect' href='http://imageads.googleadservices.com/pagead/imgclick/312?pos=0' coords='1,2,367,28' />
<area shape='rect' href='http://services.google.com/feedback/abg' coords='384,10,453,23'/></map>
<img usemap='#google_ad_map_312_78e79355861d63ba' border='0' src='http://imageads.googleadservices.com/pagead/ads?format=468x30_aff_img&amp;client=&amp;channel=&amp;output=png&amp;cuid=312&amp;url= http%3A%2F%2Fwww.thecpaneladmin.com%2Fdynamic-php-extensions-not-loading%2F' /></p><img src="http://www.thecpaneladmin.com/?ak_action=api_record_view&id=312&type=feed" alt="" />

<p>Related posts:<ol><li><a href='http://www.thecpaneladmin.com/automating-apache-php-updates/' rel='bookmark' title='Automating Apache and PHP Updates'>Automating Apache and PHP Updates</a></li>
<li><a href='http://www.thecpaneladmin.com/overview-php-handlers/' rel='bookmark' title='Overview of PHP Handlers'>Overview of PHP Handlers</a></li>
<li><a href='http://www.thecpaneladmin.com/installing-imagemagick-oncpanel-server/' rel='bookmark' title='Installing ImageMagick on a cPanel Server'>Installing ImageMagick on a cPanel Server</a></li>
</ol></p>]]></content:encoded>
			<wfw:commentRss>http://www.thecpaneladmin.com/dynamic-php-extensions-not-loading/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>

