Talk:PHP configuration

File uploads with safemode on worked for me. The uploads only failed if apache was the owner of the directories.

The PHP CGI cannot be accessed directly
Hi, I successfully installed mwiki but I get the message mentioned above. I read that I have to change the php.ini. Because I have a managed server and cannot access the php.ini I created one and put the following sequence into it: "cgi.force_redirect = 1". Without any success.

Can anybody help carolus


 * PHP is reporting the wrong URL to the config program. Set it manually in LocalSettings.php. --brion 08:05, 11 September 2005 (UTC)

PHP max and min versions
There is a recommended version on the front page, but does mediawiki run well with PHP5? How about PHP6 which will be out RSN?

PHP with mysqli?
I have mysqli installed on my system. Can I use MediaWiki? 216.9.45.123 01:54, 14 June 2006 (UTC) I went through the Database.php file, and I noticed that all the database callas are in the format mysql_*. I would guess then that if I wanted to use mysqli, I would have to replace all those calls with the matching mysqli_* call. Is that correct? Thanks, -- Anca.


 * I think so. You're better off consulting PHP.net's documentation to make sure that there aren't any incompatibilities between the two. &mdash; Ambush Commander (Talk) 22:28, 14 June 2006 (UTC)


 * The latest version of PHP has deprecated ext/mysql. (http://php.net/manual/en/migration55.deprecated.php)

Compile-time options
PHP5 also needs support for


 * GD lib (http://www.boutell.com/gd/faq.html) for creating thumbnails
 * XML-Support (otherwise it will not install)
 * LDAP if you want to use LDAP-Login

PHP-Info
If not sure, which PHP-Version you are running, create a new php file and load it in your browser:

<?PHP gd_info;

$array = gd_info; foreach ($array as $key => $val) {  if ($key != "GD Version") { if ($val == true || $val == false) { if ($val == true) { $val = "Enabled"; }      elseif ($val == false) {          $val = "Disabled"; }  }   }   echo "$key: $val "; }

print " End gd_info \n"; phpinfo; ?>

PHP error
I have no idea what to do now. I got the wiki files all set up, went to my page, clicked "set up the wiki", and this came up "PHP 5.0.0 or higher is required. ABORTING.". How do I fix it?--X66x66 18:23, 4 April 2007 (UTC)


 * MediaWiki >1.7(?) runs only on PHP 5+. --.anaconda 19:08, 4 April 2007 (UTC)
 * Oh, I should cross this out because I got a lower MediaWiki version and fixed it.--X66x66 17:09, 5 April 2007 (UTC)

Using NuSphere PHPExpress accelerator
I'm testing NuSphere PHPExpress on my Windows development box and mediawiki seems to be working perfectly fine with it. As the installation is very simple (it's just a dll that has to be copied in the \ext folder of php and you have to add extension=phpexpress[..].dll in php.ini and restart Apache) I think it would be worth mentioning it on the page. The only - I would find about it is that the cache size is fixed at 8MB but it seems to be enough for mediawiki (my install caches about 3MB of mediawiki php files). Here's the product page... It's also listed in Wikipedia here

Instead of NuSphere which lacks the G in gNU use XCACHE
Its open sauce and works good with mediawiki http://xcache.lighttpd.net/

Use mysqli
The native mysql extension is deprecated and is going to be removed soon. It should be replaced with the far newer mysqli or PDO. As far as I can tell, mysql has been around since before the turn of the century and is only changed for critical bug fixes, whereas mysqli and PDO are actively maintained. I could begin work on doing a patch to use the new extensions, however we would have to decide which (or both) to use. User:Iggyvolz, but you'll probably find me on Wikia 22:24, 11 August 2014 (UTC)
 * That's odd, it looks like mysqli is already in the source code but it's not being used in mw_config... can anyone clear me up on this? User:Iggyvolz, but you'll probably find me on Wikia 23:25, 11 August 2014 (UTC)