Topic on Project:Support desk

[RESOLVED] Internal Server Error

23
95.23.160.109 (talkcontribs)

Hi everybody,

I'm trying to install Mediawiki in my server, but I can't do it. When I finnished to install appears the next error:


Internal Server Error

Redirect loop detected! This means the wiki got confused about what page was requested; this sometimes happens when moving a wiki to a new server or changing the server configuration. Your web server was detected as possibly not supporting URL path components (PATH_INFO) correctly; check your LocalSettings.php for a customized $wgArticlePath setting and/or toggle $wgUsePathInfo to true.


When I add the variables $wgUsePathInfo and $wgArticlePath to the LocalSettings.php seems to be fixed the issue, but the Mediawiki have not any style associated.

Note: I really don't know wich value should have the variable $wgArticlePath, maybe that's the problem.

INFO:

  • Mediawiki: 1.20.5
  • PHP: 5.3.21
  • MySQL: 5.1.65-cll
  • URL: www.wiki.inisig.com

Thanks!!

Marcusdesto (talkcontribs)

Hi,

BTW: you posted your problem twice. Please, watch it. I removed your double post. ;)

What HTTPD are you using? Apache/NginX/IIS/...?

Regards, Marcus

95.23.160.109 (talkcontribs)

Sorry!! I didn't realize about it :S

I don't really know what you mean, but i think is this:

  • Apache 2.2.23
Marcusdesto (talkcontribs)
95.23.160.109 (talkcontribs)

I really don't know it's a shared server, in the stats only appears this:

  • Architecture: x86_64
  • Operative System: linux
  • Kernel: 2.6.32-19-pve

Is this enough info? If not I can ask to the admin.

Thaks!!!

Marcusdesto (talkcontribs)

Yes, please, ask the admin what distro he is using (debian, ...).

95.23.175.96 (talkcontribs)

Sorry for the delay, the distro is a CentOS, why is so essential this info?

188.79.190.25 (talkcontribs)

Can anyone help me, please??

88.130.105.6 (talkcontribs)

Let me summarize quickly:

You are running on Apache and directly after installation you get a redirect loop.

I would search the problem in the file .htaccess. Do you have one in the root folder of your MediaWiki installation? If so: What is in it?

You said:

> When I add the variables $wgUsePathInfo and $wgArticlePath to the LocalSettings.php seems to be fixed the issue, but the Mediawiki have not any style associated.

That sounds like it is an improvement compared to what you had before. You can see what you should set for these variables here: $wgArticlePath and $wgUsePathInfo. Do you have a URL, where I can see this state? Without seeing it I guess that you cannot access the file load.php with the webbrowser. This problem in most cases is caused by the fact that requests to load.php are redirected to the MediaWiki main PHP file, which finally returns a MediaWiki page. The expected output however are CSS styles.

To fix the issue you have to add a RewriteRule in the file .htaccess. Change your .htaccess file to make sure that calls to load.php (and to api.php btw.) are not rewritten.

RewriteEngine On
RewriteRule ^(api|load)\.php - [L]
...

After that load.php should return the right contents and your wiki should be styled.

95.21.96.199 (talkcontribs)

I don't find the .htacces file, maybe that's the problem... don't exist. How can I create one?. The URL: www.wiki.inisig.com

88.130.105.6 (talkcontribs)

You can create one locally (won't work on Windows) or upload a file with another name and rename it when you have it on the server. Or maybe your FTP program allows you to create files on the server and provide a name there.

After checking on your server, the problem seems to be kind of strange: When you only access load.php without any parameters, you do get the correct output.

But when the same URL is called with parameters, like it is in the source code of your wiki pages, e.g. here, then you do not get the CSS styles, but a redirect to main Page. This should not happen. You should still get some kind of CSS styles here.

95.21.96.199 (talkcontribs)

What should I write in this file?, is what i really mean, sorry :)


Btw I have acces to the server, i can create, edit or delete files.

88.130.105.6 (talkcontribs)

You can start with this content:

RewriteEngine On
RewriteRule ^(api|load)\.php - [L]

This stops Apache from rewriting requests to the files load.php and api.php.

However, the more I think about it, I am not really sure, if this actually is (only) an access problem to these files; I mean calling load.php without parameters does work. Maybe the real problem really are the variables, which you mentioned, but please try the Apache stuff first. Calls to load.php and api.php should never be redirected. Fixing this won't harm anything else.

95.21.96.199 (talkcontribs)

Seemed worked for a while, but when I tried to edit a page, everything messed up again, all the styles have gone again...

88.130.105.6 (talkcontribs)

As far as I see, the styles are there now.

Can you give a link, where this does not work? When I try to edit a page I do still see all the styles...

95.21.96.199 (talkcontribs)

It's mess up when I login, if not it works fine. When i close the login everything looks fine again.

188.79.188.63 (talkcontribs)

Only messed up with my admin account, I've create another one to test it, and everything works fine. :S ?????

88.130.105.6 (talkcontribs)

And does it not work only on the Login page or when you edit some pages or all pages or are styles missing always when you are logged in?

I cannot reproduce the problem: I have just logged in and edited a page and it works correctly. Styles are there nicely. Maybe you have a problem with your browser cache?

188.79.188.63 (talkcontribs)

It's a problem with my admin account, I've tested in other computer, and happened the same, everything works fine until I login with my admin account, then the mess happen, if I login with another account, all is fine.

88.130.105.6 (talkcontribs)

Log in with the admin account and try visiting this link. There you can reset your account settings.

188.79.188.63 (talkcontribs)

Fixed!!!!! Thanks a lot for your patience!!! I'm very grateful!!

95.23.175.96 (talkcontribs)
Reply to "[RESOLVED] Internal Server Error"