Index: [Article Count Order] [Thread]

Date:  Sat, 9 Aug 2008 22:59:16 +0100
From:  "Paul" <paul (at mark) planetcentral.net>
Subject:  [coba-e:13717] Re: Php Upgrade (and SQL) - HELP PLEASE!!
To:  <coba-e (at mark) bluequartz.org>
Message-Id:  <001f01c8fa6b$2b815500$8283ff00$@net>
In-Reply-To:  <004601c8fa3d$03e7c890$0bb759b0$@net>
References:  <004601c8fa3d$03e7c890$0bb759b0$@net>
X-Mail-Count: 13717

Oops... there it goes...knew i should have waited....

 

Have updated PHP using the guide specified by apc_records here :
http://tinyurl.com/5b4afp

 

Great. It's worked. PHP is updated to 5.2.6. Also it's updated mysql to
5.0.62. AND the admin panel still works...

 

However things seem to have gone wrong. Any pages created by the old php
(4.3.9)  and the internal interface is working fine.

However, anything with PHP in returns a prompt for a download. What i get
seems to be a file containing php code. Just like it's not recognised the
contents of the file.

 

Eg - a mediawiki page starts with :

 

<?php

/**

 * Main wiki script; see docs/design.txt

 * @package MediaWiki

 */

$wgRequestTime = microtime(true);

 

# getrusage() does not exist on the Microsoft Windows platforms, catching
this

if ( function_exists ( 'getrusage' ) ) {

      $wgRUstart = getrusage();

} else {

      $wgRUstart = array();

}

 

I have added the following to http.conf just in case as it wasn't there
beforehand :

 

AddType application/x-httpd-php .php .php4 .php3

AddType application/x-httpd-php-source .phps

 

I'm sure ive seen this problem before, however i cant for the life of me
remember how to fix it. Not sure if it's a config file issue on php
(probably), or a problem with Apache2...

 

PLEASE could someone help - i know this is more of a dev's list, and
apologise now for this intrusion...

 

Thanks

Paul

 

From: Paul [mailto:paul (at mark) planetcentral.net] 
Sent: 09 August 2008 17:29
To: coba-e (at mark) bluequartz.org
Subject: [coba-e:13716] Php Upgrade (and SQL)

 

Guys

 

Just been sat here playing with my server (Non-commercial), and realised
that i'm only running PHP 4.3.9, and also noticed some incredibly antiquated
SQL version. Reasons for this was because i was looking at some software
that requires PHP 5.2.0 or above :(

 

Then checked my finances and found I'm skint until the end of the month at
least :( - skint as in "i'm off of the ready made Smokes and onto Roll your
own now !! " :D

 

Anyone know of anywhere that i might be able to find a pkg upgrade of PHP to
something 5.2.0 or above, and mySQL to something 5+ (are there many
differences between them, or can i just install 5+ and everything should
work ok??)?? Failing this, are there any tutorials about that would detail
the installations of these at all?

 

Thanks Guys :)

 

Paul


	

13717_2.html (attatchment)(tag is disabled)