5/5 - (2 votes)
If you need to find the errors that the php script generates when running, you can use the php log file.
It is not enabled by default, and for its activation, it is necessary to register in php.ini:
error_log = /var/log/php-scripts.log
Do not forget to create the php-scripts.log file and give the apache correct privileges for it. After that, restart apache.
Are there problems with administering linux servers? Contact us: [email protected]