search

Home  >  Q&A  >  body text

php - The laravel page can be entered normally without reporting an error, but the display is blank.

When I change the storage directory to 777, the page can be displayed normally, or the log under logs can be accessed normally after deleting it. However, I have set the storage directory to 777 a long time ago, and every time I set it like this, it will take a while. The time cannot be displayed normally again

给我你的怀抱给我你的怀抱2782 days ago689

reply all(3)I'll reply

  • PHP中文网

    PHP中文网2017-05-16 13:01:25

    Possible reasons
    I have encountered a situation where the owner is between apache and root users. There will be such a situation. The user apache specified by php-fpm uses the root user when granting permissions. Especially when using the daily mode of laravel logs. The new file does not have 777 permissions.

    Check
    Check whether the user specified by php-fpm has all permissions for storage.

    Solution
    Change the user group where the folder is located.

    reply
    0
  • 怪我咯

    怪我咯2017-05-16 13:01:25

    Enable debugging of the .env file, if not, check the server log

    reply
    0
  • 淡淡烟草味

    淡淡烟草味2017-05-16 13:01:25

    chown to set up user nginx or Apache
    chmod and add -R

    reply
    0
  • Cancelreply