Buying Amazon Lightsail/Ubuntu Permission Error Perhaps?

Discussion in 'Programming' started by medialab, Dec 14, 2023.

  1. #1
    We host our site on an Amazon Lightsail instance, it has an image upload feature that works fantastic. Users are able to upload images to the server just fine. When we use the exact same script to "edit" the images (rotate, crop, etc) our error logs are showing permission issues and the images aren't saving.

    Willing to pay for someone to diagnose and walk me through the permission repair (if that's the issue).

    I can provide the code to a developer for review for the image upload and the error messages. I don't imagine this would take longer than 30 minutes to repair. I am great with PHP but we are new to Light Sail and there is little support - just want essentially help from someone more skilled to fix it via message.

    Part of script attached via zip and error code below.

    Got error 'PHP message: PHP Notice: Unknown: file created in the system's temporary directory in Unknown on line 0

    PHP message: PHP Warning: mkdir(): Permission denied in /opt/bitnami/apache/htdocs/includes/slim.php on line 142

    file_put_contents(tmp/657a8d904271e_image_name_pkojd5dhuo46a7zle012.jpg): Failed to open stream: No such file or directory in /opt/bitnami/apache/htdocs/includes/slim.php on line 233'
     

    Attached Files:

    • Code.zip
      File size:
      56.3 KB
      Views:
      106
    medialab, Dec 14, 2023 IP
    vodafone likes this.