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?
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 ??
it seems your hosting provider does not allow file system functions. change the settings in php.ini and enable open_dir