Results 1 to 5 of 5

Thread: problem to run sitemap.php in unix

  1. #1
    Join Date
    Feb 2004
    Location
    Slovakia
    Posts
    72

    Thumbs down problem to run sitemap.php in unix

    Hello,
    I switched to virutal serverhosting (gentoo linux), and I have problems with running sitemap.php script. I get this error:
    php -f /data/www/virtuals/indicie/html/sitemap.php ..

    Warning: gzopen(): SAFE MODE Restriction in effect. The script whose uid is 1002 is not allowed to access /usr/libexec/webmin/cron owned by uid 0 in /data/www/virtuals/indicie/html/sitemap.php on line 121

    Warning: gzopen(sitemap1.xml.gz): failed to open stream: No such file or directory in /data/www/virtuals/indicie/html/sitemap.php on line 121

    Warning: gzwrite(): supplied argument is not a valid stream resource in /data/www/virtuals/indicie/html/sitemap.php on line 122

    Warning: gzclose(): supplied argument is not a valid stream resource in /data/www/virtuals/indicie/html/sitemap.php on line 123

    Fatal error: Call to a member function FetchRow() on a non-object in /data/www/virtuals/indicie/html/lib/db.class.php on line 105

    Can anybody help me?
    Vsevedko
    Vsevedko - Slovak Directory - Indexu Deluxe 1.4.2, Catalog of slovak blogs - Indexu 5.4.0

  2. #2
    Join Date
    Sep 2006
    Posts
    167

    Default Safe Mode

    i THINK YOU HAVE A PROBLEM WITH YOUR PHP Safe Mode

    You must change on your control panel provider YOUR MODE on off or on....


    Antony
    Hotel Discount Web Search
    www.hotel-discount.com

  3. #3
    Join Date
    Feb 2004
    Location
    Slovakia
    Posts
    72

    Default

    Quote Originally Posted by Antony View Post
    i THINK YOU HAVE A PROBLEM WITH YOUR PHP Safe Mode

    You must change on your control panel provider YOUR MODE on off or on....


    Antony
    well, not quite. Right now, in sitemap.php I have added a full path to the sitemap1.xml.gz on line 121:
    $zp = gzopen("/data/www/virtuals/indicie/html/sitemap1.xml.gz", "w9");

    And now I "only" get an error:
    Fatal error: Call to a member function FetchRow() on a non-object in /data/www/virtuals/indicie/html/lib/db.class.php on line 105

    ...
    Vsevedko
    Vsevedko - Slovak Directory - Indexu Deluxe 1.4.2, Catalog of slovak blogs - Indexu 5.4.0

  4. #4
    Join Date
    Aug 2001
    Location
    Indonesia
    Posts
    3,732

    Default

    Try to use this command:
    Code:
    GET http://www.indicie.cz/sitemap.php
    or
    Code:
    wget http://www.indicie.cz/sitemap.php
    instead of using
    Code:
    php -f /data/www/virtuals/indicie/html/sitemap.php

  5. #5
    Join Date
    Feb 2004
    Location
    Slovakia
    Posts
    72

    Default

    I have tried it, but no success:

    Code:
    GET http://www.indicie.cz/sitemap.php
    shows this shows error:
    Code:
    GET http://www.indicie.cz/sitemap.php ..
    
    <br />
    <b>Fatal error</b>:  Call to a member function FetchRow() on a non-object in <b>/data/www/virtuals/indicie/html/lib/db.class.php</b> on line <b>105</b><br />
    Code:
    wget http://www.indicie.cz/sitemap.php
    shows this:

    Code:
    wget http://www.indicie.cz/sitemap.php ..
    
    --11:28:24--  http://www.indicie.cz/sitemap.php
               => `sitemap.php'
    Resolving www.indicie.cz... 195.39.95.187
    Connecting to www.indicie.cz|195.39.95.187|:80... connected.
    HTTP request sent, awaiting response... 200 OK
    Length: 165 [text/html]
    
        0K                                                       100% 
    
    11:28:25 (2.71 MB/s) - `sitemap.php' saved [165/165]
    but finally all sitemap files (*.xml.gz) stay untouched (date of last change is still the same as before running script).

    Vsevedko
    Vsevedko - Slovak Directory - Indexu Deluxe 1.4.2, Catalog of slovak blogs - Indexu 5.4.0

Similar Threads

  1. sitemap.php correction
    By gcn in forum v5.x
    Replies: 3
    Last Post: 11-12-2006, 09:36 AM
  2. sitemap creation problem
    By gtithesexy in forum v5.x
    Replies: 4
    Last Post: 09-28-2006, 09:01 PM
  3. sitemap problem
    By guada23 in forum v5.x
    Replies: 11
    Last Post: 05-29-2006, 07:11 AM
  4. Sitemap bug
    By peo in forum v5.x
    Replies: 0
    Last Post: 05-13-2006, 06:38 PM
  5. Advice for those running PHP Ads New on Unix
    By markbrooks in forum v3.2
    Replies: 3
    Last Post: 05-27-2003, 06:00 AM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •