• Halloween is coming! To celebrate the occasion, we dusted off a couple of old skins, and even created a brand new one (Pixel).
    To get into the festive spirit, install the Skins extension.
  • The new Python extension is now available. It allows customers to deploy and manage WSGI-based Python applications on their websites directly from Plesk.
  • The Plesk Mobile apps for iOS and Android and the Plesk Mobile Center extension have been deprecated, and are no longer available for new installations. In Plesk Obsidian 18.0.84, the Plesk Mobile Center extension will be removed from servers during the upgrade, and the Plesk Mobile apps will lose their server management features.
  • The Social Login extension has been deprecated and will be removed in Plesk Obsidian 18.0.84. After that, it will no longer be possible to log in to Plesk with a Google, Facebook, GitHub account, or with a passkey. Plesk usernames and passwords, as well as logging in with a WebPros Account, are not affected.

File permissions with Plesk and PHP

T

thedust2010

Guest
I am having horrible problems with Plesk and file permissions. It seems way too restrictive. We have had to resort to using PHP's FTP commands in order to create folders on a website, but even after we create a folder, once we try to place an image in that folder, we are unable to do so. We try to chmod the newly created directory to 777, but are only able to do so when we log in to FTP and not in our PHP code. Has anyone else run into these problems and have a solution for how to ease up the file restrictions? This seems like overkill.
 
PHP is running with apache permissions and it's normal that you can not chown or create files inside a psacln folder. This is a good thing, because most servers are hacked using PHP. If it would run with other permissions, the hacker will be able to trash websites as well.
 
That is all fine and well, but we are building an application that requires us to upload files and place them in folders. Regardless of the security threat, this needs to happen. Any idea how to accomplish this?
 
login ssh and chown apache:apache the folders in which php needs to edit files.
If this is your server then I would suggest at the least installing mod_security to help protect some of the content.
 
Originally posted by hardweb
PHP is running with apache permissions and it's normal that you can not chown or create files inside a psacln folder.

Using a php uploadscript like used in Mambo/Joomla the file is owned by apache, but how is that using the File Manager through the Plesk admin interface, the file gets the client ownership?

I want Joomla to have this behaviour too, but no matter what the files get owned by apache.

p.s. I tried to install suPHP, but this doesn't work on FreeBSD.
 
Back
Top