• This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn more.

XF 1.2 New host - Internal Server Error

sbj

Well-known member
#1
Hello,

after one year abstinence I want to restart my project.

So I had to move from my old hosting company to a new one.

In cpanel I restored my home directory and database.

I can visit my website, the main page is functioning. But anything else doesnt fuction. I cant login, or go to a topic.

Internal Server Error
The server encountered an internal error or misconfiguration and was unable to complete your request.


I dont know what I do wrong. Please help me.

Regards.
 

sbj

Well-known member
#3
This happens now after renamed it.

Not Found
The requested URL /online/ was not found on this server.

Additionally, a 404 Not Found error was encountered while trying to use an ErrorDocument to handle the request.
 

Mr. Goodie2Shoes

Well-known member
#4
that means there's some variable in your .htaccess file which your new host does not support... Can paste the contents of the .htaccess file here for me to look at... remember to remove any sensitive info present ;)
 

Brogan

XenForo moderator
Staff member
#5
Inspecting the server error logs should help with identifying the cause.

However, log in to the ACP directly and disable Friendly URLs and test again.
 

sbj

Well-known member
#6
Code:
#    Mod_security can interfere with uploading of content such as attachments. If you
#    cannot attach files, remove the "#" from the lines below.
#<IfModule mod_security.c>
#    SecFilterEngine Off
#    SecFilterScanPOST Off
#</IfModule>

ErrorDocument 401 default
ErrorDocument 403 default
ErrorDocument 404 default
ErrorDocument 500 default

<IfModule mod_rewrite.c>
    RewriteEngine On

    #    If you are having problems with the rewrite rules, remove the "#" from the
    #    line that begins "RewriteBase" below. You will also have to change the path
    #    of the rewrite to reflect the path to your XenForo installation.
    RewriteBase /xenforo
    RewriteBase /public

    #    This line may be needed to enable WebDAV editing with PHP as a CGI.
    #RewriteRule .* - [E=HTTP_AUTHORIZATION:%{HTTP:Authorization}]

    RewriteCond %{REQUEST_FILENAME} -f [OR]
    RewriteCond %{REQUEST_FILENAME} -l [OR]
    RewriteCond %{REQUEST_FILENAME} -d
    RewriteRule ^.*$ - [NC,L]
    RewriteRule ^(data/|js/|styles/|install/|favicon\.ico|crossdomain\.xml|robots\.txt) - [NC,L]
    RewriteRule ^.*$ index.php [NC,L]
</IfModule>
AuthUserFile "/home/.../.htpasswds/public_html/passwd"
AuthName "public_html"
AuthType Basic
require valid-user


How can I login into ACP directly?
 

sbj

Well-known member
#8
Wow, you are the best.

Yes, I could directly login and I disabled friendly URLs and now it works.

Ok, nice. Thank you.

How can I make it work with friendly URLs?
 

Brogan

XenForo moderator
Staff member
#9
You will need to configure the server.

Contact your host to confirm that they have mod_rewrite installed and allow overrides via an .htaccess file.
 

Brogan

XenForo moderator
Staff member
#11
You can try with a default .htaccess and see if that works.

Code:
#    Mod_security can interfere with uploading of content such as attachments. If you
#    cannot attach files, remove the "#" from the lines below.
#<IfModule mod_security.c>
#    SecFilterEngine Off
#    SecFilterScanPOST Off
#</IfModule>

ErrorDocument 401 default
ErrorDocument 403 default
ErrorDocument 404 default
ErrorDocument 500 default

<IfModule mod_rewrite.c>
    RewriteEngine On

    #    If you are having problems with the rewrite rules, remove the "#" from the
    #    line that begins "RewriteBase" below. You will also have to change the path
    #    of the rewrite to reflect the path to your XenForo installation.
    #RewriteBase /xenforo

    #    This line may be needed to enable WebDAV editing with PHP as a CGI.
    #RewriteRule .* - [E=HTTP_AUTHORIZATION:%{HTTP:Authorization}]

    RewriteCond %{REQUEST_FILENAME} -f [OR]
    RewriteCond %{REQUEST_FILENAME} -l [OR]
    RewriteCond %{REQUEST_FILENAME} -d
    RewriteRule ^.*$ - [NC,L]
    RewriteRule ^(data/|js/|styles/|install/|favicon\.ico|crossdomain\.xml|robots\.txt) - [NC,L]
    RewriteRule ^.*$ index.php [NC,L]
</IfModule>