Commander
Member
Hi everyone,
I've switched the entire forum from one server to another. Everything has been successfully passed and the database is connected and everything works, except that I can not upload files, I can not even edit the template, cant rebuild XMLsitemap... nothing.
How do I reconfigure the server permissions for the xenforo installation because it's probably a problem with that?
Sample of errors:
ErrorException: fopen(/home/admin/web/site.tld/public_html/internal_data/sitemaps/sitemap-1520849139-1.xml): failed to open stream: Permission denied - library/XenForo/Deferred/Sitemap.php:210
When try to upload something:
ErrorException: copy(/home/admin/web/site.tld/public_html/internal_data/attachments/8/8671-fbea4dda0e4a99df633c11632415bc92.data): failed to open stream: Permission denied - library/XenForo/Helper/File.php:253
I changed site.tld for privacy reason.
Cheers.
I've switched the entire forum from one server to another. Everything has been successfully passed and the database is connected and everything works, except that I can not upload files, I can not even edit the template, cant rebuild XMLsitemap... nothing.
How do I reconfigure the server permissions for the xenforo installation because it's probably a problem with that?
Sample of errors:
Code:
Server Error
fopen(/home/admin/web/site.tld/public_html/internal_data/sitemaps/sitemap-1520849139-1.xml): failed to open stream: Permission denied
XenForo_Application::handlePhpError()
fopen() in XenForo/Deferred/Sitemap.php at line 210
XenForo_Deferred_Sitemap->_openFile() in XenForo/Deferred/Sitemap.php at line 230
XenForo_Deferred_Sitemap->_writeSitemapString() in XenForo/Deferred/Sitemap.php at line 202
XenForo_Deferred_Sitemap->_writeResult() in XenForo/Deferred/Sitemap.php at line 165
XenForo_Deferred_Sitemap->_buildSitemap() in XenForo/Deferred/Sitemap.php at line 90
XenForo_Deferred_Sitemap->execute() in XenForo/Model/Deferred.php at line 295
XenForo_Model_Deferred->runDeferred() in XenForo/Model/Deferred.php at line 429
XenForo_Model_Deferred->_runInternal() in XenForo/Model/Deferred.php at line 374
XenForo_Model_Deferred->run() in XenForo/ControllerAdmin/Tools.php at line 159
XenForo_ControllerAdmin_Tools->actionRunDeferred() in XenForo/FrontController.php at line 351
XenForo_FrontController->dispatch() in XenForo/FrontController.php at line 134
XenForo_FrontController->run() in /home/admin/web/site.tld/public_html/admin.php at line 13
ErrorException: fopen(/home/admin/web/site.tld/public_html/internal_data/sitemaps/sitemap-1520849139-1.xml): failed to open stream: Permission denied - library/XenForo/Deferred/Sitemap.php:210
When try to upload something:
ErrorException: copy(/home/admin/web/site.tld/public_html/internal_data/attachments/8/8671-fbea4dda0e4a99df633c11632415bc92.data): failed to open stream: Permission denied - library/XenForo/Helper/File.php:253
Code:
#0 [internal function]: XenForo_Application::handlePhpError(2, 'copy(/home/admi...', '/home/admin/web...', 253, Array)
#1 /home/admin/web/site.tld/public_html/library/XenForo/Helper/File.php(253): copy('/home/admin/tmp...', '/home/admin/web...')
#2 /home/admin/web/site.tld/public_html/library/XenForo/DataWriter/AttachmentData.php(265): XenForo_Helper_File::safeRename('/home/admin/tmp...', '/home/admin/web...')
#3 /home/admin/web/site.tld/public_html/library/XenForo/DataWriter/AttachmentData.php(224): XenForo_DataWriter_AttachmentData->_moveFile('/home/admin/tmp...', '/home/admin/web...')
#4 /home/admin/web/site.tld/public_html/library/XenForo/DataWriter/AttachmentData.php(144): XenForo_DataWriter_AttachmentData->_writeAttachmentFile('/home/admin/tmp...', Array)
#5 /home/admin/web/site.tld/public_html/library/XenForo/DataWriter.php(1423): XenForo_DataWriter_AttachmentData->_postSave()
#6 /home/admin/web/site.tld/public_html/library/XenForo/Model/Attachment.php(539): XenForo_DataWriter->save()
#7 /home/admin/web/site.tld/public_html/library/XenForo/ControllerPublic/Attachment.php(204): XenForo_Model_Attachment->insertUploadedAttachmentData(Object(XenForo_Upload), 2)
#8 /home/admin/web/site.tld/public_html/library/XenForo/FrontController.php(351): XenForo_ControllerPublic_Attachment->actionDoUpload()
#9 /home/admin/web/site.tld/public_html/library/XenForo/FrontController.php(134): XenForo_FrontController->dispatch(Object(XenForo_RouteMatch))
#10 /home/admin/web/site.tld/public_html/index.php(13): XenForo_FrontController->run()
#11 {main}
I changed site.tld for privacy reason.
Cheers.