<?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>Wordpress &#8211; BeatificaBytes</title>
	<atom:link href="https://www.BeatificaBytes.be/tag/wordpress/feed/" rel="self" type="application/rss+xml" />
	<link>https://www.BeatificaBytes.be</link>
	<description>The Joys of Computing</description>
	<lastBuildDate>Sat, 22 Jul 2017 09:57:55 +0000</lastBuildDate>
	<language>en-US</language>
	<sy:updatePeriod>
	hourly	</sy:updatePeriod>
	<sy:updateFrequency>
	1	</sy:updateFrequency>
	<generator>https://wordpress.org/?v=6.8</generator>
	<item>
		<title>WordPress 404 on Synology after restarting NAS</title>
		<link>https://www.BeatificaBytes.be/wordpress-404-on-synology-after-restarting-nas/</link>
					<comments>https://www.BeatificaBytes.be/wordpress-404-on-synology-after-restarting-nas/#respond</comments>
		
		<dc:creator><![CDATA[vletroye]]></dc:creator>
		<pubDate>Sat, 22 Jul 2017 09:57:55 +0000</pubDate>
				<category><![CDATA[Synology]]></category>
		<category><![CDATA[Wordpress]]></category>
		<guid isPermaLink="false">http://www.BeatificaBytes.be/wordpress/?p=2975</guid>

					<description><![CDATA[Each time I restart my NAS (for update&#160;reasons), I have errors 404 when trying to reach any post of my WordPress blog, until I re-set [&#8230;]]]></description>
										<content:encoded><![CDATA[<p style="text-align: justify">Each time I restart my NAS (for update&nbsp;reasons), I have errors 404 when trying to reach any post of my WordPress blog, until I re-set permalinks&#8217; settings. I finally fixed it by&nbsp;updating my WordPress with latest Synology&#8217;s package.</p>
<p style="text-align: justify"><span class="collapseomatic " id="id69b572d698d34"  tabindex="0" title="Click to Read More"    >Click to Read More</span><span id='swap-id69b572d698d34'  class='colomat-swap' style='display:none;'>Click to Close</span><div id="target-id69b572d698d34" class="collapseomatic_content ">
<p style="text-align: justify">A long time ago, rebooting my NAS started to result systematically in 404 in my WordPress blog. I found <a href="http://www.wpbeginner.com/wp-tutorials/how-to-fix-wordpress-posts-returning-404-error/" target="_blank" rel="noopener noreferrer">a manual fix here</a>:&nbsp;simply resetting WordPress permalinks&#8217; settings was solving the problem&#8230; until the next reboot <img src="https://s.w.org/images/core/emoji/15.1.0/72x72/1f641.png" alt="🙁" class="wp-smiley" style="height: 1em; max-height: 1em;" /></p>
<p style="text-align: justify">But I never understood why rebooting my NAS was resulting in&nbsp;the lost of permalinks&#8217; settings. And could find a definitive solution.</p>
<p style="text-align: justify">I&nbsp;finally took today an hour to reproduce and further investigate the problem (motivated by the shiny sun outside :p). I found that restarting only the WordPress Package was also resulting in this issue. I noticed more precisely that the .htaccess file was deleted when starting the package (not when stopping). I am sure that&nbsp;removing access rights on the .htaccess file for WordPress, <a href="https://perishablepress.com/stop-wordpress-htaccess/" target="_blank" rel="noopener noreferrer">as&nbsp;described here</a> for example, would be a solution. But the not best one.</p>
<p style="text-align: justify">I found the best solution by accident.&nbsp;A long time ago, as&nbsp;I&nbsp;was interested in a&nbsp;version of WordPress more recent than the one available via Synology&#8217;s packages, I did a manual upgrade with the <a href="https://wordpress.org/download/" target="_blank" rel="noopener noreferrer">official WordPress setup</a>. Since that time, I never did an update anymore with Synology&#8217;s Package Manager, but used the native WordPress update via its own Dashboard:</p>
<p><a href="https://www.beatificabytes.be/wp-content/uploads/2017/06/WordPress-Update.png"><img fetchpriority="high" decoding="async" class="size-medium wp-image-2976" src="https://www.beatificabytes.be/wp-content/uploads/2017/06/WordPress-Update-300x169.png" alt="WordPress-Update" width="300" height="169"></a></p>
<p style="text-align: justify">Today, I did a backup of WordPress&#8217; installation folders and updated Synolgy&#8217;s WordPress Package.&nbsp;Once the update accomplished, I noticed that the .htaccess was containing information specific to&nbsp;Synology:</p>
<div class="callout" style="text-align: justify">
<p><strong># Synology PHP</strong><br />
<strong>AddHandler default-handler .htm .html .shtml</strong><br />
<strong>AddHandler php-fastcgi .php</strong><br />
<strong>AddType text/html .php</strong><br />
<strong>Action php-fastcgi /php56-fpm-handler.fcgi</strong><br />
<strong># Synology PHP</strong></p>
<p># BEGIN WordPress<br />
&lt;IfModule mod_rewrite.c&gt;<br />
RewriteEngine On<br />
RewriteBase /wordpress/<br />
RewriteRule ^index\.php$ &#8211; [L]
RewriteCond %{REQUEST_FILENAME} !-f<br />
RewriteCond %{REQUEST_FILENAME} !-d<br />
RewriteRule . /wordpress/index.php [L]
&lt;/IfModule&gt;</p>
<p># END WordPress</p>
</div>
<p style="text-align: justify">And now, when restarting WordPress, the .htaccess is not deleted anymore (and&nbsp;permalink&#8217;s settings are not lost). There is certainly a good explanation, that I ignore, but at least I won&#8217;t suffer 404 anymore.</p>
<p style="text-align: justify">And next time I update manually WordPress, I will pay attention to backup the .htaccess as specially <a href="https://codex.wordpress.org/Upgrading_WordPress_Extended" target="_blank" rel="noopener noreferrer">clearly recommended here</a>, as well as merging that .htaccess with the updated one after the update of the Permalinks&#8217; structure:</p>
<ol>
<li>
<div class="callout"><a href="https://codex.wordpress.org/Upgrading_WordPress_Extended#Step_1:_Back_up_your_database">Backup your database</a>. Read <a title="Backing Up Your Database" href="https://codex.wordpress.org/Backing_Up_Your_Database">Backing Up Your Database</a> for a detailed explanation.</div>
</li>
<li>
<div class="callout"><a href="https://codex.wordpress.org/Upgrading_WordPress_Extended#Step_2:_Back_up_ALL_your_WordPress_files">Backup ALL your WordPress files</a> in your WordPress directory. <span style="color: #ff0000"><strong>Don&#8217;t forget your <a style="color: #ff0000" title="Glossary" href="https://codex.wordpress.org/Glossary#.htaccess"><tt>.htaccess</tt></a> file.</strong></span></div>
</li>
<li>
<div class="callout"><a href="https://codex.wordpress.org/Upgrading_WordPress_Extended#Step_3:_Verify_the_backups">Verify the backups</a> you created are there and usable. This is essential.</div>
</li>
<li>
<div class="callout"><a href="https://codex.wordpress.org/Upgrading_WordPress_Extended#Step_4:_Deactivate_ALL_your_Plugins">Deactivate ALL your Plugins</a>.</div>
</li>
<li>
<div class="callout"><a href="https://codex.wordpress.org/Upgrading_WordPress_Extended#Step_5:_Ensure_first_four_steps_are_completed">Ensure first four steps are completed</a>. Do not attempt the upgrade unless you have completed the first four steps.</div>
</li>
<li>
<div class="callout"><a href="https://codex.wordpress.org/Upgrading_WordPress_Extended#Step_6:_Download_and_extract_the_WordPress_package">Download and extract the WordPress package</a> from <a class="external free" href="http://wordpress.org/download/">http://wordpress.org/download/</a>.</div>
</li>
<li>
<div class="callout"><a href="https://codex.wordpress.org/Upgrading_WordPress_Extended#Step_7:_Delete_the_old_WordPress_files">Delete the old WordPress files</a> on your site, but <b>DO NOT DELETE</b></p>
<ul>
<li><code>wp-config.php</code> file;</li>
<li><code>wp-content</code> folder; Special Exception: the <code>wp-content/cache</code> and the <code>wp-content/plugins/widgets</code> folders should be deleted.</li>
<li><code>wp-images</code> folder;</li>
<li><code>wp-includes/languages/</code> folder&#8211;if you are using a language file do not delete that folder;</li>
<li><code>.htaccess</code> file&#8211;if you have added custom rules to your <code>.htaccess</code>, do not delete it;</li>
<li><code>robots.txt</code> file&#8211;if your blog lives in the root of your site (ie. the blog is the site) and you have created such a file, do not delete it.</li>
</ul>
</div>
</li>
<li>
<div class="callout"><a href="https://codex.wordpress.org/Upgrading_WordPress_Extended#Step_8:_Upload_the_new_files">Upload the new files</a> from your computer&#8217;s hard drive to the appropriate WordPress folder on your site.</div>
</li>
<li>
<div class="callout"><a href="https://codex.wordpress.org/Upgrading_WordPress_Extended#Step_9:_Run_the_WordPress_upgrade_program">Run the WordPress upgrade program</a> and follow the instructions on the screen.</div>
</li>
<li>
<div class="callout"><span style="color: #ff0000"><strong><a style="color: #ff0000" href="https://codex.wordpress.org/Upgrading_WordPress_Extended#Step_10:_Update_Permalinks_and_.htaccess">Update Permalinks and .htaccess</a>. Update your Permalink Structure and merge the custom rules, if necessary, into your <a style="color: #ff0000" title="Glossary" href="https://codex.wordpress.org/Glossary#.htaccess"><tt>.htaccess</tt></a> file.</strong></span></div>
</li>
<li>
<div class="callout"><a href="https://codex.wordpress.org/Upgrading_WordPress_Extended#Step_11:_Install_updated_Plugins_and_Themes">Install updated Plugins and Themes</a>. Please review the <a class="new" title="Plugins/Plugin Compatibility/4.8 (page does not exist)" href="https://codex.wordpress.org/index.php?title=Plugins/Plugin_Compatibility/4.8&amp;action=edit&amp;redlink=1">list of Plugins that work in Version 4.8</a>. Check for <a class="new" title="Themes/Theme Compatibility/4.8 (page does not exist)" href="https://codex.wordpress.org/index.php?title=Themes/Theme_Compatibility/4.8&amp;action=edit&amp;redlink=1">Theme Compatibility with 4.8</a> and ask your Theme author for any new version.</div>
</li>
<li>
<div class="callout"><a href="https://codex.wordpress.org/Upgrading_WordPress_Extended#Step_12:_Reactivate_Plugins">Reactivate Plugins</a></div>
</li>
<li>
<div class="callout"><a href="https://codex.wordpress.org/Upgrading_WordPress_Extended#Step_13:_Add_security_key_definitions_to_the_wp-config.php_file">Add security key definitions to the <i>wp-config.php</i> file</a></div>
</li>
<li>
<div class="callout"><a href="https://codex.wordpress.org/Upgrading_WordPress_Extended#Step_14:_Review_what_has_changed_in_WordPress">Review what has changed in WordPress</a>.</div>
</li>
</ol>
<p style="text-align: justify"></div>
<div class="pvc_clear"></div>
<p id="pvc_stats_2975" class="pvc_stats total_only  " data-element-id="2975" style=""><i class="pvc-stats-icon medium" aria-hidden="true"><svg xmlns="http://www.w3.org/2000/svg" version="1.0" viewBox="0 0 502 315" preserveAspectRatio="xMidYMid meet"><g transform="translate(0,332) scale(0.1,-0.1)" fill="" stroke="none"><path d="M2394 3279 l-29 -30 -3 -207 c-2 -182 0 -211 15 -242 39 -76 157 -76 196 0 15 31 17 60 15 243 l-3 209 -33 29 c-26 23 -41 29 -80 29 -41 0 -53 -5 -78 -31z"/><path d="M3085 3251 c-45 -19 -58 -50 -96 -229 -47 -217 -49 -260 -13 -295 52 -53 146 -42 177 20 16 31 87 366 87 410 0 70 -86 122 -155 94z"/><path d="M1751 3234 c-13 -9 -29 -31 -37 -50 -12 -29 -10 -49 21 -204 19 -94 39 -189 45 -210 14 -50 54 -80 110 -80 34 0 48 6 76 34 21 21 34 44 34 59 0 14 -18 113 -40 219 -37 178 -43 195 -70 221 -36 32 -101 37 -139 11z"/><path d="M1163 3073 c-36 -7 -73 -59 -73 -102 0 -56 133 -378 171 -413 34 -32 83 -37 129 -13 70 36 67 87 -16 290 -86 209 -89 214 -129 231 -35 14 -42 15 -82 7z"/><path d="M3689 3066 c-15 -9 -33 -30 -42 -48 -48 -103 -147 -355 -147 -375 0 -98 131 -148 192 -74 13 15 57 108 97 206 80 196 84 226 37 273 -30 30 -99 39 -137 18z"/><path d="M583 2784 c-38 -19 -67 -74 -58 -113 9 -42 211 -354 242 -373 16 -10 45 -18 66 -18 51 0 107 52 107 100 0 39 -1 41 -124 234 -80 126 -108 162 -133 173 -41 17 -61 16 -100 -3z"/><path d="M4250 2784 c-14 -9 -74 -91 -133 -183 -95 -150 -107 -173 -107 -213 0 -55 33 -94 87 -104 67 -13 90 8 211 198 130 202 137 225 78 284 -27 27 -42 34 -72 34 -22 0 -50 -8 -64 -16z"/><path d="M2275 2693 c-553 -48 -1095 -270 -1585 -649 -135 -104 -459 -423 -483 -476 -23 -49 -22 -139 2 -186 73 -142 361 -457 571 -626 285 -228 642 -407 990 -497 242 -63 336 -73 660 -74 310 0 370 5 595 52 535 111 1045 392 1455 803 122 121 250 273 275 326 19 41 19 137 0 174 -41 79 -309 363 -465 492 -447 370 -946 591 -1479 653 -113 14 -422 18 -536 8z m395 -428 c171 -34 330 -124 456 -258 112 -119 167 -219 211 -378 27 -96 24 -300 -5 -401 -72 -255 -236 -447 -474 -557 -132 -62 -201 -76 -368 -76 -167 0 -236 14 -368 76 -213 98 -373 271 -451 485 -162 444 86 934 547 1084 153 49 292 57 452 25z m909 -232 c222 -123 408 -262 593 -441 76 -74 138 -139 138 -144 0 -16 -233 -242 -330 -319 -155 -123 -309 -223 -461 -299 l-81 -41 32 46 c18 26 49 83 70 128 143 306 141 649 -6 957 -25 52 -61 116 -79 142 l-34 47 45 -20 c26 -10 76 -36 113 -56z m-2057 25 c-40 -58 -105 -190 -130 -263 -110 -324 -59 -707 132 -981 25 -35 42 -64 37 -64 -19 0 -241 119 -326 174 -188 122 -406 314 -532 468 l-58 71 108 103 c185 178 428 349 672 473 66 33 121 60 123 61 2 0 -10 -19 -26 -42z"/><path d="M2375 1950 c-198 -44 -350 -190 -395 -379 -18 -76 -8 -221 19 -290 114 -284 457 -406 731 -260 98 52 188 154 231 260 27 69 37 214 19 290 -38 163 -166 304 -326 360 -67 23 -215 33 -279 19z"/></g></svg></i> <img decoding="async" width="16" height="16" alt="Loading" src="https://www.BeatificaBytes.be/wp-content/plugins/page-views-count/ajax-loader-2x.gif" border=0 /></p>
<div class="pvc_clear"></div>
]]></content:encoded>
					
					<wfw:commentRss>https://www.BeatificaBytes.be/wordpress-404-on-synology-after-restarting-nas/feed/</wfw:commentRss>
			<slash:comments>0</slash:comments>
		
		
			</item>
		<item>
		<title>WordPress really slow when accessed on LAN via its Domain Name</title>
		<link>https://www.BeatificaBytes.be/wordpress-really-slow-when-accessed-on-lan-via-its-domain-name/</link>
					<comments>https://www.BeatificaBytes.be/wordpress-really-slow-when-accessed-on-lan-via-its-domain-name/#respond</comments>
		
		<dc:creator><![CDATA[vletroye]]></dc:creator>
		<pubDate>Tue, 04 Oct 2016 19:20:33 +0000</pubDate>
				<category><![CDATA[Tips]]></category>
		<category><![CDATA[DNS]]></category>
		<category><![CDATA[Wordpress]]></category>
		<guid isPermaLink="false">/wordpress/?p=2723</guid>

					<description><![CDATA[Since a few weeks, WordPress is really slow when I access it from my LAN with it&#8217;s domain name http://beatificabytes.be The problem was with the name resolution [&#8230;]]]></description>
										<content:encoded><![CDATA[<p style="text-align: justify;">Since a few weeks, WordPress is really slow when I access it from my LAN with it&#8217;s domain name http://beatificabytes.be</p>
<p style="text-align: justify;">The problem was with the name resolution on my PC.</p>
<p style="text-align: justify;"><span class="collapseomatic " id="id69b572d69e5b3"  tabindex="0" title="Click to Read More"    >Click to Read More</span><span id='swap-id69b572d69e5b3'  class='colomat-swap' style='display:none;'>Click to Close</span><div id="target-id69b572d69e5b3" class="collapseomatic_content ">
<p style="text-align: justify;">My blog is hosted on my NAS, that I usually accessed via its netbios name or via its local IP address. But to make it easier for me, I also defined a domain &#8216;beatificabytes.be&#8217; on my NAS&#8217; DNS Server, with a A Records for www, pointing on the IP of the NAS.</p>
<p style="text-align: justify;">So, I can access my blog locally with either the domain name &#8216;beatificabytes.be&#8217; (if I am lazy) or with the fully qualified name &#8216;www.beatificabytes.be&#8217;.</p>
<p style="text-align: justify;">The problem is that the actual URL of my blog, defined in WordPress&#8217; settings, is &#8216;www.beatificabytes.be&#8217;. So, many pages of the blog are referencing scripts and images hosted on on that address &#8216;www.beatificabytes.be&#8217;.</p>
<p style="text-align: justify;">And, a few weeks ago, for some unclear reason, my PC started to fail to access my NAS via the url &#8216;www.beatificabytes.be&#8217;. I was only able to access it with its netbios name, its IP or the domain name &#8216;beatificabytes.be&#8217; (without www).</p>
<p style="text-align: justify;">The reason was an issue with the name resolution on my PC (I thought it was an issue with the &#8220;DNS&#8221; Server but it was actually due to Avast&#8217;s feature &#8216;Secure DNS&#8217;).</p>
<p style="text-align: justify;">Therefore, each page trying to load resources from www.beatificabytes.be was getting timeouts, making the rendering very slow (without any visual notification!)&#8230;</p>
<p style="text-align: justify;">I did fix the name resolution issue and I can now access again my blog &#8216;full speed&#8217;.</p>
<p style="text-align: justify;">Conclusion, open the Debug window of your browser to look at possible network or script errors <img src="https://s.w.org/images/core/emoji/15.1.0/72x72/1f609.png" alt="😉" class="wp-smiley" style="height: 1em; max-height: 1em;" /></p>
<p style="text-align: justify;"></div>
<div class="pvc_clear"></div>
<p id="pvc_stats_2723" class="pvc_stats total_only  " data-element-id="2723" style=""><i class="pvc-stats-icon medium" aria-hidden="true"><svg xmlns="http://www.w3.org/2000/svg" version="1.0" viewBox="0 0 502 315" preserveAspectRatio="xMidYMid meet"><g transform="translate(0,332) scale(0.1,-0.1)" fill="" stroke="none"><path d="M2394 3279 l-29 -30 -3 -207 c-2 -182 0 -211 15 -242 39 -76 157 -76 196 0 15 31 17 60 15 243 l-3 209 -33 29 c-26 23 -41 29 -80 29 -41 0 -53 -5 -78 -31z"/><path d="M3085 3251 c-45 -19 -58 -50 -96 -229 -47 -217 -49 -260 -13 -295 52 -53 146 -42 177 20 16 31 87 366 87 410 0 70 -86 122 -155 94z"/><path d="M1751 3234 c-13 -9 -29 -31 -37 -50 -12 -29 -10 -49 21 -204 19 -94 39 -189 45 -210 14 -50 54 -80 110 -80 34 0 48 6 76 34 21 21 34 44 34 59 0 14 -18 113 -40 219 -37 178 -43 195 -70 221 -36 32 -101 37 -139 11z"/><path d="M1163 3073 c-36 -7 -73 -59 -73 -102 0 -56 133 -378 171 -413 34 -32 83 -37 129 -13 70 36 67 87 -16 290 -86 209 -89 214 -129 231 -35 14 -42 15 -82 7z"/><path d="M3689 3066 c-15 -9 -33 -30 -42 -48 -48 -103 -147 -355 -147 -375 0 -98 131 -148 192 -74 13 15 57 108 97 206 80 196 84 226 37 273 -30 30 -99 39 -137 18z"/><path d="M583 2784 c-38 -19 -67 -74 -58 -113 9 -42 211 -354 242 -373 16 -10 45 -18 66 -18 51 0 107 52 107 100 0 39 -1 41 -124 234 -80 126 -108 162 -133 173 -41 17 -61 16 -100 -3z"/><path d="M4250 2784 c-14 -9 -74 -91 -133 -183 -95 -150 -107 -173 -107 -213 0 -55 33 -94 87 -104 67 -13 90 8 211 198 130 202 137 225 78 284 -27 27 -42 34 -72 34 -22 0 -50 -8 -64 -16z"/><path d="M2275 2693 c-553 -48 -1095 -270 -1585 -649 -135 -104 -459 -423 -483 -476 -23 -49 -22 -139 2 -186 73 -142 361 -457 571 -626 285 -228 642 -407 990 -497 242 -63 336 -73 660 -74 310 0 370 5 595 52 535 111 1045 392 1455 803 122 121 250 273 275 326 19 41 19 137 0 174 -41 79 -309 363 -465 492 -447 370 -946 591 -1479 653 -113 14 -422 18 -536 8z m395 -428 c171 -34 330 -124 456 -258 112 -119 167 -219 211 -378 27 -96 24 -300 -5 -401 -72 -255 -236 -447 -474 -557 -132 -62 -201 -76 -368 -76 -167 0 -236 14 -368 76 -213 98 -373 271 -451 485 -162 444 86 934 547 1084 153 49 292 57 452 25z m909 -232 c222 -123 408 -262 593 -441 76 -74 138 -139 138 -144 0 -16 -233 -242 -330 -319 -155 -123 -309 -223 -461 -299 l-81 -41 32 46 c18 26 49 83 70 128 143 306 141 649 -6 957 -25 52 -61 116 -79 142 l-34 47 45 -20 c26 -10 76 -36 113 -56z m-2057 25 c-40 -58 -105 -190 -130 -263 -110 -324 -59 -707 132 -981 25 -35 42 -64 37 -64 -19 0 -241 119 -326 174 -188 122 -406 314 -532 468 l-58 71 108 103 c185 178 428 349 672 473 66 33 121 60 123 61 2 0 -10 -19 -26 -42z"/><path d="M2375 1950 c-198 -44 -350 -190 -395 -379 -18 -76 -8 -221 19 -290 114 -284 457 -406 731 -260 98 52 188 154 231 260 27 69 37 214 19 290 -38 163 -166 304 -326 360 -67 23 -215 33 -279 19z"/></g></svg></i> <img decoding="async" width="16" height="16" alt="Loading" src="https://www.BeatificaBytes.be/wp-content/plugins/page-views-count/ajax-loader-2x.gif" border=0 /></p>
<div class="pvc_clear"></div>
]]></content:encoded>
					
					<wfw:commentRss>https://www.BeatificaBytes.be/wordpress-really-slow-when-accessed-on-lan-via-its-domain-name/feed/</wfw:commentRss>
			<slash:comments>0</slash:comments>
		
		
			</item>
	</channel>
</rss>
