shifted server , gets error with function.rename.. Please help urgent!

Discussion in 'Site & Server Administration' started by gaurav_jain03, Jun 19, 2008.

  1. #1
    hello
    i just shifted my server. When i run my script on new server i get these errors:
    rename(files/files882cf6d7016e324ab5ef4dd27a22a236,files/filesad5df1fdabbb6cb9eb29d3663bc712c5) [function.rename]: Permission denied in /home/techch/domains/techchacha.com/public_html/main/configuration.php on line 40
    
    Warning: opendir(files/filesad5df1fdabbb6cb9eb29d3663bc712c5) [function.opendir]: failed to open dir: No such file or directory in /home/techch/domains/techchacha.com/public_html/main/configuration.php on line 40
    
    Warning: readdir(): supplied argument is not a valid Directory resource in /home/techch/domains/techchacha.com/public_html/main/configuration.php on line 40
    
    Warning: closedir(): supplied argument is not a valid Directory resource in /home/techch/domains/techchacha.com/public_html/main/configuration.php on line 40
    Code (markup):
    It seems the server doesn't supports some function, it is now able to rename the directory!

    Can some one please provide a solution to it?
     
    gaurav_jain03, Jun 19, 2008 IP
  2. hans

    hans Well-Known Member

    Messages:
    2,923
    Likes Received:
    126
    Best Answers:
    1
    Trophy Points:
    173
    #2
    1.
    what server versions

    2.
    php versions before / after move

    3.
    did you check all paths on new server to be correct ?

    4.
    did you check line 40 in your error message:
    ... configuration.php on line 40
    ?

    5.
    are you monitoring logs for error output
    (on linux server ) it would be:

    /var/log/warn
    /var/log/messages
    /var/log/apache2/error_log
    ??
     
    hans, Jun 20, 2008 IP
  3. olddocks

    olddocks Notable Member

    Messages:
    3,275
    Likes Received:
    165
    Best Answers:
    0
    Trophy Points:
    215
    #3
    it seems your hosting provider does not allow file system functions. change the settings in php.ini and enable open_dir
     
    olddocks, Jun 20, 2008 IP