LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Software (https://www.linuxquestions.org/questions/linux-software-2/)
-   -   Can't creat file in /var/log (https://www.linuxquestions.org/questions/linux-software-2/cant-creat-file-in-var-log-219147/)

Joe_Zhu 08-18-2004 04:54 AM

Can't creat file in /var/log
 
Hi i am using horde. after i installed all the things, i found horde can't create the log file in /var/log/. the error message shown below

Warning: touch(): Unable to create file /var/log/horde.log because Permission denied in /usr/share/pear/Log/file.php on line 119

Warning: chmod(): No such file or directory in /usr/share/pear/Log/file.php on line 120

i would like to know which permission it talking about ? the permission of pear log module or horde.log file ??

pls. help!!
Thanks!!
Joseph

rjlee 08-18-2004 05:12 AM

The permission being denied is that of the /var/log directory.

The best way to solve this problem depends on the setup (I don't know anything about horde), but creating a file (as root) called /var/log/horde.log, and then chown-ing it to the appropriate user should fix it.

Code:

su
touch /var/log/horde.log
chown hordeuser.hordegroup /var/log/horde.log

Where hordeuser is the user trying to create the file, and hordegroup is the group hordeuser belongs to.


All times are GMT -5. The time now is 11:38 AM.