{"id":6,"date":"2015-12-24T14:38:46","date_gmt":"2015-12-24T19:38:46","guid":{"rendered":"http:\/\/216.162.77.24\/wordpress\/?p=6"},"modified":"2024-03-28T10:10:23","modified_gmt":"2024-03-28T14:10:23","slug":"wordpress-does-not-load-outside-my-local-network","status":"publish","type":"post","link":"https:\/\/easy-admin.ca\/index.php\/2015\/12\/24\/wordpress-does-not-load-outside-my-local-network\/","title":{"rendered":"WordPress does not load outside my local network"},"content":{"rendered":"\n<p>My WordPress website will not load outside my local network!<\/p>\n\n\n\n<figure class=\"wp-block-image size-full\"><img loading=\"lazy\" decoding=\"async\" width=\"859\" height=\"294\" src=\"https:\/\/easy-admin.ca\/wp-content\/uploads\/2024\/03\/380dl-g6-hp-server.jpg\" alt=\"\" class=\"wp-image-3444\" srcset=\"https:\/\/easy-admin.ca\/wp-content\/uploads\/2024\/03\/380dl-g6-hp-server.jpg 859w, https:\/\/easy-admin.ca\/wp-content\/uploads\/2024\/03\/380dl-g6-hp-server-300x103.jpg 300w, https:\/\/easy-admin.ca\/wp-content\/uploads\/2024\/03\/380dl-g6-hp-server-768x263.jpg 768w\" sizes=\"auto, (max-width: 859px) 100vw, 859px\" \/><\/figure>\n\n\n\n<p><strong>Server Specifications (HP PROLIANT DL380-G6 DUAL XEON)<\/strong><br>CentOS 7<br>MySQL<br>PHP<br>Apache<br>WordPress<\/p>\n\n\n\n<p>All latest version but&#8230;.<br>* You should stick to MySQL version 5.5.44 for now! (25-12-2015)<\/p>\n\n\n\n<p><strong>Solutions<\/strong><\/p>\n\n\n\n<p>1. Check your<strong> wp-config.php<\/strong> file that reside in the root of your WordPress directory<\/p>\n\n\n\n<p>You have to look for this code section<\/p>\n\n\n\n<p>\/**#@+<br>* Authentication Unique Keys and Salts.<br>*<br>* Change these to different unique phrases!<br>* You can generate these using the {@link https:\/\/api.wordpress.org\/secret-key\/1.1\/salt\/ WordPress.org secret-key service}<br>* You can change these at any point in time to invalidate all existing cookies. This will force all users to have to log in again.<br>*<br>* @since 2.6.0<br>*\/<br>define(&#8216;AUTH_KEY&#8217;,&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &#8216;@z]6-zHz-}c:i?+Dq14vez%2be~V93_Ig{X9c-|O.t9Ab?^+k;-m)bZ=qNvZ1,x$&#8217;);<br>define(&#8216;SECURE_AUTH_KEY&#8217;,&nbsp; &#8216; &lt;;Sq]#!~a0xC|kqzVRuPG@DIJRnk:1FT(1qB[1v[bi\/h &gt;t@^\/{ Lav24)BEO&amp;[&#8216;);<br>define(&#8216;LOGGED_IN_KEY&#8217;,&nbsp;&nbsp;&nbsp; &#8216;A+;~!`7,W ,wE&gt;=Kn4.BzCbdx34O_JMkOI)b2%Ez$RzT)O:2[b|+19mrh)IAWOGo&#8217;);<br>define(&#8216;NONCE_KEY&#8217;,&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &#8216;s[L2u1&amp;rpt8C)]bZqf7]`zof&gt;fAswRg0y|qZZ)vcDX*\/j-Ez[|PW}:eO-8AlHJ8k&#8217;);<br>define(&#8216;AUTH_SALT&#8217;,&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &#8216;KW8wra;81,&gt;O:k4Z8(2+(YZEDX&gt;K\/vF@KdYeS0a*Mom)*&lt;g6e+1lf -n@_w&gt;bFyn&#8217;);<br>define(&#8216;SECURE_AUTH_SALT&#8217;, &#8216;e5if.r^`P?KK;nkv&lt;h[[FbH^w&amp;5nc]&gt;Dy(Dx#z3sYg(-9![{spcQMrVX8IlK:Xwx&#8217;);<br>define(&#8216;LOGGED_IN_SALT&#8217;,&nbsp;&nbsp; &#8216;F:|V^sHC+qO`=cselr|}&amp;K&lt;lS6:Tnd\/A}&amp;r8g&lt;7?qj!AL1-8Q\/pd(4;P3sKM=Q\/Q&#8217;);<br>define(&#8216;NONCE_SALT&#8217;,&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &#8216;?-C_Ny0&gt;E5Z;9Gj$&amp;nJ{mr&lt;8xkA{%FxyL~-K-f7&gt;^WK$83C&lt;hu;-J3-mt+J7&gt;N{d&#8217;);<\/p>\n\n\n\n<p>*This have to be added with your credential<\/p>\n\n\n\n<p><strong>define(&#8216;WP_HOME&#8217;,&#8217;http:\/\/domain.xxx\/wordpress&#8217;);<\/strong><br><strong>define(&#8216;WP_SITEURL&#8217;,&#8217;http:\/\/domain.xxx\/wordpress&#8217;);<\/strong><br>\/**#@-*\/<\/p>\n\n\n\n<p>2. From my personal experience and many try and fail I manually added this<\/p>\n\n\n\n<p><strong>define(&#8216;WP_SITEURL&#8217;,&#8217;http:\/\/xxx.xxx.xxx.xxx\/wordpress-directory&#8217;);<\/strong><br><strong> define(&#8216;WP_HOME&#8217;,&#8217;http:\/\/xxx.xxx.xxx.xxx\/wordpress-directory&#8217;);<\/strong><\/p>\n\n\n\n<ul class=\"wp-block-list\">\n<li>Replace <strong>http:\/\/xxx.xxx.xxx.xxx\/<\/strong> with your <em><strong>IP<\/strong><\/em> or <em><strong>Domain name<\/strong><\/em><\/li>\n\n\n\n<li>Also make sure that your ISP is not blocking Port:80<\/li>\n\n\n\n<li>Also notice that when your IP will change you will have to change it too!<\/li>\n<\/ul>\n\n\n\n<p>Restart Apache<\/p>\n\n\n\n<p><strong>systemctl restart httpd.service<\/strong><\/p>\n\n\n\n<p>3. Make sure that the directory is Chown by Apache if you are using Webmin<\/p>\n\n\n\n<p>&gt;others&gt;file manager&gt;<\/p>\n\n\n\n<p>go to &#8230;<\/p>\n\n\n\n<p>\/var\/www\/html\/ + the name of your installed wordpress directory<\/p>\n\n\n\n<p>Ex:<br>\/var\/www\/html\/wordpress\/<\/p>\n\n\n\n<p>And now select the (wordpress)<\/p>\n\n\n\n<p>Go to tools\/Chown Selected\/<\/p>\n\n\n\n<p>Chown your WordPress directory name to : apache:apache<\/p>\n\n\n\n<p>* This will fix the plugin update problem and also the image upload to your posts or pages of wordpress<\/p>\n\n\n\n<p>Et voil\u00e0!<\/p>\n\n\n\n<p><strong>Other details generated by CentOS 7 (SELinux)<\/strong><\/p>\n\n\n\n<pre class=\"wp-block-preformatted\">*****  Plugin httpd_write_content (92.2 confidence) suggests   ***************\n\nIf you want to allow httpd to have write access on the wordpress directory\nThen you need to change the label on '\/var\/www\/html\/wordpress'\nDo\n# semanage fcontext -a -t httpd_sys_rw_content_t '\/var\/www\/html\/wordpress'\n# restorecon -v '\/var\/www\/html\/wordpress'\n\n*****  Plugin catchall_boolean (7.83 confidence) suggests   ******************\n\nIf you want to allow httpd to unified\nThen you must tell SELinux about this by enabling the 'httpd_unified' boolean.\nYou can read 'None' man page for more details.\nDo\nsetsebool -P httpd_unified 1\n\n*****  Plugin catchall (1.41 confidence) suggests   **************************\n\nIf you believe that httpd should be allowed write access on the wordpress directory by default.\nThen you should report this as a bug.\nYou can generate a local policy module to allow this access.\nDo\nallow this access for now by executing:\n# grep httpd \/var\/log\/audit\/audit.log | audit2allow -M mypol\n# semodule -i mypol.pp<\/pre>\n","protected":false},"excerpt":{"rendered":"<p>My WordPress website will not load outside my local network! Server Specifications (HP PROLIANT DL380-G6 DUAL XEON)CentOS 7MySQLPHPApacheWordPress All latest version but&#8230;.* You should stick to MySQL version 5.5.44 for now! (25-12-2015) Solutions 1. Check your wp-config.php file that reside in the root of your WordPress directory You have to look for this code section &hellip; <a href=\"https:\/\/easy-admin.ca\/index.php\/2015\/12\/24\/wordpress-does-not-load-outside-my-local-network\/\" class=\"more-link\">Continue reading <span class=\"screen-reader-text\">WordPress does not load outside my local network<\/span><\/a><\/p>\n","protected":false},"author":2,"featured_media":3442,"comment_status":"closed","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[1],"tags":[],"class_list":["post-6","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-general"],"_links":{"self":[{"href":"https:\/\/easy-admin.ca\/index.php\/wp-json\/wp\/v2\/posts\/6","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/easy-admin.ca\/index.php\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/easy-admin.ca\/index.php\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/easy-admin.ca\/index.php\/wp-json\/wp\/v2\/users\/2"}],"replies":[{"embeddable":true,"href":"https:\/\/easy-admin.ca\/index.php\/wp-json\/wp\/v2\/comments?post=6"}],"version-history":[{"count":0,"href":"https:\/\/easy-admin.ca\/index.php\/wp-json\/wp\/v2\/posts\/6\/revisions"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/easy-admin.ca\/index.php\/wp-json\/wp\/v2\/media\/3442"}],"wp:attachment":[{"href":"https:\/\/easy-admin.ca\/index.php\/wp-json\/wp\/v2\/media?parent=6"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/easy-admin.ca\/index.php\/wp-json\/wp\/v2\/categories?post=6"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/easy-admin.ca\/index.php\/wp-json\/wp\/v2\/tags?post=6"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}