• Dear Pleskians! The Plesk Forum will be undergoing scheduled maintenance on Monday, 7th of July, at 9:00 AM UTC. The expected maintenance window is 2 hours.
    Thank you in advance for your patience and understanding on the matter.

Apache, PHP and permissions

I

itschemnitz

Guest
Hello,

trying my best for writing in english once again :)
I'm using Plesk 8 with SuSE 10 on a root server from STRATO. I've created some clients, domains and so on. All files in the domain directories have the permissions 755 like the examples from Plesk and I've chowned them to username:psacln like Plesk chowns them when files are uploaded through ftp.
The php-scripts I'm using work fine when they have to read stuff from a file (I've scripted a file-based forum). But on creation of new files, the php script crashes with a permission failure. When I make chmod 777 on all files and directories, it works - what a wonder, huh :)
Apache runs under wwwrun:www. Is this a plesk standard? I cannot find any group "www" in Yast!?
Has anyone a solution for the permission problem? Should I use suphp? And why are the example files (in new created vhosts) chowned with root:psacln? I think there shouldn't be any security problem, because of the base_dir_restriction...I'm confused...

Many questions, but please take time to answer as most as possible.

Thanks, Nico
 
Ok, after making a chown wwwrun:www on all files, creation of files is possible
 
Back
Top