<?xml version="1.0" encoding="UTF-8"?><rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	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/"
	
	>
<channel>
	<title>
	Comments on: How to Find MySQL, PHP and Apache Configuration Files	</title>
	<atom:link href="https://www.tecmint.com/find-mysql-php-apache-configuration-files/feed/" rel="self" type="application/rss+xml" />
	<link>https://www.tecmint.com/find-mysql-php-apache-configuration-files/</link>
	<description>Tecmint - Linux Howtos, Tutorials, Guides, News, Tips and Tricks.</description>
	<lastBuildDate>Thu, 13 Jul 2023 21:28:34 +0000</lastBuildDate>
	<sy:updatePeriod>
	hourly	</sy:updatePeriod>
	<sy:updateFrequency>
	1	</sy:updateFrequency>
	
	<item>
		<title>
		By: Aaron Kili		</title>
		<link>https://www.tecmint.com/find-mysql-php-apache-configuration-files/comment-page-1/#comment-851605</link>

		<dc:creator><![CDATA[Aaron Kili]]></dc:creator>
		<pubDate>Thu, 22 Dec 2016 09:19:32 +0000</pubDate>
		<guid isPermaLink="false">http://www.tecmint.com/?p=23925#comment-851605</guid>

					<description><![CDATA[In reply to &lt;a href=&quot;https://www.tecmint.com/find-mysql-php-apache-configuration-files/comment-page-1/#comment-850893&quot;&gt;LempStacker&lt;/a&gt;.

@LempStacker 

These are great alternatives as well for &lt;strong&gt;Awk&lt;/strong&gt; users, many thanks for sharing these commands with us.]]></description>
			<content:encoded><![CDATA[<p>In reply to <a target="_blank" href="https://www.tecmint.com/find-mysql-php-apache-configuration-files/comment-page-1/#comment-850893">LempStacker</a>.</p>
<p>@LempStacker </p>
<p>These are great alternatives as well for <strong>Awk</strong> users, many thanks for sharing these commands with us.</p>
]]></content:encoded>
		
			</item>
		<item>
		<title>
		By: LempStacker		</title>
		<link>https://www.tecmint.com/find-mysql-php-apache-configuration-files/comment-page-1/#comment-850893</link>

		<dc:creator><![CDATA[LempStacker]]></dc:creator>
		<pubDate>Wed, 21 Dec 2016 10:17:49 +0000</pubDate>
		<guid isPermaLink="false">http://www.tecmint.com/?p=23925#comment-850893</guid>

					<description><![CDATA[I just use command &lt;strong&gt;awk&lt;/strong&gt; and &lt;strong&gt;sed&lt;/strong&gt;, check configuration file of mysql, php, nginx

&lt;strong&gt;Check MySQL Configuration File.&lt;/strong&gt;
&lt;pre&gt;
[flying@lempstacker ~]$ mysql --help &#124; awk &#039;$0~/Default options/{getline;print}&#039;
/etc/my.cnf ~/.my.cnf

[flying@lempstacker ~]$ mysqladmin --help &#124; awk &#039;$0~/Default options/{getline;print}&#039;
/etc/my.cnf ~/.my.cnf 
&lt;/pre&gt;
&lt;strong&gt;Check PHP Configuration File.&lt;/strong&gt;
&lt;pre&gt;
[flying@lempstacker ~]$ php -i &#124; awk &#039;$0~/^Loaded Configuration File/{print $NF}&#039;
/etc/php.ini
&lt;/pre&gt;
&lt;strong&gt;Check Nginx Configuration File.&lt;/strong&gt; 
&lt;pre&gt;
[flying@lempstacker ~]$ nginx -V 2&#062;&#038;1 &#124; sed -r -n &#039;s@.*conf-path=(.*) --error.*@\1@p&#039;
/etc/nginx/nginx.conf
&lt;/pre&gt;]]></description>
			<content:encoded><![CDATA[<p>I just use command <strong>awk</strong> and <strong>sed</strong>, check configuration file of mysql, php, nginx</p>
<p><strong>Check MySQL Configuration File.</strong></p>
<pre>
[flying@lempstacker ~]$ mysql --help | awk '$0~/Default options/{getline;print}'
/etc/my.cnf ~/.my.cnf

[flying@lempstacker ~]$ mysqladmin --help | awk '$0~/Default options/{getline;print}'
/etc/my.cnf ~/.my.cnf 
</pre>
<p><strong>Check PHP Configuration File.</strong></p>
<pre>
[flying@lempstacker ~]$ php -i | awk '$0~/^Loaded Configuration File/{print $NF}'
/etc/php.ini
</pre>
<p><strong>Check Nginx Configuration File.</strong> </p>
<pre>
[flying@lempstacker ~]$ nginx -V 2&gt;&amp;1 | sed -r -n 's@.*conf-path=(.*) --error.*@\1@p'
/etc/nginx/nginx.conf
</pre>
]]></content:encoded>
		
			</item>
	</channel>
</rss>
