<?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>Uncategorized &#8211; LarryLai</title>
	<atom:link href="https://larrylai.com/category/uncategorized-en/feed/" rel="self" type="application/rss+xml" />
	<link>https://larrylai.com</link>
	<description>兼聽則明 偏聽則暗</description>
	<lastBuildDate>Tue, 12 Mar 2019 18:03:16 +0000</lastBuildDate>
	<language>en-GB</language>
	<sy:updatePeriod>
	hourly	</sy:updatePeriod>
	<sy:updateFrequency>
	1	</sy:updateFrequency>
	

<image>
	<url>https://larrylai.com/wp-content/uploads/2017/03/larrylai_com-favicon.png</url>
	<title>Uncategorized &#8211; LarryLai</title>
	<link>https://larrylai.com</link>
	<width>32</width>
	<height>32</height>
</image> 
	<item>
		<title>PHP 7 &#038; Related Issues</title>
		<link>https://larrylai.com/php-7-related-issues/</link>
					<comments>https://larrylai.com/php-7-related-issues/#respond</comments>
		
		<dc:creator><![CDATA[larry]]></dc:creator>
		<pubDate>Tue, 12 Mar 2019 15:15:42 +0000</pubDate>
				<category><![CDATA[IT]]></category>
		<category><![CDATA[Middleware]]></category>
		<category><![CDATA[Software]]></category>
		<category><![CDATA[Uncategorized]]></category>
		<category><![CDATA[Error]]></category>
		<category><![CDATA[PHP7]]></category>
		<guid isPermaLink="false">http://larrylai.com/?p=3619</guid>

					<description><![CDATA[<p>Background After installing a WordPress plugin &#8211; WP Health, it&#8217;s reminded that PHP5 had no longer been supported since late 2018, thus there may be risk in all WordPress websites. Issue Since removing PHP5 (retrospectively known that it&#8217;s not necessary), and installed remi&#8217;s repository&#8217;s PHP72, some WordPress sites could not be accessed with message: &#8220;Internal [&#8230;]</p>
<p>The post <a rel="nofollow" href="https://larrylai.com/php-7-related-issues/">PHP 7 &#038; Related Issues</a> appeared first on <a rel="nofollow" href="https://larrylai.com">LarryLai</a>.</p>
]]></description>
										<content:encoded><![CDATA[
<h2 class="wp-block-heading">Background</h2>



<p>After installing a WordPress plugin &#8211; WP Health, it&#8217;s reminded that PHP5 had no longer been supported since late 2018, thus there may be risk in all WordPress websites.</p>



<h2 class="wp-block-heading">Issue</h2>



<p>Since removing PHP5 (retrospectively known that it&#8217;s not necessary), and installed remi&#8217;s repository&#8217;s PHP72, some WordPress sites could not be accessed with message: &#8220;Internal Server Error. The server encountered an internal error or misconfiguration and was unable to complete your request.&#8221; Then using VirtualBox&#8217;s snapshot to roll back and finally got every site back to normal.</p>



<p>However, using re-check configuration of Virtualmin to see if there&#8217;s anything need to follow up, it&#8217;s known that mod_actions of Apache wasn&#8217;t enabled. Then after enabling mod_actions by uncommenting the following: </p>



<pre class="wp-block-preformatted">LoadModule actions_module modules/mod_action.so<br></pre>



<p>in /etc/httpd/conf.modules.d/00-base.conf, something weird that instead of executing php page, these pages were downloaded. Some members on forums suggested that the following in /etc/httpd/conf.d/php.conf should be commented out:</p>



<pre class="wp-block-preformatted">SetHandler application/x-httpd-php</pre>



<p>This really solved the problem of not executing php pages, but another weird thing happened. Some other websites couldn&#8217;t be accessed again with message: 500 Internal Server Error.</p>



<h2 class="wp-block-heading">Solution</h2>



<ol class="wp-block-list"><li>The permission of some html directories all granted to 775 and changed owner as apache.</li><li>In Virtualmin, Server Config -> Website Options -> PHP script execution mode must select FPM if mod_fpm is installed and enable.</li></ol>



<h2 class="wp-block-heading">Tricks</h2>



<p>Before comment out SetHandler application/x-httpd-php, directory permission was not a problem. What and how does something change the permission or why is the permission of html directories should be further granted to eliminated 500 Internal Server Error?</p>



<h2 class="wp-block-heading">Config</h2>



<ul class="wp-block-list"><li>WordPress 5.1</li><li>Virtualmin 6</li><li>PHP7.2 remi</li><li>CentOS7</li></ul>
<p>The post <a rel="nofollow" href="https://larrylai.com/php-7-related-issues/">PHP 7 &#038; Related Issues</a> appeared first on <a rel="nofollow" href="https://larrylai.com">LarryLai</a>.</p>
]]></content:encoded>
					
					<wfw:commentRss>https://larrylai.com/php-7-related-issues/feed/</wfw:commentRss>
			<slash:comments>0</slash:comments>
		
		
			</item>
		<item>
		<title>Centos7 Virtualmin Upgrade PHP7 MariaDB</title>
		<link>https://larrylai.com/centos7-virtualmin-upgrade-php7-mariadb/</link>
					<comments>https://larrylai.com/centos7-virtualmin-upgrade-php7-mariadb/#respond</comments>
		
		<dc:creator><![CDATA[larry]]></dc:creator>
		<pubDate>Thu, 28 Feb 2019 14:17:32 +0000</pubDate>
				<category><![CDATA[Cloud]]></category>
		<category><![CDATA[CMS]]></category>
		<category><![CDATA[IT]]></category>
		<category><![CDATA[Software]]></category>
		<category><![CDATA[System]]></category>
		<category><![CDATA[Uncategorized]]></category>
		<category><![CDATA[Virtualization]]></category>
		<category><![CDATA[MariaDB10]]></category>
		<category><![CDATA[PHP7]]></category>
		<guid isPermaLink="false">http://larrylai.com/?p=3604</guid>

					<description><![CDATA[<p>This is my first blog after upgrading to WordPress 5.1 from ver.4.8. Yes, I never tried 5.0 as it&#8217;s always risky to have a major upgrade to ver. x.0. The major difference is using Gutenberg as the post editor other than previous standard one or TinyMCE Advanced. For design of simplicity, Gutenberg is good. Background [&#8230;]</p>
<p>The post <a rel="nofollow" href="https://larrylai.com/centos7-virtualmin-upgrade-php7-mariadb/">Centos7 Virtualmin Upgrade PHP7 MariaDB</a> appeared first on <a rel="nofollow" href="https://larrylai.com">LarryLai</a>.</p>
]]></description>
										<content:encoded><![CDATA[
<p>This is my first blog after upgrading to WordPress 5.1 from ver.4.8. Yes, I never tried 5.0 as it&#8217;s always risky to have a major upgrade to ver. x.0. The major difference is using Gutenberg as the post editor other than previous standard one or TinyMCE Advanced. For design of simplicity, Gutenberg is good.</p>



<h4 class="wp-block-heading">Background</h4>



<p>After installing WP Health, it&#8217;s shown that both MariaDB 5 (a default replacement of MySQL for CentOS7) and PHP5.6 are obsolete, i.e. no more formal support and no security patches will be released. It&#8217;s suggested to upgrade at least to MariaDB10 and PHP7.</p>



<p>Apart from security and support concern, it&#8217;s known that PHP7 has better performance than PHP5. </p>



<h4 class="wp-block-heading">Issue</h4>



<p>After upgrading, either the Virtualmin has problem in displaying submenu on the left panel or there&#8217;re &#8220;Internal Server Error&#8221; on some WordPress sites. It&#8217;s found out that during yum update MariaDB, it&#8217;s required to remove the old MariaDB5, however, for packages dependency needs, yum will at the same time remove Postfix and Virtualmin-base. If these 2 packages are reinstalled after upgrading to MariaDB, then WordPress has problem.</p>



<h4 class="wp-block-heading"> Solution</h4>



<p>Use rpm -e &#8211;nodeps to skip removal of Postfix and Virtualmin-base.</p>



<h4 class="wp-block-heading">Tricks</h4>



<p>After removal PHP5.6, list out all the related packages, e.g. php-mysqlnd, php-gd, etc. depending on my case, there&#8217;re some others. All these have to be reinstalled after installing PHP7.2 base package.</p>



<p>For upgrade of PHP7, never upgrade to the lastest PHP7.3 as some of the PHP packages do not have PHP7.3 compatible rpm, only have PHP7.2 compatible rpm. There&#8217;re many CentOS PHP7 upgrade info. on the web, but some are not good, after try and error, I use <a href="https://tecadmin.net/install-php7-on-centos7/" target="_blank" rel="noopener">TecAdmin.net&#8217;s</a> advice and got no problem.</p>



<h4 class="wp-block-heading">Config</h4>



<ul class="wp-block-list"><li>CentOS: 7.6</li><li>Virtualmin 6.06</li><li>WordPress 5.1</li><li>MariaDB: 10.1</li></ul>
<p>The post <a rel="nofollow" href="https://larrylai.com/centos7-virtualmin-upgrade-php7-mariadb/">Centos7 Virtualmin Upgrade PHP7 MariaDB</a> appeared first on <a rel="nofollow" href="https://larrylai.com">LarryLai</a>.</p>
]]></content:encoded>
					
					<wfw:commentRss>https://larrylai.com/centos7-virtualmin-upgrade-php7-mariadb/feed/</wfw:commentRss>
			<slash:comments>0</slash:comments>
		
		
			</item>
		<item>
		<title>McDonald’s New Seats</title>
		<link>https://larrylai.com/mcdonalds-new-seats/</link>
					<comments>https://larrylai.com/mcdonalds-new-seats/#respond</comments>
		
		<dc:creator><![CDATA[larry]]></dc:creator>
		<pubDate>Sun, 03 Dec 2017 01:23:48 +0000</pubDate>
				<category><![CDATA[Uncategorized]]></category>
		<guid isPermaLink="false">http://larrylai.com/?p=3552</guid>

					<description><![CDATA[<p>New seats are neither stylish nor user friendly. The only motive of using these uncomfortable seats without a back, I think, is to have customers staying shorter in the restaurant.</p>
<p>The post <a rel="nofollow" href="https://larrylai.com/mcdonalds-new-seats/">McDonald’s New Seats</a> appeared first on <a rel="nofollow" href="https://larrylai.com">LarryLai</a>.</p>
]]></description>
										<content:encoded><![CDATA[<p>New seats are neither stylish nor user friendly. The only motive of using these uncomfortable seats without a back, I think, is to have customers staying shorter in the restaurant.</p>
<p>The post <a rel="nofollow" href="https://larrylai.com/mcdonalds-new-seats/">McDonald’s New Seats</a> appeared first on <a rel="nofollow" href="https://larrylai.com">LarryLai</a>.</p>
]]></content:encoded>
					
					<wfw:commentRss>https://larrylai.com/mcdonalds-new-seats/feed/</wfw:commentRss>
			<slash:comments>0</slash:comments>
		
		
			</item>
	</channel>
</rss>
