Last modified: 2010-05-15 15:59:50 UTC

Wikimedia Bugzilla is closed!

Wikimedia has migrated from Bugzilla to Phabricator. Bug reports should be created and updated in Wikimedia Phabricator instead. Please create an account in Phabricator and add your Bugzilla email address to it.
Wikimedia Bugzilla is read-only. If you try to edit or create any bug report in Bugzilla you will be shown an intentional error message.
In order to access the Phabricator task corresponding to a Bugzilla report, just remove "static-" from its URL.
You could still run searches in Bugzilla or access your list of votes but bug reports will obviously not be up-to-date in Bugzilla.
Bug 11933 - After install using the ".php5" extension (server runs php 4 with ".php" extensions) proceeding to the main wiki page results in an error
After install using the ".php5" extension (server runs php 4 with ".php" exte...
Product: MediaWiki
Classification: Unclassified
Installer (Other open bugs)
PC Linux
: Normal critical (vote)
: ---
Assigned To: Nobody - You can work on this!
Depends on:
  Show dependency treegraph
Reported: 2007-11-11 10:43 UTC by Tyson
Modified: 2010-05-15 15:59 UTC (History)
2 users (show)

See Also:
Web browser: ---
Mobile Platform: ---
Assignee Huggle Beta Tester: ---


Description Tyson 2007-11-11 10:43:43 UTC
After install using the ".php5" extension (server runs php 4 with ".php" extensions) proceeding to the main wiki page results in an error:

Parse error: syntax error, unexpected T_STRING, expecting T_OLD_FUNCTION or T_FUNCTION or T_VAR or '}' in /usr/local/pem/vhosts/107170/webspace/httpsdocs/wiki/includes/Exception.php on line 160

I was under the impression that php include files do not need the .php5 extension, but it seems that the server is still parsing it using php v4.

My phpinfo files:
Comment 1 Jon V. 2007-12-04 20:15:39 UTC
my guess is you need to look at Apache's config file "httpd.conf" in the /conf directory.

Apache controls which version of PHP is associated with the file extensions ".php", ".php4", & ".php5".

Do a Google search on "apache php4 php5" to get some configuration advice.
Comment 2 Roan Kattouw 2007-12-04 20:33:22 UTC
Have you set $wgScriptExtension = ".php5"; in LocalSettings.php ?
Comment 3 Brion Vibber 2007-12-05 20:46:53 UTC
Also check that index.php5 actually works; eg if just the directory index default is loading up the index.php in PHP4.
Comment 4 Aaron Schulz 2008-10-13 04:52:22 UTC
Is this still a problem? Is $wgScriptExtension and the directory index set?
Comment 5 Aaron Schulz 2008-10-13 04:52:53 UTC
Opps, didn't mean to close here.
Comment 6 Tyson 2008-10-13 14:06:03 UTC
hi aaron, i have tried again recently and it has worked successfully on the stable latest version with the same setup.

Note You need to log in before you can comment on or make changes to this bug.