Hello all, Recently I tried to install media wiki on my server. I have php 5.2.12 I wasn't sure if I needed 5.3.1 as a minimum or if there was an earlier version that worked with php 5.2.x I got this error when I browsed to the folder after uploading the software:
Parse error: syntax error, unexpected T_STRING, expecting T_OLD_FUNCTION or T_FUNCTION or T_VAR or '}' in /home2/words/public_html/wordopedia/install-utils.inc on line 118 I put it in a folder that I renamed wordopedia. Any ideas? Bruce
On 16/07/10 21:20, B. M. Whealton wrote:
Hello all, Recently I tried to install media wiki on my server. I have php 5.2.12 I wasn't sure if I needed 5.3.1 as a minimum or if there was an earlier version that worked with php 5.2.x I got this error when I browsed to the folder after uploading the software:
Parse error: syntax error, unexpected T_STRING, expecting T_OLD_FUNCTION or T_FUNCTION or T_VAR or '}' in /home2/words/public_html/wordopedia/install-utils.inc on line 118 I put it in a folder that I renamed wordopedia. Any ideas? Bruce
It seems you renamed the maintenance directory.. that should be kept as the same name, MediaWiki uses has a structure that needs to be kept, or it starts breaking things, because stuff is not where it thinks it is..
Your PHP version should be fine, see http://www.mediawiki.org/wiki/Manual:Installation_requirements
-- Lewis Cawte
On 16/07/10 21:25, Lewis Cawte wrote:
On 16/07/10 21:20, B. M. Whealton wrote:
Hello all, Recently I tried to install media wiki on my server. I have php 5.2.12 I wasn't sure if I needed 5.3.1 as a minimum or if there was an earlier version that worked with php 5.2.x I got this error when I browsed to the folder after uploading the software:
Parse error: syntax error, unexpected T_STRING, expecting T_OLD_FUNCTION or T_FUNCTION or T_VAR or '}' in /home2/words/public_html/wordopedia/install-utils.inc on line 118 I put it in a folder that I renamed wordopedia. Any ideas? Bruce
It seems you renamed the maintenance directory.. that should be kept as the same name, MediaWiki uses has a structure that needs to be kept, or it starts breaking things, because stuff is not where it thinks it is..
Your PHP version should be fine, see http://www.mediawiki.org/wiki/Manual:Installation_requirements
-- Lewis Cawte
Ignore that, I'm looking at MediaWiki 1.16 :/
It actually just worked. I renamed the folder mediawiki. When I just extracted it, it was mediawiki-1.15.4 which was not the best name for a folder. So, it's installed. Bruce
On 16/07/10 21:20, B. M. Whealton wrote:
Hello all, Recently I tried to install media wiki on my server. I have php 5.2.12 I wasn't sure if I needed 5.3.1 as a minimum or if there was an earlier version that worked with php 5.2.x I got this error when I browsed to the folder after uploading the software:
Parse error: syntax error, unexpected T_STRING, expecting T_OLD_FUNCTION or T_FUNCTION or T_VAR or '}' in /home2/words/public_html/wordopedia/install-utils.inc on line 118 I put it in a folder that I renamed wordopedia. Any ideas? Bruce
Hi Bruce,
Where did you get the copy of MediaWiki you are working with? Do you know which version it is? What operating system are you using?
A bit more info and we might be able to come up with something! -Courtney
Christensen, Courtney wrote:
On 16/07/10 21:20, B. M. Whealton wrote:
Hello all, Recently I tried to install media wiki on my server. I have php 5.2.12 I wasn't sure if I needed 5.3.1 as a minimum or if there was an earlier version that worked with php 5.2.x I got this error when I browsed to the folder after uploading the software:
Parse error: syntax error, unexpected T_STRING, expecting T_OLD_FUNCTION or T_FUNCTION or T_VAR or '}' in /home2/words/public_html/wordopedia/install-utils.inc on line 118 I put it in a folder that I renamed wordopedia. Any ideas? Bruce
Hi Bruce,
Where did you get the copy of MediaWiki you are working with? Do you know which version it is? What operating system are you using?
A bit more info and we might be able to come up with something! -Courtney
MediaWiki-l mailing list MediaWiki-l@lists.wikimedia.org https://lists.wikimedia.org/mailman/listinfo/mediawiki-l
Thanks for the replies. I downloaded the latest from the media wiki website. It is version 1.15.4. Here is the site: http://www.mediawiki.org/wiki/MediaWiki
My hosting provider wants to have me pay for much, much higher price dedicated hosting to get to the higher version of php as they would have to upgrade things for everyone or something like that. I have not had a problem with any modern application so perhaps I am doing something wrong. It seems unusual that I cannot rename the top directory to something of my choosing. Oh, well. I'll change it back and see how it goes. My name wasn't 100% original anyway :-) There is a wordopedia but my website is about writing and poetry and is called Word Salad so that seemed like the best name. Bruce
You probably have both PHP 4.x and 5.x available, with PHP 4 serving as the default. See what happens when you visit config/index.php5 instead of config/index.php. If that makes it work, you can probably fix this by creating an .htaccess file containing something like AddType x-mapp-php5 .php AddHandler x-mapp-php5 .php
mediawiki-l@lists.wikimedia.org