Phperror_log indicates that the file does not exist.

Source: Internet
Author: User
[01-Oct-201513: 41: 29PRC] PHPWarning: error_log(tmplogsweixinasss.txt): failedtoopenstream: handle the above php-fpm error log...

[01-Oct-2015 13:41:29 PRC] PHP Warning: error_log (/tmp/logs/weixin/asss.txt): failed to open stream: no such file or directory in/usr/share/nginx/html/test2.php on line 3

The above php-fpm Error Log clearly shows this file and directory. Why does it prompt No such file or directory, (/usr/share/nginx/html/This directory can be written in)

Reply content:

[01-Oct-2015 13:41:29 PRC] PHP Warning: error_log (/tmp/logs/weixin/asss.txt): failed to open stream: no such file or directory in/usr/share/nginx/html/test2.php on line 3

The above php-fpm Error Log clearly shows this file and directory. Why does it prompt No such file or directory, (/usr/share/nginx/html/This directory can be written in)

Who gives negative ratings? I'm sorry. Someone gives negative ratings every day. I want to complain !!

What do you think is an idiot problem that can be solved by a 777 change.

Today I discovered the PrivateTmp issue in the systemd service management.
It's a Japanese dog.

The prompt is that this path does not exist:

/tmp/logs/weixin/asss.txt

Check the file permissions. If the file does exist, it may not have the read and write permissions.

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.