How can I stop all files being read only to PHP? [migrated]

I’m setting up a new Centos 7 server to run some legacy sites on PHP 5.6.40 through PHP-FPM with Nginx.

However, I’m running into a problem that all files are appearing to be read only.

PHP is running under the nginx user, the site directory is owned by nginx, and I’ve tried verious file permissions through chown, including "777".

I created a simple program to illustrate:

<?php $  fileList = glob('*');  //Loop through the array that glob returned. foreach($  fileList as $  filename){    //Simply print them out onto the screen.    echo $  filename;    if (is_writable($  filename))       echo ' - Yes!';    else       echo ' - No.';    echo '<br>'; } 

This will output the files in the site directory, with "No" next to each filename.

Any tips on what might be causing this, or how I might be able to debug would be greatly appreciated.

Calling javascript in javascript works for some but not all scripts [migrated]

I have the following code in a script.js file that I call in my html file:

function loadScript(url) {         var head = document.getElementsByTagName('head')[0];     var script = document.createElement('script');     script.type = 'text/javascript';     script.src = url;     script.async = false;     head.appendChild(script); }  loadScript('') loadScript('') loadScript('')  hljs.initHighlightingOnLoad(); 

I use this code because I want to call only one .js file in my html instead of multiple .js files.

The first two scripts that I load to call MathJax work fine. The third script to call highlight.js however does not run.

When I paste all the code from the file ‘highlight.min.js’ into the my script.js file, the javascript does run normally when I open the html.

I don’t understand why loading the ‘highlight.min.js’ file with the loadScript() does not work, or what I can do to get it to work. Any help is appreciated.

Can switching from .com TLD to non .com TLD affect emails even if MX records migrated correctly

I have a high-level question about a customer that switched from a .com TLD to a .fun TLD. They didn’t switch hosting, only their TLD. They’re now having issues with their emails, personal and campaign based, being blocked.

Before I dig in to the technical stuff, I wanted to know if anyone had a similar issue. Before I dig in to MX records and such, I didn’t know if there were known TLD issues with ones like .fun, etc. Sorry if this is a vague question. And I promise I’ve been googling and asking first!