[BlueOnyx:10386] Re: open_basedir restriction in effect.

DD bqlist at distortal.com
Sat Apr 28 03:27:01 -05 2012


Hi,

 

This doesn't work for me. I added 

 

#!/usr/bin/php 

 

at the start of my script, changed chmod and tried to launch it with:

 

                /home/.sites/70/site4/update_products.php

 

I get the same error regarding allowed paths, ditto if I try:

 

                /usr/bin/php  /home/.sites/70/4/update_products.php

 

*sigh*

 

 

From: blueonyx-bounces at mail.blueonyx.it
[mailto:blueonyx-bounces at mail.blueonyx.it] On Behalf Of Dudi Goldenberg
Sent: 28 April 2012 07:48
To: SB9-PageKeeper Service; BlueOnyx General Mailing List
Subject: [BlueOnyx:10384] Re: open_basedir restriction in effect.

 

Yes you can.

 

All you need is to tell the script to use php as the interpreter, this is a
snip of one of mine:

 

#!/usr/bin/php

<?php

$server = "localhost";

$user = "root";

$pwd = "secret";

 

$link = mysql_connect($server, $user, $pwd);

if (!$link) {

   die('Could not connect: ' . mysql_error());

<rest of the script>

mysql_close($link);

                                                                    

?>

 

D.

 

 

From: blueonyx-bounces at mail.blueonyx.it
[mailto:blueonyx-bounces at mail.blueonyx.it] On Behalf Of SB9-PageKeeper
Service
Sent: Saturday, April 28, 2012 8:53
To: BlueOnyx General Mailing List
Subject: [BlueOnyx:10383] Re: open_basedir restriction in effect.

 

DD

 

*/5 * * * * curl -s
http://yourlocal.domain.com/phpscripts/index.php?your_unique_query

curl -s will run a web php script using crontab for a user php script on a
5106r as root haven't tested it as used in a user cron..

if it works over the web in a browser it should work when the server reads
it over the web

 

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.blueonyx.it/pipermail/blueonyx/attachments/20120428/739b4322/attachment.html>


More information about the Blueonyx mailing list