Welcome to the GoFuckYourself.com - Adult Webmaster Forum forums.

You are currently viewing our boards as a guest which gives you limited access to view most discussions and access our other features. By joining our free community you will have access to post topics, communicate privately with other members (PM), respond to polls, upload content and access many other special features. Registration is fast, simple and absolutely free so please, join our community today!

If you have any problems with the registration process or your account login, please contact us.

Post New Thread Reply

Register GFY Rules Calendar
Go Back   GoFuckYourself.com - Adult Webmaster Forum > >
Discuss what's fucking going on, and which programs are best and worst. One-time "program" announcements from "established" webmasters are allowed.

 
Thread Tools
Old 09-02-2012, 11:16 AM   #1
Inter-Sex
Confirmed User
 
Industry Role:
Join Date: Nov 2005
Location: Spain :)
Posts: 2,231
Piwik Cron Job Issue

Hi,

Struggling already to much time with the following problem at a vps package.
I hope somebody can advise me on this.

I try to add a cronjob, so that piwik (newest version) can create automatic archives, but whatever I already tried i'm not getting it correct.
Cron Deamon does send every time notifications with errors. Not sure in which crontab I should add the lines the best,
but both "crontab -e" & "crontab -u www-data -e" are giving me the very same results.

The webserver does run on apache2 + php5. The path to php5 is "/usr/bin/php5" (which php5 command)
/var/spool/cron/crontabs# does have a 'root' and 'www-data' listed.

If I add :
MAILTO="[email protected]"
5 * * * * root /usr/bin/php5 /home/user001/public_html/folder1/misc/cron/archive.php -- url=http://2xx.3x.x7.x0/folder1/ > /home/user001/public_html/folder1/piwik-archive.log

Cron Deamon trows the following
/bin/sh: 1: cannot create /home/user001/public_html/folder1/piwik-archive.log: Permission denied
/bin/sh: 1: root: not found


This entrie :
MAILTO="[email protected]"
5 * * * * www-data /usr/bin/php5 /home/user001/public_html/folder1/misc/cron/archive.php -- url=http://2xx.3x.x7.x0/folder1/ > /home/user001/public_html/folder1/piwik-archive.log
gives me this.

/bin/sh: 1: cannot create /home/user001/public_html/folder1/piwik-archive.log: Permission denied
/bin/sh: 1: www-data: not found

archive.php has www-data as owner
piwik-archive.log has root as owner

Is there somebody that is able to catch where I did go wrong ?

Any valuable input is apreciated. (so DVTimes, stay the fuck out of this thread)

~ Renaldo,
Inter-Sex is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote
Old 09-02-2012, 11:32 AM   #2
Nasty
Confirmed User
 
Nasty's Avatar
 
Industry Role:
Join Date: Aug 2002
Location: Sunny Fucking California
Posts: 1,575
cron probably needs to run as root or apache
__________________

“Ours is a world of nuclear giants and ethical infants. We know more about war than we know about peace, more about killing than we know about living. If we continue to develop our technology without wisdom or prudence, our servant may prove to be our executioner.” ― Omar Bradley (1948)
Nasty is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote
Old 09-02-2012, 12:02 PM   #3
wetvibes
Confirmed User
 
wetvibes's Avatar
 
Industry Role:
Join Date: Jul 2012
Posts: 119
Be careful with Piwik. One of my sites was hacked 2 months ago. The vulnerability was in Piwik.
__________________
Free HD porn
wetvibes is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote
Old 09-02-2012, 02:59 PM   #4
Inter-Sex
Confirmed User
 
Industry Role:
Join Date: Nov 2005
Location: Spain :)
Posts: 2,231
Quote:
Originally Posted by wetvibes View Post
Be careful with Piwik. One of my sites was hacked 2 months ago. The vulnerability was in Piwik.
Thanks for the advise. Did you run piwik on its own vps, or mixed up with other domains ?
I running piwik at a vps which just get used for piwik.

Did they hack you due to the include which you added or they started the hack at any of the piwik files ?
Inter-Sex is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote
Old 09-03-2012, 01:27 AM   #5
Inter-Sex
Confirmed User
 
Industry Role:
Join Date: Nov 2005
Location: Spain :)
Posts: 2,231
one bump
Inter-Sex is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote
Post New Thread Reply
Go Back   GoFuckYourself.com - Adult Webmaster Forum > >

Bookmarks



Advertising inquiries - marketing at gfy dot com

Contact Admin - Advertise - GFY Rules - Top

©2000-, AI Media Network Inc



Powered by vBulletin
Copyright © 2000- Jelsoft Enterprises Limited.