cPanel: Warning: fopen(/tmp/horde_.log): failed to open

Sometimes you may get this error in cPanel,

Warning: fopen(/tmp/horde_32001.log): failed to open stream: Permission denied in /usr/local/cpanel/3rdparty/lib/php/Log/file.php on line 202
Warning: Cannot modify header information – headers already sent by (output started at /usr/local/cpanel/3rdparty/lib/php/Log/file.php:202) in /usr/local/cpanel/base/horde/login.php on line 96

This may be due to one of the following reasons.

1. /tmp has wrong permissions

Ensure that /tmp has enough permissions. You can use the below command to set correct permissions for /tmp.

[root@HostDire ~]# chmod 1777 /tmp

sticky bit is necessary to deny users permission to arbitrarily delete or rename the files of others.

Verify the permissions.

[root@HostDire ~]# ls -ld /tmp/
drwxrwxrwt. 30 root root 4096 Oct 2 17:31 /tmp/
[root@HostDire ~]#

2. The /tmp/horde_32001.log file has incorrect permissions or the group or owner user level is incorrectly assigned.

Do the following:

[root@HostDire ~]# chown cpanel:cpanel /tmp/horde_32001.log
[root@HostDire ~]# chmod 0644 /tmp/horde_32001.log

Hope this helps.

Leave a Reply

Your email address will not be published. Required fields are marked *

Related Posts