vtalbot / markdown

Markdown compiler for Laravel 4 and 5
100 stars 24 forks source link

file_put_content - failed to open stream: Permission denied #16

Closed leijianbin closed 9 years ago

leijianbin commented 9 years ago

I have this permission denied issue.

It works in my local development env. But after I push to the server, it doesn't work.

When I access this: http://amazonranks.com/instruction <?php echo Markdown::make('instruction'); ?> throw a exception: Method Vtalbot\Markdown\Markdown::__toString() must not throw an exception

When I access this directly: http://amazonranks.com/instruction.md It shows this error: file_put_contents(/home/deploy/public_html/search_rank/app/storage/markdown/2e3fbd67314527bc6fd4facfd165d98b): failed to open stream: Permission denied

Any suggestion? Thanks

vtalbot commented 9 years ago

Hi, can you check the permissions of the app/storage/markdown directory allow read/write access to your apache/nginx user?

leijianbin commented 9 years ago

Thank you!. I change the permissions, and it works ...

On Sun, Aug 16, 2015 at 5:47 PM, Vincent Talbot notifications@github.com wrote:

Hi, can you check the permissions of the app/storage/markdown directory allow read/write access to your apache/nginx user?

— Reply to this email directly or view it on GitHub https://github.com/vtalbot/markdown/issues/16#issuecomment-131645863.

Name: Jianbin Ray

Email: leijianljb@gmail.com

Mobile: 415-518-7188