IFL442 Posted February 28 Report Posted February 28 (edited) Hello Community, I'm currently migrating my phpVMS installation to a new web host and changing the domain at the same time. I have transferred all the files, imported the database, and cleared the cache. Now I'm encountering the following issue: include(/home/XXXXX/phpvms/modules/DisposableBasic/db_helpers.php): Failed to open stream: No such file or directory or: include(): open_basedir restriction in effect. File(XXXX/phpvms/modules/DisposableBasic/db_helpers.php) is not within the allowed path(s): (/var/www/vhosts/XXXX/:/tmp/) This error message indicates that the file db_helpers.php cannot be found in the specified directory. Possible causes could be: File is missing or was not transferred correctly: Perhaps the file was not copied during the migration or is located in a different directory. Incorrect path in the configuration: Possibly a configuration file or an include statement is referencing an outdated path. Are there any settings in phpVMS where the path to the modules or specifically to db_helpers.php is defined? My questions to you: What steps should be taken to ensure that all necessary files, especially db_helpers.php, are correctly present and in the right location? Are there any known adjustments in the phpVMS configuration that need to be considered during a host and domain migration to avoid such path issues? Do you have any tips on how best to proceed when the include path appears to be incorrect? Thank you very much for your support and your tips! Edited March 1 by IFL442 Quote
Administrators ProAvia Posted February 28 Administrators Report Posted February 28 Look in your modules/DisposableBasic folder. If the db_helpers.php file is not there, reinstall DisposableBasic. If it is there, there are probably other issues with your move as well. Quote
IFL442 Posted February 28 Author Report Posted February 28 (edited) the files have all been copied and are now located somewhere else. old :xxx/phpvms/modules/DisposableBasic/db_helpers.php after the move:httpdocs /phpvms /modules /DisposableBasic Edited March 1 by IFL442 Quote
DisposableHero Posted February 28 Report Posted February 28 3 hours ago, IFL442 said: the files have all been copied and are now located somewhere else. old:/home/kant-va/htdocs/va.kant.ovh/phpvms/modules/DisposableBasic/db_helpers.php after the move:httpdocs /phpvms /modules /DisposableBasic Hi, Key info is there in this section `include(): open_basedir restriction in effect.` and the difference between old/new paths. If you moved your cache while moving the install, this can cause phpVMS (thus laravel and php itself) to still look for old file locations. While moving from one server to another, or even moving from one directory to another (like from domain to subdomain), it is better to skip copying cache related folders. So then the application can build new cache on first run properly. If you are not able to visit admin area and go to maintenance tab to clear all cache now, you can check the docs (updating page, step 3) to see how we manually delete cache related files. https://docs.phpvms.net/installation/updating Good luck Quote
IFL442 Posted March 1 Author Report Posted March 1 Thanks, everything worked smoothly after deletion 🙂 2 Quote
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.