After moving server, gets jamroom 403 and 500 error

Elise
Elise
@elise
6 months ago
249 posts
I recently moved server on the same ISP. My main web site work, so propagation seems fine.
But my jamroom subdomain is very broken

Home page gets 403 and forums get a 500.
https://empathcommunity.eliselebeau.com/

What might be the cause of this and how could I fix it?
Thanks!
updated by @elise: 24 Jun 2021 08:47:25AM
douglas
@douglas
6 months ago
2,698 posts
Hello,

A 500 error message is a server error, you'll want to contact your hosting provider about that.

A 403 error message is a forbidden issue, the .htaccess file may not be correct or file/folder permissions may not be correct.

Check that you have the correct .htaccess file in the Jamroom install root directory and make sure your file/folder permissions are set correctly.

Permission on files should be 644 and folders should be 755

Hope this helps!


--

Douglas Hackney
Jamroom Team - Designer/Developer/Support
FAQ-Docs-Help Videos
Elise
Elise
@elise
6 months ago
249 posts
Mmmm. Still forbidden.
Folders are 755 and files are 644.

The jamroom .htaccess file looks like it was modified on the day of the server move.
Does any of this look weird? This is not my area of expertise. I appreciate your help!


[code]
# BEGIN Force HTTPS
RewriteEngine On
RewriteCond $1 !^(/.well-known)
RewriteCond %{HTTP_HOST} ^empathcommunity.eliselebeau\.com [NC,OR]
RewriteCond %{HTTP_HOST} ^www.empathcommunity.eliselebeau\.com [NC]
RewriteCond %{SERVER_PORT} 80
RewriteRule ^(.*)$ <a href="https://www.empathcommunity.eliselebeau.com/$1" target="_blank" rel="nofollow">https://www.empathcommunity.eliselebeau.com/$1</a> [R,L]
# END Force HTTPS

# Jamroom 5 Apache .htaccess file
DirectoryIndex index.html index.php sitemap.xml modules/jrCore/router.php

Options +FollowSymLinks
Options -MultiViews -Indexes

# Use ETags
<IfModule mod_headers.c>
Header unset ETag
FileETag None
# Expires for CSS, JS and Images
<FilesMatch ".(ico|jpg|jpeg|png|gif|js|css|swf)$">
Header set Expires "Thu, 15 Apr 2018 20:00:00 GMT"
</FilesMatch>
<FilesMatch ".(eot|ttf|otf|woff)">
Header set Access-Control-Allow-Origin "*"
</FilesMatch>
</IfModule>

# Compress everything we can
<IfModule mod_filter.c>
AddOutputFilterByType DEFLATE text/html text/plain text/xml text/css text/javascript text/javascript-x application/javascript
</IfModule>

# All requests through the router
<IfModule mod_rewrite.c>
RewriteEngine On
RewriteCond %{REQUEST_FILENAME} !-d
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-l
RewriteRule ^(.*)$ modules/jrCore/router.php?_uri=$1 [NC,L]
</IfModule>

RewriteRule .*\.(jpg|jpeg|gif|png|bmp)$ - [F,NC]


# php -- BEGIN cPanel-generated handler, do not edit
# Set the “ea-php74” package as the default “PHP” programming language.
<IfModule mime_module>
AddHandler application/x-httpd-ea-php74 .php .php7 .phtml
</IfModule>
# php -- END cPanel-generated handler, do not edit

# BEGIN cPanel-generated php ini directives, do not edit
# Manual editing of this file may result in unexpected behavior.
# To make changes to this file, use the cPanel MultiPHP INI Editor (Home >> Software >> MultiPHP INI Editor)
# For more information, read our documentation ( <a href="https://go.cpanel.net/EA4ModifyINI" target="_blank" rel="nofollow">https://go.cpanel.net/EA4ModifyINI</a>)
<IfModule php7_module>
php_flag display_errors Off
php_value max_execution_time 300
php_value max_input_time 300
php_value max_input_vars 4000
php_value memory_limit 2048M
php_value post_max_size 256M
php_value session.gc_maxlifetime 1440
php_value session.save_path "/var/cpanel/php/sessions/ea-php74"
php_value upload_max_filesize 256M
php_flag zlib.output_compression On
</IfModule>
<IfModule lsapi_module>
php_flag display_errors Off
php_value max_execution_time 300
php_value max_input_time 300
php_value max_input_vars 4000
php_value memory_limit 2048M
php_value post_max_size 256M
php_value session.gc_maxlifetime 1440
php_value session.save_path "/var/cpanel/php/sessions/ea-php74"
php_value upload_max_filesize 256M
php_flag zlib.output_compression On
</IfModule>
# END cPanel-generated php ini directives, do not edit
[code]
Elise
Elise
@elise
6 months ago
249 posts
Still no luck. The hosting company is struggling to figure out what is wrong.
But this is the error

[Thu Mar 25 17:47:15.461078 2021] [autoindex:error] [pid 67261:tid 47594357221120] [client 173.231.218.25:0] AH01276: Cannot serve directory /home/elisel5/public_html/jamroom/: No matching DirectoryIndex (index.html,index.php,sitemap.xml,modules/jrCore/router.php) found, and server-generated directory index forbidden by Options directive
Elise
Elise
@elise
6 months ago
249 posts
I seem to be experiencing this problem:
https://www.jamroom.net/the-jamroom-network/forum/installation-and-configuration/11474/moved-to-subdomain-403-error

Exact same symptoms.

1) I deleted the data/cache
2) I create a copy of each version folder but named it jrXXX to match the old symlink pattern.

Now I don't get a 403 but I get a 500 server error.

Is there anything that I need to clear up?
Elise
Elise
@elise
6 months ago
249 posts
When I download the error from the server, I see this stack.

[26-Mar-2021 00:48:38 UTC] PHP Deprecated:  Array and string offset access syntax with curly braces is deprecated in /home/elisel5/public_html/jamroom/install.php on line 543
[26-Mar-2021 00:48:38 UTC] PHP Fatal error:  require_once(): Failed opening required '/home/elisel5/public_html/jamroom/modules/jrCore/include.php' (include_path='.:/opt/cpanel/ea-php74/root/usr/share/pear') in /home/elisel5/public_html/jamroom/install.php on line 71
[25-Mar-2021 18:34:55 America/Vancouver] PHP Fatal error:  Uncaught Error: Call to undefined function jrUser_session_start() in /home/elisel5/public_html/jamroom/modules/jrCore/router.php:99
Stack trace:
#0 {main}
  thrown in /home/elisel5/public_html/jamroom/modules/jrCore/router.php on line 99
[25-Mar-2021 18:35:00 America/Vancouver] PHP Fatal error:  Uncaught Error: Call to undefined function jrUser_session_start() in /home/elisel5/public_html/jamroom/modules/jrCore/router.php:99
Elise
Elise
@elise
6 months ago
249 posts
When I run repair, I get this:
Fatal error: Cannot redeclare jrFollower_meta() (previously declared in /home/elisel5/public_html/jamroom/modules/jrFollower/include.php:50) in /home/elisel5/public_html/jamroom/modules/jrForum/include.php on line 50
Elise
Elise
@elise
6 months ago
249 posts
I removed the offending jrFollower module which now allows me to login to jamroom.

However, I have lost all my forum discussion.
I'm sure there are in the database but they are not showing up here:
https://empathcommunity.eliselebeau.com/community/forum

Any hints on what I could do next?

Thank you
Elise
Elise
@elise
6 months ago
249 posts
The hosting company had 3 people trying to fix this. They spent a couple of hours on it before giving up.
When they went back to my previous server (before the move), it was broken in the same. So even the backup didn't work. :(
douglas
@douglas
6 months ago
2,698 posts
Hello,

You have some PHP functions missing

https://empathcommunity.eliselebeau.com/core/system_check

You'll want to get those enabled as that may be part of your issues.

Hope this helps!


--

Douglas Hackney
Jamroom Team - Designer/Developer/Support
FAQ-Docs-Help Videos

Tags