• If you are still using CentOS 7.9, it's time to convert to Alma 8 with the free centos2alma tool by Plesk or Plesk Migrator. Please let us know your experiences or concerns in this thread:
    CentOS2Alma discussion
  • Please beaware of a breaking change in the REST API on the next Plesk release (18.0.62).
    Starting from Plesk Obsidian 18.0.62, requests to REST API containing the Content-Type header with a media-type directive other than “application/json” will result in the HTTP “415 Unsupported Media Type” client error response code. Read more here

Resolved File permission cron job

Matzn

New Pleskian
Server operating system version
Ubuntu 18.04.6 LTS
Plesk version and microupdate number
Plesk Obsidian 18.0.43
Hi.

I create a cron job to add some data and files to my CMS with user www-data, because user psacIn was not available. Folder will create, but not a file.

What i can do? Other user, set some permissions or some repair?

By the way...where do the cron logs find?
 
Hi.

I create a cron job to add some data and files to my CMS with user www-data, because user psacIn was not available. Folder will create, but not a file.

What i can do? Other user, set some permissions or some repair?

By the way...where do the cron logs find?
I do plesk repair. Now will not build a folder or files by user www-data.
 
Ok, a little more information:

I want to run a php-script-file by cronjob, that add a folder and a file to a domain structure. But if use root as cron-user will build folders and files as root owner. That do not work with my CMS. I've tested www-data user, but it will not create folder and files.

You already notice that I don't have much idea. What i can do?
 
I'm talking by myself. The solution is to add a cronjob by domain. Unfortunately, shows domain-cronjobs options for each domain only in dynamic view.

1652524698536.jpg
 
I'm talking by myself. The solution is to add a cronjob by domain. Unfortunately, shows domain-cronjobs options for each domain only in dynamic view.

There is a hidden menu which you can open by clicking the icon I've highlighted below. The menu also contains a link to setup cronjobs (and much more).
Schermafbeelding 2022-05-17 om 22.32.16.png
 
Back
Top