Can't create or delete files and folders with PHP

HappyCoder

Member
Apr 27, 2012
15
0
51
cPanel Access Level
Root Administrator
Hi,

I've got access to cPanel. All it all just works perfectly, but there is one problem that I can't resolve.
My problem is that I can't create files or folders with php scripting. Nor can't I delete files or folders. I'm using unlink function in php.
Right now I am trying to delete a file using php scripting (the file type is xml).
I have access to other web hosts (they do not run cPanel) and my code works fine.
When I execute the code on the cPanel, I get no error messages or other indications of the file was not deleted.
The file to be deleted has rights 0644. It has the same rights as the file has on the other web hosting services, where it works.

Can anyone tell me what is happening and how I get it resolved?

Keep me happy,
HappyCoder :)
 

cPanelMichael

Administrator
Staff member
Apr 11, 2011
47,908
2,218
463
Hello :)

Please consult with your web hosting provider to have them determine which specific PHP function is being blocked. It's likely the script requires file ownership changes if the PHP handler is set to "DSO".

Thank you