Not sure if this a bug or a error, but every time I upload php files for a site I come across error 500. I have to fix file permissions every time I upload. Has anyone came across this?
I assume you mean using the File manager in Webmin tools?
I tested this on my Centos server and my Ubuntu server and both worked fine. The file uploaded and had 0644 permissions.
That probably means you’re uploading files as root, which would be expected to require permissions to be fixed.
If you upload via ssh or ftp as the domain owner, the permissions should be correct (unless you’re using mod_php, which you should not do). File Manager will also override the user and set ownership correctly for domain homes (so even if you’re root, it will assume that if you’re uploading files to a Virtualmin home, you want it to be for that domain).
Tested the same procedure on one of my servers. Logged into Webmin as root and then uploaded a zip into 2 different accounts using the File manager under Webmin. Both showed the owner as the home owner. I then unzipped and the resulting files also showed the proper owners.
Just to be sure I did the same process using the File manager under Virtualmin. Same result.
I then tried uploading the file into the root directory and the ownership then displays root.
If I upload outside of the home directory it takes root as the owner. Inside a home directory it takes the home owner as the owner.
Just grasping at straws
Have you tried changing that to No, saving and then testing and then switching it back?
and/or switch the theme and try without using Authentic Theme? I believe Authentic theme is the only one that allows access to that option, though I am not sure.