Invision Community 4: SEO, prepare for v5 and dormant account notifications Matt November 11, 2024Nov 11
Posted May 12, 20222 yr Hello A few days ago we had to change the VPS. For some reaseon i have an access to admin panel but forum is not avaliable. I've seen that 500 error might be the problem with file permissions but in admin panel everything seems to work fine (only a new security update): Any ideas?
May 12, 20222 yr You mention everything seems to work there, however you have an issue item in the top left of your screenshot. I would suggest attending to that first of all
May 12, 20222 yr Author As mentioned before, it's just a security update. After performing this update admin panel appears as:
May 12, 20222 yr We would need to look further into this for you, however the access details on file appear to be incorrect or missing. Could you please update these details by visiting your client area, selecting the relevant purchase, then clicking "Review/Update Access Information" under the "Stored Access Information" section. We look forward to further assisting you.
May 12, 20222 yr Author Well... Only access details that are missing: Maybe because there is no any additional .htaccess access protection. Edited May 12, 20222 yr by Veritas Roleplay misspell
May 12, 20222 yr Ah, the ftp details were missing previously and are now showing. Unfortunately, the issue here is is the software cannot write to folders on your new server. Is this using suPHP or suExec?
May 18, 20222 yr Author On 5/12/2022 at 11:00 AM, Marc Stridgen said: Ah, the ftp details were missing previously and are now showing. Unfortunately, the issue here is is the software cannot write to folders on your new server. Is this using suPHP or suExec? suexec
May 18, 20222 yr If you are using suphp or suexec, the permissions for our software are normally set as: All Folders and Subfolders: 0644 All Files: 0755 Setting any file or folder to 0777 can (and usually does) led to 500 Errors, with a message about "access denied by client configuration" or similar.
May 18, 20222 yr Author Hello Mark I'm right after changing each folders, subfolders and files to specific permissions. For now the problem is:
May 18, 20222 yr That error suggests your .htaccess file is missing, or cannot be read by the server account running the software. Permissions on .htaccess should also be 0644 if you are using suexec or suphp. Have you checked that specifically?
May 18, 20222 yr Author Yeah, I did. I'ts odd: Changing permissions or deleting .htaccess does not change anything
May 18, 20222 yr Ah, is this an IIS server? If so, that is the problem. We unfortunately do not support the use of IIS servers, we only support a server running a LAMP stack. But if this is a Linux server with Apache, MySQL and a compatible version of PHP, please let us know.
May 18, 20222 yr The screenshot you provided does not appear to be from a Linux server. And although it's in a language I can't read, it does appear to be what you would see in IIS (or Windows) for file/folder properties. Can you please clarify?
May 18, 20222 yr Mark… it looks like a screenshot from his FTP client trying to change the permissions of the .htaccess file. If you notice the file path is a standard Linux system path instead of a Windows one. 🙂 Edited May 18, 20222 yr by Randy Calvert
May 18, 20222 yr Author 15 minutes ago, Mark H said: The screenshot you provided does not appear to be from a Linux server. And although it's in a language I can't read, it does appear to be what you would see in IIS (or Windows) for file/folder properties. Can you please clarify? 53 minutes ago, Veritas Roleplay said: Ubuntu linux, apache, mysql, php 7.4
May 18, 20222 yr In looking with SFTP, I see that all files and folders for the software are running under the root user, or at least they are owned by the root user. This is non-standard, and could be the issue. You normally have the files and folders owned by the same server account which actually runs the software. That could be the 'www' or 'apache' user, though it's usually a named account. (For example, the SFTP username you provided.) Please check with your server provider to see what account should own the file structure for the software, then change the files and folders ownership as they indicate. Permissions should remain the same if suexec or suphp is in use, but the ownership needs to be set to the correct account.
May 19, 20222 yr Author Done. Some new issue appeared: IPS\File\Exception: CANNOT_WRITE (3) #0 /var/www/forum.veritas-rp.pl/system/File/File.php(351): IPS\File\_FileSystem->save() #1 /var/www/forum.veritas-rp.pl/system/Theme/Theme.php(5374): IPS\_File::create() #2 /var/www/forum.veritas-rp.pl/system/Theme/Theme.php(2563): IPS\_Theme::writeCss() #3 /var/www/forum.veritas-rp.pl/system/Theme/Theme.php(641): IPS\_Theme->compileCss() #4 /var/www/forum.veritas-rp.pl/applications/core/modules/admin/support/support.php(65): IPS\_Theme->css() #5 /var/www/forum.veritas-rp.pl/system/Dispatcher/Controller.php(101): IPS\core\modules\admin\support\_support->manage() #6 /var/www/forum.veritas-rp.pl/applications/core/modules/admin/support/support.php(48): IPS\Dispatcher\_Controller->execute() #7 /var/www/forum.veritas-rp.pl/system/Dispatcher/Dispatcher.php(153): IPS\core\modules\admin\support\_support->execute() #8 /var/www/forum.veritas-rp.pl/admin/index.php(13): IPS\_Dispatcher->run() #9 {main} Maybe there is some way to backup only users and their posts and create our forum from scratch?
May 19, 20222 yr 4 minutes ago, Veritas Roleplay said: Done. Some new issue appeared: IPS\File\Exception: CANNOT_WRITE (3) #0 /var/www/forum.veritas-rp.pl/system/File/File.php(351): IPS\File\_FileSystem->save() #1 /var/www/forum.veritas-rp.pl/system/Theme/Theme.php(5374): IPS\_File::create() #2 /var/www/forum.veritas-rp.pl/system/Theme/Theme.php(2563): IPS\_Theme::writeCss() #3 /var/www/forum.veritas-rp.pl/system/Theme/Theme.php(641): IPS\_Theme->compileCss() #4 /var/www/forum.veritas-rp.pl/applications/core/modules/admin/support/support.php(65): IPS\_Theme->css() #5 /var/www/forum.veritas-rp.pl/system/Dispatcher/Controller.php(101): IPS\core\modules\admin\support\_support->manage() #6 /var/www/forum.veritas-rp.pl/applications/core/modules/admin/support/support.php(48): IPS\Dispatcher\_Controller->execute() #7 /var/www/forum.veritas-rp.pl/system/Dispatcher/Dispatcher.php(153): IPS\core\modules\admin\support\_support->execute() #8 /var/www/forum.veritas-rp.pl/admin/index.php(13): IPS\_Dispatcher->run() #9 {main} Maybe there is some way to backup only users and their posts and create our forum from scratch? You'll want to check to ensure your theme storage location is writable. It is stating there that it is not. By default, this location is a sub-folder of /uploads so you will want to ensure all sub-folders of /uploads are writable and owner by the same user/group as required by your server. EDIT: to address your backup/restore question, as these are server errors with writing that would likely be a fruitless endeavor, I'm afraid, as you'll likely just encounter this again. Server write issues need to be resolved otherwise, the software will continue to have this issue.