Hi everyone!
First of all I explain the problem. I installed and configured mediawiki and it works so far. The only problem is uploading files.
The server used here is used by a lot of users. Therefore it is configurated in a way that makes it necessary for all php scripts that do file operations (such as uploading images) to be renamed to cgi and add a new line in the beginning that calls the correct interpreter for this cgi script. Only this way safe mode restrictions can be handled on this machine.
A disadvantage of this is that cgi scrips are ran more slowly than php scripts on this server. Therefore it would be best to use index.cgi for uploading images and index.php for all other purposes.
I tried to use index.cgi only: I renamed index.php to index.cgi and added the interpretar line into it. Further I replaced 'index.php' calls in all media wiki script files by 'index.cgi' calls. But it didn't work: when I opend the index.cgi in a browser (I tried several browsers) it took some time and then the following error was shown: Redirection limit for this URL exceeded.
Is there a simple way to make changes to media wiki such that it is started as a cgi and not as php script file? Does anyone have experience with this?
Thanks, MB ______________________________________________________________ Verschicken Sie romantische, coole und witzige Bilder per SMS! Jetzt bei WEB.DE FreeMail: http://f.web.de/?mc=021193
Change the value of $wgScript and related variables in LocalSettings.php to prevent MediaWiki from redirecting back to index.php.
Rob Church
On 17/01/06, Martin Baumann mailsgetlost@web.de wrote:
Hi everyone!
First of all I explain the problem. I installed and configured mediawiki and it works so far. The only problem is uploading files.
The server used here is used by a lot of users. Therefore it is configurated in a way that makes it necessary for all php scripts that do file operations (such as uploading images) to be renamed to cgi and add a new line in the beginning that calls the correct interpreter for this cgi script. Only this way safe mode restrictions can be handled on this machine.
A disadvantage of this is that cgi scrips are ran more slowly than php scripts on this server. Therefore it would be best to use index.cgi for uploading images and index.php for all other purposes.
I tried to use index.cgi only: I renamed index.php to index.cgi and added the interpretar line into it. Further I replaced 'index.php' calls in all media wiki script files by 'index.cgi' calls. But it didn't work: when I opend the index.cgi in a browser (I tried several browsers) it took some time and then the following error was shown: Redirection limit for this URL exceeded.
Is there a simple way to make changes to media wiki such that it is started as a cgi and not as php script file? Does anyone have experience with this?
Thanks, MB ______________________________________________________________ Verschicken Sie romantische, coole und witzige Bilder per SMS! Jetzt bei WEB.DE FreeMail: http://f.web.de/?mc=021193
Wikitech-l mailing list Wikitech-l@wikimedia.org http://mail.wikipedia.org/mailman/listinfo/wikitech-l
I did this. I had to change the rights of index.cgi and the wiki directory. Now it works. I can upload files!!! But at the same time the design changed. The skin is 'MonoBook' but it looks like 'Simple'. I have no idea where this came from.
Has anyone had similar problems yet? Any idea what could go wrong?
Thanks, MB
Rob Church schrieb:
Change the value of $wgScript and related variables in LocalSettings.php to prevent MediaWiki from redirecting back to index.php.
Rob Church
On 17/01/06, Martin Baumann mailsgetlost@web.de wrote:
Hi everyone!
First of all I explain the problem. I installed and configured mediawiki and it works so far. The only problem is uploading files.
The server used here is used by a lot of users. Therefore it is configurated in a way that makes it necessary for all php scripts that do file operations (such as uploading images) to be renamed to cgi and add a new line in the beginning that calls the correct interpreter for this cgi script. Only this way safe mode restrictions can be handled on this machine.
A disadvantage of this is that cgi scrips are ran more slowly than php scripts on this server. Therefore it would be best to use index.cgi for uploading images and index.php for all other purposes.
I tried to use index.cgi only: I renamed index.php to index.cgi and added the interpretar line into it. Further I replaced 'index.php' calls in all media wiki script files by 'index.cgi' calls. But it didn't work: when I opend the index.cgi in a browser (I tried several browsers) it took some time and then the following error was shown: Redirection limit for this URL exceeded.
Is there a simple way to make changes to media wiki such that it is started as a cgi and not as php script file? Does anyone have experience with this?
Thanks, MB ______________________________________________________________ Verschicken Sie romantische, coole und witzige Bilder per SMS! Jetzt bei WEB.DE FreeMail: http://f.web.de/?mc=021193
Wikitech-l mailing list Wikitech-l@wikimedia.org http://mail.wikipedia.org/mailman/listinfo/wikitech-l
Wikitech-l mailing list Wikitech-l@wikimedia.org http://mail.wikipedia.org/mailman/listinfo/wikitech-l
On 19/01/06, Martin Baumann mailsgetlost@web.de wrote:
But at the same time the design changed. The skin is 'MonoBook' but it looks like 'Simple'. I have no idea where this came from.
Sounds like either the CSS files, or a reference to them, got changed/out of sync somewhere.
First, make sure it's not a caching issue - get a page preview (so no internal caching) and do a "hard refresh" (hold down ctrl or shift while refreshing, depending on browser) to force your browser to reload everything.
Second, have a look at what CSS files are mentionned in the HTML source of a page, and see if the paths being referred to are correct. Also try loading those exact URLs into a browser, to make sure those aren't suffering from redirection problems.
-- Rowan Collins BSc [IMSoP]
I downloaded the latest version of mediawiki and did all configuring again - now it works.
Thanks, MB
Rowan Collins schrieb:
On 19/01/06, Martin Baumann mailsgetlost@web.de wrote:
But at the same time the design changed. The skin is 'MonoBook' but it looks like 'Simple'. I have no idea where this came from.
Sounds like either the CSS files, or a reference to them, got changed/out of sync somewhere.
First, make sure it's not a caching issue - get a page preview (so no internal caching) and do a "hard refresh" (hold down ctrl or shift while refreshing, depending on browser) to force your browser to reload everything.
Second, have a look at what CSS files are mentionned in the HTML source of a page, and see if the paths being referred to are correct. Also try loading those exact URLs into a browser, to make sure those aren't suffering from redirection problems.
-- Rowan Collins BSc [IMSoP] _______________________________________________ Wikitech-l mailing list Wikitech-l@wikimedia.org http://mail.wikipedia.org/mailman/listinfo/wikitech-l
Hi,
I played along with user rights of the mediawiki directories and files. I did a chmod -R o-r * After that the wiki looked again like 'Simple'-skin. I changed the thing back and voila 'MonoBook'-skin was back!
Maybe someone may find this information helpful.
MB
Martin Baumann schrieb:
I did this. I had to change the rights of index.cgi and the wiki directory. Now it works. I can upload files!!! But at the same time the design changed. The skin is 'MonoBook' but it looks like 'Simple'. I have no idea where this came from.
Has anyone had similar problems yet? Any idea what could go wrong?
Thanks, MB
Rob Church schrieb:
Change the value of $wgScript and related variables in LocalSettings.php to prevent MediaWiki from redirecting back to index.php.
Rob Church
On 17/01/06, Martin Baumann mailsgetlost@web.de wrote:
Hi everyone!
First of all I explain the problem. I installed and configured mediawiki and it works so far. The only problem is uploading files.
The server used here is used by a lot of users. Therefore it is configurated in a way that makes it necessary for all php scripts that do file operations (such as uploading images) to be renamed to cgi and add a new line in the beginning that calls the correct interpreter for this cgi script. Only this way safe mode restrictions can be handled on this machine.
A disadvantage of this is that cgi scrips are ran more slowly than php scripts on this server. Therefore it would be best to use index.cgi for uploading images and index.php for all other purposes.
I tried to use index.cgi only: I renamed index.php to index.cgi and added the interpretar line into it. Further I replaced 'index.php' calls in all media wiki script files by 'index.cgi' calls. But it didn't work: when I opend the index.cgi in a browser (I tried several browsers) it took some time and then the following error was shown: Redirection limit for this URL exceeded.
Is there a simple way to make changes to media wiki such that it is started as a cgi and not as php script file? Does anyone have experience with this?
Thanks, MB ______________________________________________________________ Verschicken Sie romantische, coole und witzige Bilder per SMS! Jetzt bei WEB.DE FreeMail: http://f.web.de/?mc=021193
Wikitech-l mailing list Wikitech-l@wikimedia.org http://mail.wikipedia.org/mailman/listinfo/wikitech-l
Wikitech-l mailing list Wikitech-l@wikimedia.org http://mail.wikipedia.org/mailman/listinfo/wikitech-l
Wikitech-l mailing list Wikitech-l@wikimedia.org http://mail.wikipedia.org/mailman/listinfo/wikitech-l
wikitech-l@lists.wikimedia.org