freedombi Posted May 2, 2008 Share Posted May 2, 2008 If I go to /usr/local/www/apache22/data/modules/registrars/directi/ and run "php directisync.php", it successfully syncs the domain information. However, if I run "php /usr/local/www/apache22/data/modules/registrars/directi/directisync.php" from anywhere else, I get the following: PHP Warning: main(../../../dbconnect.php): failed to open stream: No such file or directory in /usr/local/www/apache22/data/modules/registrars/directi/directisync.php on line 0 PHP Warning: main(../../../dbconnect.php): failed to open stream: No such file or directory in /usr/local/www/apache22/data/modules/registrars/directi/directisync.php on line 0 PHP Fatal error: main(): Failed opening required '../../../dbconnect.php' (include_path='.:/usr/local/share/pear') in /usr/local/www/apache22/data/modules/registrars/directi/directisync.php on line 0 0 Quote Link to comment Share on other sites More sharing options...
othellotech Posted May 4, 2008 Share Posted May 4, 2008 ../../.. would be the wrong path if you run it from anywhere else try calling it with curl {url} rather than php {path} 0 Quote Link to comment Share on other sites More sharing options...
freedombi Posted May 5, 2008 Author Share Posted May 5, 2008 If that's the correct fix, then the online documentation should be updated. I would point out, though, that admin/cron.php does not have the same problem. 0 Quote Link to comment Share on other sites More sharing options...
tsiedsma Posted May 9, 2008 Share Posted May 9, 2008 I also get the dbconnect error but I worked around it by using the following for my cron job: lynx -dump http://path.to/directisync.php 0 Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.