<?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>modules Archives - Linux Windows and android Tutorials</title>
	<atom:link href="https://www.osradar.com/tag/modules/feed/" rel="self" type="application/rss+xml" />
	<link>https://www.osradar.com</link>
	<description>tutorials and news and Seurity</description>
	<lastBuildDate>Mon, 09 Nov 2020 15:32:19 +0000</lastBuildDate>
	<language>en-US</language>
	<sy:updatePeriod>
	hourly	</sy:updatePeriod>
	<sy:updateFrequency>
	1	</sy:updateFrequency>
	<generator>https://wordpress.org/?v=5.8.12</generator>
	<item>
		<title>How to list the PHP modules installed on your system?</title>
		<link>https://www.osradar.com/how-to-list-the-php-modules-installed-on-your-system/</link>
					<comments>https://www.osradar.com/how-to-list-the-php-modules-installed-on-your-system/#respond</comments>
		
		<dc:creator><![CDATA[angeloma]]></dc:creator>
		<pubDate>Tue, 10 Nov 2020 03:55:00 +0000</pubDate>
				<category><![CDATA[Applications]]></category>
		<category><![CDATA[Databases]]></category>
		<category><![CDATA[Servers]]></category>
		<category><![CDATA[debian]]></category>
		<category><![CDATA[fedora]]></category>
		<category><![CDATA[modules]]></category>
		<category><![CDATA[PHP]]></category>
		<category><![CDATA[Programming]]></category>
		<category><![CDATA[RHEL]]></category>
		<category><![CDATA[server]]></category>
		<category><![CDATA[ubuntu]]></category>
		<guid isPermaLink="false">https://www.osradar.com/?p=25200</guid>

					<description><![CDATA[<p>In this blog, we like the topic of servers and the multiple applications that we can install on it. Some of them are very professional and dedicated to a very specific user sector, but others are more common. Well, many of these server applications have a web environment, and the web is dominated by PHP. [&#8230;]</p>
<p>The post <a rel="nofollow" href="https://www.osradar.com/how-to-list-the-php-modules-installed-on-your-system/">How to list the PHP modules installed on your system?</a> appeared first on <a rel="nofollow" href="https://www.osradar.com">Linux  Windows and android  Tutorials</a>.</p>
]]></description>
										<content:encoded><![CDATA[
<p>In this blog, we like the topic of servers and the multiple applications that we can install on it. Some of them are very professional and dedicated to a very specific user sector, but others are more common. Well, many of these server applications have a web environment, and the web is dominated by PHP. Now, how do we know which PHP modules are in our system? Well in this post, learn how to list the PHP modules installed on your system. So when you want to install other programs you know which modules are missing.</p>



<h2>List the PHP modules installed on your system</h2>



<p>This post, will list the modules installed either from the official repositories of your distribution or compiled manually. So you will be able to detail them all indistinctly as they were installed.</p>



<p>To do this, open a terminal and run the following command:</p>



<pre class="wp-block-preformatted">php -m</pre>



<p>And there will be a screen output similar to this one:</p>



<pre class="wp-block-preformatted">[PHP modules]<br>.<br>.<br>.<br>ctype<br>date<br>exif<br>fileinfo<br>filter<br>ftp<br>gd<br>gettext<br>hash<br>iconv<br>json<br>libxml<br>mbstring<br>mysqli<br>mysqlnd<br>openssl<br>pcntl<br>pcre<br>.<br>.<br>.</pre>



<p>We can combine this command with the grep command to filter the modules. For example, if we want to search exactly for mbstring, we can follow the following syntax</p>



<pre class="wp-block-preformatted">php -m | grep -i mbstring<br>mbstring</pre>



<p>Remember that the -i option makes the search case insensitive.</p>



<p>Another way to do it</p>



<p>Linux is great because it allows you to do the same process in different ways. So, we can also use DNF and <a href="https://www.osradar.com/apt-the-ubuntu-package-manager/" target="_blank" rel="noreferrer noopener">APT</a> for that, depending on the distribution you use.</p>



<p>In the case of <a href="https://fedoraproject.org/wiki/DNF" target="_blank" rel="noreferrer noopener">DNF</a> which is the Fedora, CentOS, RHEL and derivatives package manager, open a terminal and run:</p>



<pre class="wp-block-preformatted">sudo dnf list installed | grep -i php</pre>



<p>or using the RPM command:</p>



<pre class="wp-block-preformatted">rpm -qa | grep -i php</pre>



<p>In case you use Debian, Ubuntu, Linux Mint or any derivative of these, then use dpkg in the following way:</p>



<pre class="wp-block-preformatted">dpkg --get-selections | grep -i php</pre>



<pre class="wp-block-preformatted">Output:<br>.<br>.<br>.<br>php7.4-cli install<br>php7.4-common install<br>php7.4-fpm install<br>php7.4-gd<br>.<br>.<br>.</pre>



<p>Similarly, you can combine this command with grep and perform filters.</p>



<p>So, this way you will know which are the PHP modules you have installed in your system</p>



<h2>Conclusion</h2>



<p>Thanks to this post, you can quickly find out which PHP modules you have in your system. This is very helpful in servers and also in computers where web applications are developed.</p>
<p>The post <a rel="nofollow" href="https://www.osradar.com/how-to-list-the-php-modules-installed-on-your-system/">How to list the PHP modules installed on your system?</a> appeared first on <a rel="nofollow" href="https://www.osradar.com">Linux  Windows and android  Tutorials</a>.</p>
]]></content:encoded>
					
					<wfw:commentRss>https://www.osradar.com/how-to-list-the-php-modules-installed-on-your-system/feed/</wfw:commentRss>
			<slash:comments>0</slash:comments>
		
		
			</item>
	</channel>
</rss>
