Invision Community 4: SEO, prepare for v5 and dormant account notifications By Matt Monday at 02:04 PM
Veritas Roleplay Posted May 12, 2022 Posted May 12, 2022 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?
Marc Posted May 12, 2022 Posted May 12, 2022 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
Veritas Roleplay Posted May 12, 2022 Author Posted May 12, 2022 As mentioned before, it's just a security update. After performing this update admin panel appears as:
Marc Posted May 12, 2022 Posted May 12, 2022 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.
Veritas Roleplay Posted May 12, 2022 Author Posted May 12, 2022 (edited) Well... Only access details that are missing: Maybe because there is no any additional .htaccess access protection. Edited May 12, 2022 by Veritas Roleplay misspell
Marc Posted May 12, 2022 Posted May 12, 2022 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?
Veritas Roleplay Posted May 18, 2022 Author Posted May 18, 2022 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
Mark H Posted May 18, 2022 Posted May 18, 2022 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.
Veritas Roleplay Posted May 18, 2022 Author Posted May 18, 2022 Hello Mark I'm right after changing each folders, subfolders and files to specific permissions. For now the problem is:
Mark H Posted May 18, 2022 Posted May 18, 2022 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?
Veritas Roleplay Posted May 18, 2022 Author Posted May 18, 2022 Yeah, I did. I'ts odd: Changing permissions or deleting .htaccess does not change anything
Mark H Posted May 18, 2022 Posted May 18, 2022 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.
Mark H Posted May 18, 2022 Posted May 18, 2022 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?
Randy Calvert Posted May 18, 2022 Posted May 18, 2022 (edited) 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, 2022 by Randy Calvert Veritas Roleplay 1
Veritas Roleplay Posted May 18, 2022 Author Posted May 18, 2022 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
Mark H Posted May 18, 2022 Posted May 18, 2022 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.
Veritas Roleplay Posted May 19, 2022 Author Posted May 19, 2022 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?
Jim M Posted May 19, 2022 Posted May 19, 2022 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.
Recommended Posts