There is a script that works with the database. Immediately after the launch, it writes to the file “Update in progress”, and before the release “Updated [date]”. If run via cron, then everything works, but writing to the file does not occur. Why?

    1 answer 1

    See file permissions and file owner. Through kroner and from under the apache different users most likely. Either change the permissions to 0777, or change the owner of the file.

    • Thank! But it was not the only problem - it turns out that if called via cron, the file is created not where it should be, but in the folder where the public_html folder is Andrew
    • one
      Use the chdir function to navigate to the correct directory so that a file or project root is created there, so that file saving paths are created from it - Rochfort