- Posts: 32
Question Error after migration on an other hosting
- Halloy
- Topic Author
- Offline
- New Member
Less
More
4 months 2 days ago #1
by Halloy
Error after migration on an other hosting was created by Halloy
Hi,
Webtrees is installed in a sub-repertory of an Joomla!5 install and called in an iframe. As all was ok, I try to install them on an other hosting (same provider). Data are well displayed with direct access to the directory but I cannot go to the page settings. The error is "unable to create a directory /home/xx/xx/webtrees/data"
The repertory data already exists. I changed access to the database in config-ini.php. In the database, i changed index_directory in the table #_site_settings.
In the iframe, nothing displays (I changed the link in the settings of the menu).
What to do ?
Thanks a lot
Webtrees is installed in a sub-repertory of an Joomla!5 install and called in an iframe. As all was ok, I try to install them on an other hosting (same provider). Data are well displayed with direct access to the directory but I cannot go to the page settings. The error is "unable to create a directory /home/xx/xx/webtrees/data"
The repertory data already exists. I changed access to the database in config-ini.php. In the database, i changed index_directory in the table #_site_settings.
In the iframe, nothing displays (I changed the link in the settings of the menu).
What to do ?
Thanks a lot
Please Log in or Create an account to join the conversation.
- fisharebest
- Offline
- Administrator
4 months 2 days ago #2
by fisharebest
Greg Roach - greg@subaqua.co.uk - @fisharebest@phpc.social - fisharebest.webtrees.net
Replied by fisharebest on topic Error after migration on an other hosting
> The error is "unable to create a directory /home/xx/xx/webtrees/data"
This is a file ownership/permissions error.
Your PHP scripts run as a specific user on the server. Depending on your server configuration, this might be the same as the file owner, a low-privilige user, the webserver's process owner, etc.
Either way, this user does not have write permission to the folder /data
The simplest solution may be to change the permissions to "777". i.e. give read/write access to all users.
This is a file ownership/permissions error.
Your PHP scripts run as a specific user on the server. Depending on your server configuration, this might be the same as the file owner, a low-privilige user, the webserver's process owner, etc.
Either way, this user does not have write permission to the folder /data
The simplest solution may be to change the permissions to "777". i.e. give read/write access to all users.
Greg Roach - greg@subaqua.co.uk - @fisharebest@phpc.social - fisharebest.webtrees.net
Please Log in or Create an account to join the conversation.
- Halloy
- Topic Author
- Offline
- New Member
Less
More
- Posts: 32
4 months 2 days ago #3
by Halloy
Replied by Halloy on topic Error after migration on an other hosting
Thanks for your reply. I changed the permissions but no change. I also changed the .htaccess to allow for all. No change. I can access to the tree by the direct link, but not in the iframe. And even by the direct link I receive the errot to connect to admin of webtrees. Are there other tables or files to change ?
Or I has to reinstall webtrees directly in the new host ?
Thanks a lot
Or I has to reinstall webtrees directly in the new host ?
Thanks a lot
Please Log in or Create an account to join the conversation.
- Halloy
- Topic Author
- Offline
- New Member
Less
More
- Posts: 32
4 months 5 hours ago #4
by Halloy
Replied by Halloy on topic Error after migration on an other hosting
Hi,
Finally, I installed a new webtrees. But now I have to rebuild the apparence and the settings. Do you think I can copy old files without data directory ? And connect to the old tables in the database ?
Thanks a lot
Finally, I installed a new webtrees. But now I have to rebuild the apparence and the settings. Do you think I can copy old files without data directory ? And connect to the old tables in the database ?
Thanks a lot
Please Log in or Create an account to join the conversation.
- fisharebest
- Offline
- Administrator
4 months 5 hours ago #5
by fisharebest
Greg Roach - greg@subaqua.co.uk - @fisharebest@phpc.social - fisharebest.webtrees.net
Replied by fisharebest on topic Error after migration on an other hosting
> Finally, I installed a new webtrees. But now I have to rebuild the apparence and the settings. Do you think I can copy old files without data directory ? And connect to the old tables in the database ?
The /data/ directory contains your media files. You should copy these. The other files are not important.
You can copy the database - or connect to the old database. This will transfer all your old data and settings.
The /data/ directory contains your media files. You should copy these. The other files are not important.
You can copy the database - or connect to the old database. This will transfer all your old data and settings.
Greg Roach - greg@subaqua.co.uk - @fisharebest@phpc.social - fisharebest.webtrees.net
Please Log in or Create an account to join the conversation.
- Halloy
- Topic Author
- Offline
- New Member
Less
More
- Posts: 32
3 months 4 weeks ago #6
by Halloy
Replied by Halloy on topic Error after migration on an other hosting
Hi,
Finally I found where was the error : actually this copy of the joomla website is in http but the link to the webtrees iframe was in https. After to have changed that, it seems to work fine.
Finally I found where was the error : actually this copy of the joomla website is in http but the link to the webtrees iframe was in https. After to have changed that, it seems to work fine.
Please Log in or Create an account to join the conversation.