Hello. I have a website running fine for months. Then I created a second virtual server and copied the same code to this new server. I’ve setup the whole server to work with the new domain and ssl certificates are also working. However php can not write any file to any directory. I have codes to generate profile pictures for example, or csv files and none of them are being generated.
I’ve checked its not a folder permission problem, all directories have 755 permissions. I’ve also checked apache logs and there are no errors. What should I do to diagnose the issue?
It looks like a owner problem,
go to webmin/other/File Manager
Navigate to the folder of your website and check the ownership column.
is it root:root or is youraccount:youraccount?