Cron / Calendar Integration
| Author |
Message |
|
Beofres
Joined: Tue Jun 19, 2007 7:53 pm Posts: 32 Location: North-Bay , California
|
Old thread, I know...but is this add-on 'current' for ZM 1.22.x ?
|
| Thu Nov 29, 2007 9:42 pm |
|
|
|
 |
|
voronwe
Joined: Tue Jan 18, 2005 1:40 am Posts: 193 Location: Copenhagen Denmark
|
Hi Beofres
Yes it should still work on the 1.22.x, i have not tested it on 1.23.x(BETA).
I know that there have been some problems with other distros than FC based once.
_________________ Best Regards
Tom Stage
|
| Thu Dec 06, 2007 2:05 pm |
|
 |
|
blanx
Joined: Sun Dec 09, 2007 6:33 am Posts: 1 Location: Tallinn Estonia
|
First of all, this is an absolutely great piece of work!
I came across 1 question, though:
It seems that in order for this to work, /etc/cron.d has to be rw for apache, which in general doesn't seem like a good idea. Or how have you set it up yourself, voronwe?
(I'm tesing on FC5, in the end it would run on FC7)
|
| Sun Dec 09, 2007 6:47 am |
|
 |
|
voronwe
Joined: Tue Jan 18, 2005 1:40 am Posts: 193 Location: Copenhagen Denmark
|
Hi blanx
No you dont have to mess with the permissions on / inside the /etc/cron.d directory since Cron will change them just as as fast as you can, but you have to make sure that the cron file from the package have the right premissions inside the /etc/cron.d directory, and they are:
Owner: root.root
Permissions: -rw-r--r--
When the permissions are right then cron will run the command inside the file, witch is a call to the php executeble, witch is run as root, so for that part there should be no problems.
The part where you have to assign apache some rights is for the sodu part and is only needed if you want to be able to view the log files, witch have been know to be somewhat buggy due to changes on how sodu works from distro to distro.
_________________ Best Regards
Tom Stage
|
| Mon Dec 17, 2007 2:35 pm |
|
 |
|
voronwe
Joined: Tue Jan 18, 2005 1:40 am Posts: 193 Location: Copenhagen Denmark
|
Hi All
After along time of testing on my own system, i have release a new version of my frontend, there have been some minor bug fixes, and a new template with icons.
As allways the Frontend can be downloaded here.
Or here.
Rember that this frontend is developed on RedHat derived systems, so there might be some issues with it on other systems.
_________________ Best Regards
Tom Stage
|
| Wed Feb 13, 2008 6:25 pm |
|
 |
|
Normando
Joined: Sun Aug 17, 2008 6:34 am Posts: 219 Location: Rosario - Argentina
|
Hello voronwe
Thank you for this great code.
I have an issue with that:
I have PHP 4.3.9 and the code refenced is session_start()
Calendar 2.2
Any sugestion?
Thanks
|
| Wed Sep 03, 2008 3:36 pm |
|
 |
|
voronwe
Joined: Tue Jan 18, 2005 1:40 am Posts: 193 Location: Copenhagen Denmark
|
Hi Normando
Hmmmm that looks funny.
What distro are you running it on ?
_________________ Best Regards
Tom Stage
|
| Wed Sep 03, 2008 7:08 pm |
|
 |
|
Normando
Joined: Sun Aug 17, 2008 6:34 am Posts: 219 Location: Rosario - Argentina
|
SME 7.3 (CENTOS 4)
|
| Wed Sep 03, 2008 8:27 pm |
|
 |
|
voronwe
Joined: Tue Jan 18, 2005 1:40 am Posts: 193 Location: Copenhagen Denmark
|
Hi Normando
Hmm that might be the problem, do you have any chance to try it on a server with Centos 5 ??
If i remember correct there are some major changes to PHP from Centos 4 to Centos 5.
_________________ Best Regards
Tom Stage
|
| Wed Sep 03, 2008 8:51 pm |
|
 |
|
Normando
Joined: Sun Aug 17, 2008 6:34 am Posts: 219 Location: Rosario - Argentina
|
Thank you voronwe for the fast reply
Yes, centos 5 has php 5, and centos 4 has 4.3. I can't upgrade to centos 5 because this is special distro made only for servers (SME http://wiki.contribs.org ) but I will try to run php4 and php5 as CGI mode.
I will return with results.
|
| Wed Sep 03, 2008 9:05 pm |
|
 |
|
voronwe
Joined: Tue Jan 18, 2005 1:40 am Posts: 193 Location: Copenhagen Denmark
|
Hi Normando
Ok otherwise i will have to see if i can solve your problem with some otherway to program that function.
_________________ Best Regards
Tom Stage
|
| Wed Sep 03, 2008 9:15 pm |
|
 |
|
sag
Joined: Mon May 11, 2009 8:39 pm Posts: 7
|
the first
Thanks for is utility
I have is problem.
Can you help my?
I sorry for poor English
|
| Mon May 11, 2009 8:47 pm |
|
 |
|
voronwe
Joined: Tue Jan 18, 2005 1:40 am Posts: 193 Location: Copenhagen Denmark
|
Hi Sag
What distro are you running on?
What version of the frontend are you running?
What version of Apache and PHP are you running on?
Is your version of PHP compiled with sessions enabled?
A quick try could be to change line 61 of login.php from:
To:
_________________ Best Regards
Tom Stage
|
| Tue May 12, 2009 1:28 pm |
|
 |
|
sag
Joined: Mon May 11, 2009 8:39 pm Posts: 7
|
Thanks for you answer
Distro --------------- Gentoo-Linux - Kernel 2.6.28-gentoo-r5
Frontend ------------ zm_calendar-2.2.tgz
Apache version ---- www-servers/apache-2.2.11
PHP version -------- dev-lang/php-5.2.9-r2
PHP compiled (use flags)
//session_start(); Config.php  |  |  |  | Code: /* * LICENSE: * This program is free software; you can redistribute it and/or * modify it under the terms of the GNU General Public License * as published by the Free Software Foundation; either version 2 * of the License, or (at your option) any later version. * This program is distributed in the hope that it will be useful, * but WITHOUT ANY WARRANTY; without even the implied warranty of * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU General Public License for more details. * You should have received a copy of the GNU General Public License * along with this program; if not, write to the Free Software * Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. */ /** * This is the main config file for all of the dvos frontend. * * DVOS-FrontEnd :: Frontend for a ZoneMinder Surveillance server * * @author Tom Stage <tom> * @version $Revision: 2.0 $ * @access public * @copyright Tom Stage * @package DVOS-FrontEnd * @license http://www.opensource.org/licenses/gpl-license.php GPL */ if (!defined('IN_DVOS_FRONTEND')) { die("No Hacking"); } $VERSION = "2.0"; $base = "dvos"; // This is the Database where the calendar table is located $basezm = "zm"; // This is the default zm database so if you have changed that remember to change it here as well. $user = "zm"; // Remember to change this to your database user $password = MyPWD"; // Remember to change the password for your database user $host = "localhost"; // Remember to change the host to where you have your databases $default_lng = 'en'; // Set Default Language $default_template ='dvos';// Set Default Template $browser_resize = false; // Wether or not we should resize browser window, this is used in the ZM template for now $cron_file = '/etc/cron.d/dvos.cron';// Path to the cron job file in your cron.d directory // $cron_file = './dvos.cron';// This line is used for programming purpuses only edit the above instead $cmd_zmpkg = "perl -T /usr/bin/zmpkg.pl '"; // Remember to change this to the path for your zmpkg.pl file on your system $viewlogs = false; // If log viewing is active or not $systemlogs = false; // This is used to tell if you want to be able to view the messages / access_log / error_log $webuser = 'apache'; // The user that apache runs under, on Fedora Core the default is apache $logroot = '/var/log/'; // Path to the main log directory $zmlogfiles = '/var/log/zm/'; // Path to the ZoneMinder Logfiles $httpdlogfiles = '/var/log/apache2/'; // Path to the Apache Logfiles # Debug Vars $debugcronadmin = true; // Debug in calendar.php $debuguseradmin = true; // Debug in useradmin.php $debugcronrunjob = true; // Debug in cron.php ?>
|  |  |  |  |
My php.ini
http://personales.ya.com/sag_/php.ini
|
| Tue May 12, 2009 7:37 pm |
|
 |
|
voronwe
Joined: Tue Jan 18, 2005 1:40 am Posts: 193 Location: Copenhagen Denmark
|
Hmm iam confused.
I just did aa test installation on my own system:
And the only config i changed was the user name and the password for the database, and it all works. Hmm i was thinking it might be an ownership or permission issue, try running the following commands:
If it still dont work iam lost for the moment, and i will have to think more about what it could be.
_________________ Best Regards
Tom Stage
|
| Wed May 13, 2009 10:39 am |
|
|
Who is online |
Users browsing this forum: No registered users and 1 guest |
|
You cannot post new topics in this forum You cannot reply to topics in this forum You cannot edit your posts in this forum You cannot delete your posts in this forum You cannot post attachments in this forum
|
|