[BlueOnyx:15338] Re: Cron errors?
DD
bqlist at distortal.com
Sun May 4 14:51:20 -05 2014
This is how I handle cron jobs that call PHP:
1: Create a folder, /home/sites/www.domain.com/cron/ and put your script.php
in there.
2: Signed in as root, create a matching .cron file containing:
#!/bin/bash
cd /home/.sites/XXX/siteX/cron/
php -d
open_basedir=/tmp/:/var/lib/php/session/:/usr/sausalito/configs/php/:/home/.
sites/XXX/siteX/ ./script.php
(where /XXX/siteX/ is the path to www.domain.com and script.php is your
script name.)
If your script needs any other configs you can add them to the last line,
for example:
-d allow_url_fopen=1
You can then add an entry to /etc/crontab as usual.
Hope this helps,
DD
From: blueonyx-bounces at mail.blueonyx.it
[mailto:blueonyx-bounces at mail.blueonyx.it] On Behalf Of Harm van Houten
Sent: 03 May 2014 17:07
To: BlueOnyx General Mailing List
Subject: [BlueOnyx:15334] Re: Cron errors?
Hi,
I added the propposed ini file but now i get an other error:
PHP Parse error: syntax error, unexpected ',' in
/home/.sites/143/site2/settings_cron/php.ini on line 135
anyone that can help me with this? the ini file line 135 point to a comment
line :(
Met vriendelijke groeten / Best regards,
United Broadcast Facilities
Harm van Houten, ( Support Engineer, United Postproduction )
&l
T
+31 (0)35 773 32 78
M
E
+31 (0)6 411 707 49
harm.vanhouten at ubf.nl
_____
Van: blueonyx-bounces at mail.blueonyx.it [blueonyx-bounces at mail.blueonyx.it]
namens Dirk Estenfeld [dirk.estenfeld at bpanet.de]
Verzonden: zondag 20 april 2014 19:37
To: BlueOnyx General Mailing List
Onderwerp: [BlueOnyx:15233] Re: Cron errors?
Hello,
I suggest you/you customer is using suphp.
So you have to include the local php.ini filein the cronjob call
<path to yourphp>/php -c /home/sites/<website/php.ini -f
/home/sites/web/<your php file>
Best regards,
Dirk
Black Point Arts Internet Solutions GmbH - Hanauer Landstrasse 423a - 60314
Frankfurt
Von: blueonyx-bounces at mail.blueonyx.it
[mailto:blueonyx-bounces at mail.blueonyx.it] Im Auftrag von Harm van Houten
Gesendet: Samstag, 19. April 2014 22:21
An: BlueOnyx General Mailing List (blueonyx at mail.blueonyx.it)
Betreff: [BlueOnyx:15229] Cron errors?
Hi Guys,
A customer of mine is running a cron but it presents errors:
PHP Warning: include(): open_basedir restriction in effect.
File(/home/.sites/143/site2/web/intranet/glovars.php) is not within the
allowed path(s):
(/home/sites/:/tmp/:/usr/sausalito/configs/php/:/var/lib/php/session/) in
/home/.sites/143/site2/web/intranet/weekmail_new.php on line 2 PHP Warning:
include(/home/.sites/143/site2/web/intranet/glovars.php): failed to open
stream: Operation not permitted in
/home/.sites/143/site2/web/intranet/weekmail_new.php on line 2 PHP Warning:
include(): open_basedir restriction in effect.
File(/home/.sites/143/site2/web/intranet/glovars.php) is not within the
allowed path(s):
The location is in the ini file but still I get these errors, anny tips on
how to solve these ?
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.blueonyx.it/pipermail/blueonyx/attachments/20140504/4e60e511/attachment.html>
More information about the Blueonyx
mailing list