Koozali.org: home of the SME Server
Obsolete Releases => SME 7.x Contribs => Topic started by: tropicalview on July 11, 2007, 03:13:27 PM
-
Dear all.
A php aplication should be able to read this file:
/var/log/cups/page_log
how can i make that available for PHP?
or can i just make a shortcut (by LN) to access it?
-
Dear all,
I tried this:
[root@studenten html]# cd printlog
[root@studenten printlog]# ln .. /var/log/cups/page_log
ln: `..': hard link not allowed for directory
[root@studenten printlog]#
So in the web dir i made a folder called printlog
and i would like to make a hard link of the log file there.
Can anybody help?
Kind Regards
Hendrik
-
The Problem ist, that the PHPApplication has not the sufficient rights to read the page_log
Change the Permissions from 600 to 644 or something that reflect your need
You need to make a custom template of
/etc/e-smith/templates/etc/cups/cupsd.conf/20LogFilePerm
Maybe this helps
-
The Problem ist, that the PHPApplication has not the sufficient rights to read the page_log
Change the Permissions from 600 to 644 or something that reflect your need
You need to make a custom template of
/etc/e-smith/templates/etc/cups/cupsd.conf/20LogFilePerm
Maybe this helps
Hi
I do have the same problem to use phpprintanalyzer requiring to read /var/log/cups/page_log
changing /etc/e-smith/templates/etc/cups/cupsd.conf/20LogFilePerm does not seem to help
thanks for the help
Philippe
-
Hi
I do have the same problem to use phpprintanalyzer requiring to read /var/log/cups/page_log
changing /etc/e-smith/templates/etc/cups/cupsd.conf/20LogFilePerm does not seem to help
thanks for the help
Philippe
it works with hard link not symbolic link
1. vi /etc/e-smith/templates/etc/cups/cupsd.conf/20LogFilePerm
LogFilePerm 0644
2. modify permission for page_log
chmod 644 /var/log/cups/page_log
3. create link for the file
ln /var/log/cups/page_log /home/e-smith/files/primary/html/page_log
and it works
Philippe
-
vi /etc/e-smith/templates/etc/cups/cupsd.conf/20LogFilePerm
The problem with this is that you should never edit a template directly but instead create a custom-template like tec mentioned in his post
You need to make a custom template of
/etc/e-smith/templates/etc/cups/cupsd.conf/20LogFilePerm
Read the Developers Manual for instructions on how to do this:
http://wiki.contribs.org/SME_Server:Documentation:Developers_Manual#Configuration_file_templates (http://wiki.contribs.org/SME_Server:Documentation:Developers_Manual#Configuration_file_templates)