Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum. |
| Notices |
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
Are you new to LinuxQuestions.org? Visit the following links:
Site Howto |
Site FAQ |
Sitemap |
Register Now
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
 |
GNU/Linux Basic Guide
This 255-page guide will provide you with the keys to understand the philosophy of free software, teach you how to use and handle it, and give you the tools required to move easily in the world of GNU/Linux. Many users and administrators will be taking their first steps with this GNU/Linux Basic guide and it will show you how to approach and solve the problems you encounter.
Click Here to receive this Complete Guide absolutely free. |
|
 |
10-26-2010, 05:51 PM
|
#1
|
|
Member
Registered: Apr 2010
Posts: 35
Rep:
|
Strange PHP problem
I'm migrating a mediawiki install to a new server, everything (files and database) have been moved over, however when bringing up the site I'm presented with an error that states the following
Code:
MediaWiki requires PHP 5.0.0 or higher. You are running PHP 4.3.9.
However from the command line I get
Code:
[bleon]$ php -v
PHP 5.1.6 (cli) (built: Jul 31 2008 00:08:07)
Copyright (c) 1997-2006 The PHP Group
Zend Engine v2.1.0, Copyright (c) 1998-2006 Zend Technologies
Any ideas why mediawiki is still thinking I'm running php4?
|
|
|
|
10-26-2010, 07:19 PM
|
#2
|
|
Senior Member
Registered: Feb 2002
Location: harvard, il
Distribution: Ubuntu 11.4,DD-WRT micro plus ssh,lfs-6.6,Fedora 15,Fedora 16
Posts: 2,900
|
hmm perhaps something to do with the .htaccess?
try adding something like this to the .htaccess file in mediwiki's directory
Code:
<FilesMatch .php>
AddHandler x-httpd-php5 .php
SetEnv PHP_VER 5
</FilesMatch>
|
|
|
|
10-26-2010, 07:39 PM
|
#3
|
|
Member
Registered: Apr 2010
Posts: 35
Original Poster
Rep:
|
No change, I'm still getting an error about running PHP 4.3.9 from MediaWiki.
|
|
|
|
10-27-2010, 03:51 AM
|
#4
|
|
Member
Registered: Apr 2010
Posts: 35
Original Poster
Rep:
|
Is there a way for me to remove php4 entirely from the system and only leave php5?
|
|
|
|
10-27-2010, 03:58 AM
|
#5
|
|
Moderator
Registered: Aug 2002
Posts: 10,689
|
Look at the output of phpinfo() from web page. What version does it output?
|
|
|
|
10-27-2010, 03:28 PM
|
#6
|
|
Member
Registered: Apr 2010
Posts: 35
Original Poster
Rep:
|
Quote:
Originally Posted by michaelk
Look at the output of phpinfo() from web page. What version does it output?
|
Its a machine at work, I'll be able to check it in an hour or so, although I'm fairly certain it will show up as 4.3.9 as it is to MediaWiki. I just need to tell apache to use php5 which is installed on the system.
|
|
|
|
10-27-2010, 05:54 PM
|
#7
|
|
Member
Registered: Apr 2010
Posts: 35
Original Poster
Rep:
|
Confirmed phpinfo(); returns v4.3.9
|
|
|
|
10-27-2010, 06:06 PM
|
#8
|
|
Member
Registered: Apr 2010
Posts: 35
Original Poster
Rep:
|
I am officially a moron... I forgot to reload apache after upgrading php to php5, quick reload fixed the problem...
|
|
|
|
10-27-2010, 06:07 PM
|
#9
|
|
Senior Member
Registered: Oct 2009
Location: Wroclaw, Poland
Distribution: Kubuntu
Posts: 1,044
|
Deleted
Last edited by eSelix; 10-27-2010 at 06:09 PM.
Reason: Problem already solved
|
|
|
|
10-27-2010, 06:46 PM
|
#10
|
|
Moderator
Registered: Aug 2002
Posts: 10,689
|
Well done.
|
|
|
|
| Thread Tools |
Search this Thread |
|
|
|
Posting Rules
|
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts
HTML code is Off
|
|
|
All times are GMT -5. The time now is 01:32 AM.
|
|
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.
|
Latest Threads
LQ News
|
|