Will the SuiteCRM create php_errors.log file if we delete the existing one?
You’re talking about the standard PHP error log, right?
Usually, on most Linux servers, you’ve got a logrotate daemon to handle archiving and deleting.
If you manually delete the log file, the server (or PHP process) will create a new file for you.
Depending on your server setup (containers / std out / log server / etc.) that could be different.
Yeah, I am talking about the php_errors log file which we find at root folder of SuiteCRM.
I never saw that the file was archived and started logging in a new one.
Do we need to set up the logrotate daemon for it in the linux or from the suitecrm admin panel?
Thank you! ![]()
Hmm .. not sure whether we’re talking about the same file.
My VHost file looks usually similar to:
<VirtualHost *:80>
ServerName suitecrm89beta.demo
DocumentRoot /var/www/suitecrm89beta/public
<Directory /var/www/suitecrm89beta/public>
Options Indexes FollowSymLinks
AllowOverride All
Order Allow,Deny
Allow from All
Require all granted
</Directory>
ErrorLog /var/log/apache2/suitecrm89beta-error.log
CustomLog /var/log/apache2/suitecrm89beta-access.log combined
</VirtualHost>
Therefore, my php_error.log is called suitecrm89beta-error.log in this case. And it’s generated in my /var/log/apache2 folder.
If you have it in your SuiteCRM root, won’t the upgrade complain about that file?
On this system, I’ve installed Ubuntu Server, LAMP and no admin GUI.
The logrotate works out of the box - didn’t configure anything there.
I think we are talking about different files.
Yes, I know this one. It automatically generates and also rotates the log files.
I do not know, sorry. But I could see php errors in it and also it is easy to access via WinSCP too. For logs files at /var/log/ you need to view them in terminal.
Maybe it is part of older suitecrm 7 version, I am not sure about it.
Thank you for the quick help!
Yes, exactly. I usually work on Linux - so I got used to the terminal for logs.
But I’m using Filezilla sometimes for downloading a log file and do some analysis or similar on a GUI.
It’s fairly similar - only that log files and folders are more tidy now in the more recent 8 versions.
I assume your php.ini has some settings for the log file.
If you add a php file to your SuiteCRM (7) root folder:
<?php
phpinfo();
?>
you’ll find this:
If PHP process errors are logged to the SuiteCRM root folder, it’s easier to access via WinSCP etc. for users.
But I’d be careful about logrotate there, since it’s not really a logging folder.
Additionally: People with access to your CRM could guess it’s URL and check your error messages in their browsers, if not restricted by the server.
Back to your initial question:
It should still be fine to delete it ![]()

