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

Wikimedia Bugzilla is closed!

Wikimedia migrated from Bugzilla to Phabricator. Bug reports are handled in Wikimedia Phabricator.
This static website is read-only and for historical purposes. It is not possible to log in and except for displaying bug reports and their history, links might be broken. See T13933, the corresponding Phabricator task for complete and up-to-date bug report information.
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...
Status: RESOLVED FIXED
Product: MediaWiki
Classification: Unclassified
Installer (Other open bugs)
1.11.x
PC Linux
: Normal critical (vote)
: ---
Assigned To: Nobody - You can work on this!
:
Depends on:
Blocks:
  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: ---


Attachments

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: 

http://www.shoereview.com.au/phpversion.php5
http://www.shoereview.com.au/phpversionv4.php
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.


Navigation
Links