Talk:PHP configuration
From MediaWiki.org
Any user names refer to users of that site, who are not necessarily users of MediaWiki.org (even if they share the same username).
File uploads with safemode on worked for me. The uploads only failed if apache was the owner of the directories.
Contents |
[edit] 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)
[edit] 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?
[edit] 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. — Ambush Commander(Talk) 22:28, 14 June 2006 (UTC)
[edit] 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
[edit] 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 <br>";
}
print "---- End gd_info() ---- \n";
phpinfo();
?>
[edit] 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)
Note that the above conversation may have been edited or added to since the transfer. If in doubt, check the edit history.
[edit] 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