I simply switched to a different server host (VPS) and that i moved my files over. I observed that nothing was working everything was tossing a 500 internal error.

Then i went this via command line also it labored fine

 for i in `cat /etc/trueuserdomains | awk '{print $2}'`; do chown $i.$i /home/$i/public_html -R; chown $i.nobody /home/$i/public_html; done

I am not necessarily sure what it really does, but It changes who owns the script. Anyways I have observed in the last week anytime I upload a brand new script that wasn't already around the server it provides me with exactly the same 500 error and I must run that script again. Can there be in some way I'm able to stop this from happening?

for i in `cat /etc/trueuserdomains | awk '{print $2}'`; 
do 
  chown $i.$i /home/$i/public_html -R; 
  chown $i.nobody /home/$i/public_html; 
done

Summary of what's going on within British.

cat /etc/trueuserdomains | awk '{print $2}'

This prints out a listing of customers comprised of each word found within the second column from the file /etc/trueuserdomains (there's likely just one line within this file and also the second word which contins the consumer the files ought to be possessed by)

If you wish to see precisely what that list will be run the next in the command line.

cat /etc/trueuserdomains | awk '{print $2}'

Then your for i part executes the 2 chown instructions changing the $i using the word collected in the cat /etc/trueuserdomains awk '' command.

The very first chown command changes the dog owner and number of every file and directory to become what can be found in the kitty /etc/trueuserdomains awk '' command.

The 2nd chown command then sets group around the public_html to become nobody, an organization that likely doesn't have user account designated into it around the host machine.

To ensure that sorts the permissions inside your web server files but, as if you say, does less than describe the real cause of the problem.

To repair the actual problem tell us the next.

How can you upload files towards the server? What's the title from the tool? Whenever you upload the files are you able to provide a sample from the owner and group permissions they have just before running the above mentioned command?