Menu

#3 ./pdm.php gives strange error messages

open
5
2006-07-19
2005-05-10
No

Running pdm_4-1

[root@localhost pdm_4-1]# ./pdm.php -s=..

PHP Backup Maker v4.0 by Marcin Orlowski
<carlos@wfmh.org.pl>
----------------------------------------------------------------
Visit project home page: http://pdm.sf.net/ for newest
releases
DO NOT report bugs by mail. Use bugtracker on project
home page!
Visit http://www.amazon.com/o/registry/20QXY0H72WMJK too!
FATAL: You got Safe Mode turned ON in php.ini file
You have to turn it OFF to let this script work

*** Cleaning...
*** Script terminated

[root@localhost pdm_4-1]#

but php.ini does not turn On Safe Mode.

[root@localhost pdm_4-1]# find -name php.ini
./php-4.3.11/pear/tests/php.ini
[root@localhost pdm_4-1]# cat ./php-4.3.11/pear/te
template.spec tests
[root@localhost pdm_4-1]# cat
./php-4.3.11/pear/tests/php.ini
; php.ini for PEAR tests
include_path=..
[root@localhost pdm_4-1]#

I modified the first line of pdm.php as follows:
[root@localhost pdm_4-1]# head pdm.php
#!/usr/local/bin/php -q
<?php
/* vim: set tabstop=3 shiftwidth=3: */

// don't remove this. I don't expect you see any
warning/error in my c00l c0d3{tm} ;-)
error_reporting(E_ALL);

// $Id: pdm.php,v 1.53 2004/08/18 11:00:55 carl-os Exp $
//
[root@localhost pdm_4-1]# which pdm_4
/usr/bin/which: no pdm_4 in
(/usr/local/sbin:/usr/local/bin:/sbin:/bin:/usr/sbin:/usr/bin:/usr/X11R6/bin:/root/bin)
[root@localhost pdm_4-1]# which pdm
/usr/bin/which: no pdm in
(/usr/local/sbin:/usr/local/bin:/sbin:/bin:/usr/sbin:/usr/bin:/usr/X11R6/bin:/root/bin)
[root@localhost pdm_4-1]#

Did this before the problem reported above.

Where do I go next?

thanks

george

Discussion

  • Marcin Orlowski

    Marcin Orlowski - 2006-07-19

    Logged In: YES
    user_id=69131

    I'll investigate. if you really sure you got safe mode off,
    just rip off or comment the followin code, around line 1292:

    1292 // checking how is your PHP configured...
    1293 if( ini_get('safe_mode') != "" )
    1294 {
    1295 // Franly it's not fully true. The script
    would work with
    1296 // safe mode too, but since we wouldn't be
    able to i.e.
    1297 // increate time limit, nor to read some files
    or calls
    1298 // external tools in most cases, to avoid
    'bug' reports
    1299 // we better claim it's user-fault ;)
    1300 printf("FATAL: You got Safe Mode turned ON in
    php.ini file\n");
    1301 printf(" You have to turn it OFF to let
    this script work\n");
    1302 Abort();
    1303 }

    either remove it completely or remove/comment the Abort();
    stuff.

     
  • Marcin Orlowski

    Marcin Orlowski - 2006-07-19
    • assigned_to: nobody --> carl-os
     

Log in to post a comment.