Mongoru asked me where my apache log and phperrorlog went in-Linux Enterprise Application-Linux server application information. The following is a detailed description. Ubuntu has changed the conf file layout of apache, so some configurations are easy to be missed.
By default, only the apache error file is defined in apache. conf:
ErrorLog/var/log/apache2/error. log
NOTE: If access. log is not specified, it is transferred to the sites-enabled/000-default file:
However, when we disable the 000-default file and write the configuration file, it is easy to forget the definition of the access. log File, because this item is available by default in other systems.
The errorlog of php is even more strange. As I used to put the errorlog of php under the/var/log directory, I soon discovered this problem: when I delete the php errorlog (let the system automatically generate a new file), I will not generate this file automatically, however, it is found that the error information in the errorlog of php ran to the apache error. log.
If the specified php errorlog file cannot be written (/var/log directory permission requirements are high), apache will write the php errorlog information to the apache error. log file. Create an empty php errorlog file and change the attribute to 777. The problem is solved. Changing the attribute to 755 does not work. I don't know why so many operations require the x permission.
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.