<?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; php</title>
	<atom:link href="http://www.thecpaneladmin.com/tag/php/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>PHP 500 Internal Server Errors</title>
		<link>http://www.thecpaneladmin.com/php-500-internal-server-errors/</link>
		<comments>http://www.thecpaneladmin.com/php-500-internal-server-errors/#comments</comments>
		<pubDate>Mon, 17 May 2010 18:54:23 +0000</pubDate>
		<dc:creator>Vanessa</dc:creator>
				<category><![CDATA[Misc]]></category>
		<category><![CDATA[apache]]></category>
		<category><![CDATA[fixes]]></category>
		<category><![CDATA[php]]></category>
		<category><![CDATA[troubleshooting]]></category>

		<guid isPermaLink="false">http://www.thecpaneladmin.com/?p=426</guid>
		<description><![CDATA[500 Internal Server Errors are one of the most common PHP issues that I see customer experience, and it will occur mostly on servers with suPHP or PHP running as CGI.  These errors can be caused by something on the server, or an issue on the user&#8217;s site. Here &#8216;s what you should do if [...]


Related posts:<ol><li><a href='http://www.thecpaneladmin.com/quota-errors-in-exims-panic-log/' rel='bookmark' title='Quota Errors in Exim&#8217;s Panic Log'>Quota Errors in Exim&#8217;s Panic Log</a></li>
<li><a href='http://www.thecpaneladmin.com/executable-not-set-uid-root/' rel='bookmark' title='Executable not set-uid root'>Executable not set-uid root</a></li>
<li><a href='http://www.thecpaneladmin.com/resolving-domain-park-wrapper-errors/' rel='bookmark' title='Resolving Domain Park Wrapper Errors'>Resolving Domain Park Wrapper Errors</a></li>
</ol>]]></description>
			<content:encoded><![CDATA[<p>500 Internal Server Errors are one of the most common PHP issues that I see customer experience, and it will occur mostly on servers with suPHP or PHP running as CGI.  These errors can be caused by something on the server, or an issue on the user&#8217;s site. Here &#8216;s what you should do if you see errors:</p>
<p><strong>Check the logs</strong></p>
<p>You can solve most problems quickly just by looking at the logs:</p>
<blockquote><p>/usr/local/apache/logs/error_log</p></blockquote>
<blockquote><p>/usr/local/apache/logs/suphp.log</p></blockquote>
<p>Here are some common errors:</p>
<p><code>SoftException in Application.cpp:357: UID of script "/home/user/public_html/test.php" is smaller than min_uid</code></p>
<p><code>SoftException in Application.cpp:422: Mismatch between target UID (511) and UID (510) of file "/home/user/public_html/test.php"</code></p>
<p><code>SoftException in Application.cpp:264: File "/home/user/public_html/test.php" is writeable by others</code></p>
<p>These are all permission/ownership issues, indicating that the owner of the PHP file being called in incorrect, or the permissions are higher than what is allowed in suphp.conf.</p>
<p><strong>Invalid directions in .htaccess</strong></p>
<p>If you&#8217;re running PHP in CGI or suPHP mode, you can&#8217;t use php_flag or php_value directives in .htaccess &#8211; you either need to use htscanner to allow Apache to parse those commands, or make php-related changes in php.ini within the user&#8217;s account. You can check the Apache error log in /usr/local/apache/logs/error_log to see if you get something like this:</p>
<p><code>/home/user/public_html/.htaccess: Invalid command 'php_flag', perhaps misspelled or defined by a module not included in the server configuration</code></p>
<p>If the error log indicates a problem with .htaccess, you need to remove the directives indicated and make sure your ssyntax is correct, and that they are in the correct places.</p>
<p><strong>Incorrect ownership or permissions</strong></p>
<p>PHP scripts and their immediate parent folder will usually have permissions limits when PHP runs in CGI/suPHP mode. By default, PHP files and their parent folders can not have group or &#8216;other&#8217; writable permissions, and cannot be owned by a user on the system other than than the user that owns the home folder it is located in. Additionally, cPanel&#8217;s implementation of suPHP does not allow PHP to execute via browser from locations that are not inside a user&#8217;s home folder. The first thing you should check is that the PHP script and its parent folder(s) are not writable by &#8216;group&#8217; or &#8216;other&#8217;, or owned by a different system user. You can usually see if this is an issue by tailing the suphp log in /usr/local/apache/logs/suphp.log, or whatever the suphp.conf has set as the log location.</p>
<p>You can adjust suPHP&#8217;s permissions allowances in /opt/suphp/etc/suphp.conf to allow &#8216;group&#8217; and &#8216;other&#8217; writable permissions if it&#8217;s necessary by modifying these values:</p>
<p><code>allow_file_group_writeable=false<br />
allow_file_others_writeable=false<br />
allow_directory_group_writeable=false<br />
allow_directory_others_writeable=false</code></p>
<p>If the problem is with the min_uid value being too low (such as if you&#8217;re running a PHP script as root), you can also modify the &#8220;min_uid&#8221; and &#8220;min_gid&#8221; values to be more permissive. Changing anything in the suphp.conf requires a restart of Apache.</p>
<p><strong>SuPHP binary missing its &#8220;sticky&#8221; permissions</strong></p>
<p>Take a look at the suphp binary. It should look a bit like this, and in most shells, will be highlighted in red:</p>
<blockquote><p>-rw<strong>s</strong>r-xr-x 1 root root 341K Mar 30 12:25 /opt/suphp/sbin/suphp*</p></blockquote>
<p>If it&#8217;s missing the &#8216;s&#8217; in the permissions column, you need to re-add the sticky bit to allow users on the system to execute it properly:</p>
<blockquote><p>chmod +s /opt/suphp/sbin/suphp</p></blockquote>
<p><strong>Last resort</strong></p>
<p>If all else fails, you could be running a bum Apache build.  Try running EasyApache to reinstall to see if that fixes the problem.  You can also <a href="http://thecpaneladmin.com/consultation" target="_self">submit a support request</a> to us and we may be able to fix this for you:</p>
<p><map name='google_ad_map_426_78e79355861d63ba'>
<area shape='rect' href='http://imageads.googleadservices.com/pagead/imgclick/426?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_426_78e79355861d63ba' border='0' src='http://imageads.googleadservices.com/pagead/ads?format=468x30_aff_img&amp;client=&amp;channel=&amp;output=png&amp;cuid=426&amp;url= http%3A%2F%2Fwww.thecpaneladmin.com%2Fphp-500-internal-server-errors%2F' /></p><img src="http://www.thecpaneladmin.com/?ak_action=api_record_view&id=426&type=feed" alt="" />

<p>Related posts:<ol><li><a href='http://www.thecpaneladmin.com/quota-errors-in-exims-panic-log/' rel='bookmark' title='Quota Errors in Exim&#8217;s Panic Log'>Quota Errors in Exim&#8217;s Panic Log</a></li>
<li><a href='http://www.thecpaneladmin.com/executable-not-set-uid-root/' rel='bookmark' title='Executable not set-uid root'>Executable not set-uid root</a></li>
<li><a href='http://www.thecpaneladmin.com/resolving-domain-park-wrapper-errors/' rel='bookmark' title='Resolving Domain Park Wrapper Errors'>Resolving Domain Park Wrapper Errors</a></li>
</ol></p>]]></content:encoded>
			<wfw:commentRss>http://www.thecpaneladmin.com/php-500-internal-server-errors/feed/</wfw:commentRss>
		<slash:comments>7</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>
		<item>
		<title>Executable not set-uid root</title>
		<link>http://www.thecpaneladmin.com/executable-not-set-uid-root/</link>
		<comments>http://www.thecpaneladmin.com/executable-not-set-uid-root/#comments</comments>
		<pubDate>Mon, 03 May 2010 03:44:16 +0000</pubDate>
		<dc:creator>Vanessa</dc:creator>
				<category><![CDATA[Misc]]></category>
		<category><![CDATA[apache]]></category>
		<category><![CDATA[fixes]]></category>
		<category><![CDATA[php]]></category>

		<guid isPermaLink="false">http://www.thecpaneladmin.com/?p=309</guid>
		<description><![CDATA[One of the servers here at work was giving a 500 Internal Server error whenever a PHP page was loaded. Among the various things that can cause this error when you&#8217;re running PHP in CGI mode (suPHP), this error showing up in the Apache log was most unusual. Turns out it&#8217;s due to the suphp [...]


Related posts:<ol><li><a href='http://www.thecpaneladmin.com/php-500-internal-server-errors/' rel='bookmark' title='PHP 500 Internal Server Errors'>PHP 500 Internal Server Errors</a></li>
<li><a href='http://www.thecpaneladmin.com/re-installing-auxiliary-cpanel-software/' rel='bookmark' title='Re-Installing Auxiliary cPanel Software'>Re-Installing Auxiliary cPanel Software</a></li>
<li><a href='http://www.thecpaneladmin.com/fix-account-permissions/' rel='bookmark' title='Simple Bash Script to Fix Account Permissions'>Simple Bash Script to Fix Account Permissions</a></li>
</ol>]]></description>
			<content:encoded><![CDATA[<p>One of the servers here at work was giving a 500 Internal Server error whenever a PHP page was loaded. Among the <a href="http://www.thecpaneladmin.com/php-500-internal-server-errors/" target="_self">various things</a> that can cause this error when you&#8217;re running PHP in CGI mode (suPHP), this error showing up in the Apache log was most unusual. Turns out it&#8217;s due to the suphp binary missing its sticky/suid permissions.</p>
<p><code>SecurityException in Application.cpp:188: Do not have root privileges. Executable not set-uid root?</code></p>
<p>To fix, simply <strong>chmod +s </strong>the suphp binary:</p>
<blockquote><p>chmod +s /opt/suphp/bin/suphp</p></blockquote>
<p><map name='google_ad_map_309_78e79355861d63ba'>
<area shape='rect' href='http://imageads.googleadservices.com/pagead/imgclick/309?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_309_78e79355861d63ba' border='0' src='http://imageads.googleadservices.com/pagead/ads?format=468x30_aff_img&amp;client=&amp;channel=&amp;output=png&amp;cuid=309&amp;url= http%3A%2F%2Fwww.thecpaneladmin.com%2Fexecutable-not-set-uid-root%2F' /></p><img src="http://www.thecpaneladmin.com/?ak_action=api_record_view&id=309&type=feed" alt="" />

<p>Related posts:<ol><li><a href='http://www.thecpaneladmin.com/php-500-internal-server-errors/' rel='bookmark' title='PHP 500 Internal Server Errors'>PHP 500 Internal Server Errors</a></li>
<li><a href='http://www.thecpaneladmin.com/re-installing-auxiliary-cpanel-software/' rel='bookmark' title='Re-Installing Auxiliary cPanel Software'>Re-Installing Auxiliary cPanel Software</a></li>
<li><a href='http://www.thecpaneladmin.com/fix-account-permissions/' rel='bookmark' title='Simple Bash Script to Fix Account Permissions'>Simple Bash Script to Fix Account Permissions</a></li>
</ol></p>]]></content:encoded>
			<wfw:commentRss>http://www.thecpaneladmin.com/executable-not-set-uid-root/feed/</wfw:commentRss>
		<slash:comments>2</slash:comments>
		</item>
		<item>
		<title>Re-Installing Auxiliary cPanel Software</title>
		<link>http://www.thecpaneladmin.com/re-installing-auxiliary-cpanel-software/</link>
		<comments>http://www.thecpaneladmin.com/re-installing-auxiliary-cpanel-software/#comments</comments>
		<pubDate>Thu, 01 Apr 2010 15:52:56 +0000</pubDate>
		<dc:creator>Vanessa</dc:creator>
				<category><![CDATA[Misc]]></category>
		<category><![CDATA[apache]]></category>
		<category><![CDATA[fixes]]></category>
		<category><![CDATA[mysql]]></category>
		<category><![CDATA[php]]></category>
		<category><![CDATA[scripts]]></category>
		<category><![CDATA[tricks]]></category>
		<category><![CDATA[webmail]]></category>

		<guid isPermaLink="false">http://www.thecpaneladmin.com/?p=278</guid>
		<description><![CDATA[Cpanel has a lot of supporting software that you may be using on your server. In case something goes amiss, here is a list of scripts that reinstall cpanel-provided software on your system. For most all of these, you can pass a &#8211;force as an argument to force a reinstall of the application. cPanel /scripts/upcp [...]


Related posts:<ol><li><a href='http://www.thecpaneladmin.com/reinstalling-webmail-cpanel/' rel='bookmark' title='Reinstalling Webmail'>Reinstalling Webmail</a></li>
<li><a href='http://www.thecpaneladmin.com/installing-and-configuring-dovecot/' rel='bookmark' title='Installing and Configuring Dovecot'>Installing and Configuring Dovecot</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>Cpanel has a lot of supporting software that you may be using on your server. In case something goes amiss, here is a list of scripts that reinstall cpanel-provided software on your system. For most all of these, you can pass a <strong>&#8211;force </strong>as an argument to force a reinstall of the application.</p>
<p><strong>cPanel</strong><br />
/scripts/upcp</p>
<p><strong>MySQL</strong><br />
/scripts/mysqlup</p>
<p><strong>PostgreSQL</strong><br />
/scripts/installpostgres</p>
<p><strong>Roundcube</strong><br />
/usr/local/cpanel/bin/update-roundcube</p>
<p><strong>Horde</strong><br />
/usr/local/cpanel/bin/update-horde</p>
<p><strong>Squirrelmail</strong><br />
/usr/local/cpanel/bin/update-squirrelmail</p>
<p><strong>phpMyAdmin</strong><br />
/usr/local/cpanel/bin/updatephpmyadmin</p>
<p><strong>pureFTP</strong><br />
/scripts/ftpup &#8211;force (See: Installing and Configuring pure-FTP)</p>
<p><strong>Exim</strong><br />
/scripts/eximup</p>
<p><strong>Courier IMAP</strong><br />
/scripts/courierup &#8211;force (See: Installing/Configuring Courier IMAP)</p>
<p><strong>Dovecot</strong><br />
/scripts/dovecotup &#8211;force (See: Installing and Configuring Dovecot)</p>
<p><strong>cpAddons</strong><br />
/scripts/cpaddonsup</p>
<p><strong>NSD/BIND</strong><br />
/scripts/setupnameserver (NSD:/scripts/nsdup)</p>
<p><strong>Apache/PHP</strong><br />
/scripts/easyapache (See: EasyApache)</p>
<p><strong>suPHP</strong><br />
/scripts/suphpup</p>
<p><strong>cPanel Internal PHP</strong><br />
/scripts/makecpphp</p>
<p><strong>FrontPage Extensions</strong><br />
/scripts/fpupgrade</p>
<p><strong>Mailman</strong><br />
/scripts/reinstallmailman (will not remove list data)</p>
<p><strong>cpHulkd</strong><br />
/usr/local/cpanel/bin/hulkdsetup</p>
<p><strong>Ruby</strong><br />
/scripts/installruby</p>
<p><map name='google_ad_map_278_78e79355861d63ba'>
<area shape='rect' href='http://imageads.googleadservices.com/pagead/imgclick/278?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_278_78e79355861d63ba' border='0' src='http://imageads.googleadservices.com/pagead/ads?format=468x30_aff_img&amp;client=&amp;channel=&amp;output=png&amp;cuid=278&amp;url= http%3A%2F%2Fwww.thecpaneladmin.com%2Fre-installing-auxiliary-cpanel-software%2F' /></p><img src="http://www.thecpaneladmin.com/?ak_action=api_record_view&id=278&type=feed" alt="" />

<p>Related posts:<ol><li><a href='http://www.thecpaneladmin.com/reinstalling-webmail-cpanel/' rel='bookmark' title='Reinstalling Webmail'>Reinstalling Webmail</a></li>
<li><a href='http://www.thecpaneladmin.com/installing-and-configuring-dovecot/' rel='bookmark' title='Installing and Configuring Dovecot'>Installing and Configuring Dovecot</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/re-installing-auxiliary-cpanel-software/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>

