<?xml version="1.0" encoding="UTF-8"?>

<rss version="2.0"
 xmlns:blogChannel="http://backend.userland.com/blogChannelModule"
>

<channel>
<title>Parallels knowledgebase (KB)</title>
<link>http://kb.parallels.com/</link>
<description>Parallels knowledgebase (KB)</description>
<language>en</language>
<copyright>Copyright 2008 Parallels</copyright>
<pubDate>Wed, 10 Sep 2008 00:00:00 +0600</pubDate>
<lastBuildDate>Wed, 10 Sep 2008 00:00:00 +0600</lastBuildDate>
<webMaster>rt-team@parallels.com</webMaster>

<item>
<title><![CDATA[I see the message "PHP Startup: Unable to load dynamic library" in the Apache error log when starting the service.]]></title>
<link>http://kb.parallels.com/en/1352</link>
<description><![CDATA[<div id="article">
	




	<div id="kb" class="kb">
		<div class="article-container">
			<h2 class="title">I see the message "PHP Startup: Unable to load dynamic library" in the Apache error log when starting the service.</h2>
			<div class="ab-frame"><div class="bl"><div class="br"><div class="tl"><div class="tr"><!-- frame -->
				<div class="articleProperty">
					<div>Article ID: 1352&nbsp;</div>
					<div>Last Review: Mar,24 2009</div>
					<tr>
						<td>Author: </td>
						<td>Bezborodova Anastasiya</td>
					</tr>
					<br/>
					<tr>
						<td>Last updated by: </td>
						<td>Bezborodova Anastasiya</td>
					</tr>
					<strong>APPLIES TO:</strong>
					<div class="articleApplies">
						<ul>
							<li>Plesk 8.x for Linux/Unix</li>
						</ul>
					</div>
				</div><!-- articleProperty -->
			</div></div></div></div></div><!-- frame -->

			<div class="article-internal-flag"></div>

			<div id="article-content">
				<div class="article-part">
					<h2>Symptoms</h2>
					<p>Apache can be started, but I see the warnings in the error_log, for example:&nbsp;</p><p><em>&quot;PHP Warning:&nbsp; PHP Startup: Unable to load dynamic library '/usr/lib/php/modules/pgsql.so' -&nbsp; /usr/lib/php/modules/pgsql.so: cannot open shared object file: No such file or directory in Unknown on line 0&quot;</em></p><p>Module name can differ from the one listed in this error (pgsql.so).</p>
				</div>
				<div class="article-part">
					<h2>Cause</h2>
					This error means that PHP cannot open some module which is listed in it's configuration files with '<span style="font-weight: bold;">extension</span>' directive. The error can be related to any PHP module, such as:<br />dom.so, gd.so, imap.so, ldap.so, mbstring.so, mysql.so, mysql.so, odbc.so, pgsql.so, sitebuilder.so, xsl.so, zip.so, etc...
				</div>
				<div class="article-part">
					<h2>Resolution</h2>
					<p>If you deleted the problem module or do not need it to be loaded, you can avoid this message by commenting this module loading string ( in this example it is &quot;<span style="font-weight: bold;">extension=pgsql.so</span>&quot; ) in /etc/php.ini and /etc/php.d/* files.</p><p>&nbsp;</p><p>If you wish to use this module, it should be placed into PHP extension directory that is configured with <strong>extension_dir</strong> directive in /etc/php.ini and listed in the error you get. Usually it is done automatically when you install the appropriate module package into the system, in our example <strong>pgsql.so</strong> module corresponds to <strong>php-pgsql</strong> package (for imap.so, it will be php-imap, for mysql.so - php-mysql, etc...). So, if the package that provides this module is not installed in the system, you should install it using the OS package manager, for example for RPM:</p><p><div class="commandline"><code># rpm -Uvh php-pgsql-x.x.x-xx.x.rpm </code></div></p>
				</div>
			</div>
		</div><!-- article-container -->


			<br/><br/>

			<div id="SubscriptionLink24Article" class="subscriptionLink2">
<a href="http://kb.parallels.com/subscriptions/index.html?Type=Article&ArticleID=1352&ArticleLanguage=en&Product=&Category="><img src="http://kb.parallels.com/images/mail.png" width="15" height="15" alt="Subscription for changes to this article"></a>
<a href="http://kb.parallels.com/subscriptions/index.html?Type=Article&ArticleID=1352&ArticleLanguage=en&Product=&Category=">Subscription for changes to this article</a>

<script type="text/javascript">

$(document).ready(function() {
	$('#SubscriptionLink24Article a').each(function(){
		$(this).click(function(event) {
			event.preventDefault();
			MainPageContentHide();
			$('#subscription').html('');
			$.get('/Stuff/Subscription', {
													'Type' : 'Article',
													'ArticleID' : '1352',
													'ArticleLanguage' : 'en',
													'Product' : '',
													'Category' : ''
												}, function(data) {
																	$('#subscription').html(data);
																	$('#subscription').show();
																	SUBbuildsubmenus_product();
																});
		});
	});
});

</script>

</div>





	</div><!-- kb -->

</div><!-- article -->


]]></description>
<author>Bezborodova Anastasiya</author>
<guid isPermaLink="false">994 LastUpdated: 2009-03-24 10:09:26</guid>
<pubDate>2008-10-06 09:11:20</pubDate>
</item>
</channel>
</rss>



