Last modified: 2009-08-14 02:28:05 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 T22220, the corresponding Phabricator task for complete and up-to-date bug report information.
Bug 20220 - Installation script halts under php 5.3
Installation script halts under php 5.3
Status: RESOLVED INVALID
Product: MediaWiki
Classification: Unclassified
Installer (Other open bugs)
1.16.x
All All
: Normal critical (vote)
: ---
Assigned To: Brion Vibber
:
Depends on:
Blocks:
  Show dependency treegraph
 
Reported: 2009-08-13 15:20 UTC by Lisa Ridley
Modified: 2009-08-14 02:28 UTC (History)
3 users (show)

See Also:
Web browser: ---
Mobile Platform: ---
Assignee Huggle Beta Tester: ---


Attachments

Description Lisa Ridley 2009-08-13 15:20:45 UTC
The isntallation script for MediaWiki versions 1.15.1 and the trunk version is halting shortly after creating the database tables and refuses to run to completion even after restarting when attempting to install under php version 5.3.

The system information is as follows:

Mac OS X version 10.5.8
Apache version 2.2.11
MySQL version 5.0.83
PHP version 5.3

Extensions installed with PHP are:

apc (installed but not specified in install script for mediawiki)
calendar
curl
eaccelerator (again, installed but not specified in installation script)
ftp
gd
iconv
imagick
imap
mbstring
mcrypt
memcache (not specified for mediawiki install)
mysql
openssl
postgresql
pspell
sqlite
suhosin patch
tidy
xmlrpc
xsl
zip
zlib
sockets

Note:  Back when 5.3 first came out, we had a number of users on MWUsers.com reporting problems with existing MediaWiki installations throwing errors, and new installations not working, but I did not have time to look into it at the time; we just advised them that 5.3 was breaking MediaWiki and go back to an earlier version.  There did not appear to be a pattern related to operating system (we had both Windows and *nix users reporting problems) or MySQL version (again both versions 4 and 5 were being used), but the common denominator seemed to be php 5.3.
Comment 1 Lisa Ridley 2009-08-13 15:23:02 UTC
Sorry, changing the status of this bug to high priority, critical
Comment 2 Chad H. 2009-08-13 15:25:45 UTC
WORKSFORME (was able to install && run) on PHP 5.3 with MySQL 5.x on WinXP SP3.
Comment 3 Lisa Ridley 2009-08-13 16:17:12 UTC
Update:  dropping back to PHP version 5.2.6 resulted in a successful install for both 1.15.1 and 1.16(trunk).
Comment 4 Brion Vibber 2009-08-13 18:05:40 UTC
No problems with current trunk or 1.15.1 checkout on Mac OS X 10.5.8 with PHP 5.3.0 installed from source as FastCGI running within the system Apache:

Please include all of the lines below when reporting installation problems.

    * PHP 5.3.0 installed
    * Found database drivers for: MySQL SQLite
    * PHP server API is cgi-fcgi; using ugly URLs (index.php?title=Page_Title)
    * Have XML / Latin1-UTF-8 conversion support.
    * Warning: A value for session.save_path has not been set in PHP.ini. If the default value causes problems with saving session data, set it to a valid path which is read/write/execute for the user your web server is running under.
    * PHP's memory_limit is 128M.
    * Couldn't find Turck MMCache, eAccelerator, APC or XCache; cannot use these for object caching.
    * Found GNU diff3: /usr/bin/diff3.
    * Found ImageMagick: /opt/local/bin/convert; image thumbnailing will be enabled if you enable uploads.
    * Found GD graphics library built-in.
    * Installation directory: /Library/WebServer/Documents/php53/rel1.15
    * Script URI path: /php53/rel1.15
    * Installing MediaWiki with php file extensions
    * Environment checked. You can install MediaWiki.
    *

      Generating configuration file...
    * Database type: MySQL
    * Loading class: DatabaseMysql
    * Attempting to connect to database server as root...success.
    * Connected to mysql 5.0.51a; enabling MySQL 4.1/5.0 charset mode
    * Attempting to create database...
    * Created database forkowiki
    * Creating tables... done.
    * Initializing statistics...
    * Granting user permissions to wikiuser on forkowiki...success.
    * Created sysop account WikiSysop.
    *

      Creating LocalSettings.php...

      Installation successful! Move the config/LocalSettings.php file to the parent directory, then follow this link to your wiki.

      You should change file permissions for LocalSettings.php as required to prevent other users on the server reading passwords and altering configuration data.


PHP 5.3 was configured as such:
'./configure' '--prefix=/opt/php53' '--with-mysql=/usr/local/mysql' '--with-zlib' '--with-bz2' '--enable-mbstring' '--enable-exif' '--enable-cgi' '--with-xmlrpc' '--with-xsl' '--with-readline' --with-gd --with-png-dir=/opt/local --with-jpeg-dir=/opt/local --with-curl --without-iconv

If you can still confirm difficulties, can you post the exact messages from the installer as above, and any additional error messages you encounter? Can you also include details of the PHP 5.3 setup -- was it installed from source or via a package? If a package, which package? A difference in configuration might trigger some problem...
Comment 5 Lisa Ridley 2009-08-13 19:04:18 UTC
OK, I have everything installed from MacPorts, and php is compiled to run as an apache dynamic module.

Please include all of the lines below when reporting installation problems.

    * PHP 5.3.0 installed
    * Found database drivers for: MySQL PostgreSQL SQLite
    * PHP server API is apache2handler; ok, using pretty URLs (index.php/Page_Title)
    * Have XML / Latin1-UTF-8 conversion support.
    * Warning: A value for session.save_path has not been set in PHP.ini. If the default value causes problems with saving session data, set it to a valid path which is read/write/execute for the user your web server is running under.
    * PHP's memory_limit is 128M.
    * APC installed
    * Found GNU diff3: /usr/bin/diff3.
    * Found ImageMagick: /opt/local/bin/convert; image thumbnailing will be enabled if you enable uploads.
    * Found GD graphics library built-in.
    * Installation directory: /Users/lhridley/MediaWiki1_15/phase3
    * Script URI path: /w
    * Installing MediaWiki with php file extensions
    * Environment checked. You can install MediaWiki.

Output from installation script is as follows:

Please include all of the lines below when reporting installation problems.

    * PHP 5.3.0 installed
    * Found database drivers for: MySQL PostgreSQL SQLite
    * PHP server API is apache2handler; ok, using pretty URLs (index.php/Page_Title)
    * Have XML / Latin1-UTF-8 conversion support.
    * Warning: A value for session.save_path has not been set in PHP.ini. If the default value causes problems with saving session data, set it to a valid path which is read/write/execute for the user your web server is running under.
    * PHP's memory_limit is 128M.
    * APC installed
    * Found GNU diff3: /usr/bin/diff3.
    * Found ImageMagick: /opt/local/bin/convert; image thumbnailing will be enabled if you enable uploads.
    * Found GD graphics library built-in.
    * Installation directory: /Users/lhridley/MediaWiki1_15/phase3
    * Script URI path: /w

Issues I noticed:

I did not select any caching, but MediaWiki indicated * APC Installed in the script output.

The tables are built, and records added to site_stats (1) and the interwiki table.  No user is created.  No LocalSettings.php is created.


PHP is configured as follows:
'./configure' '--prefix=/opt/local' '--mandir=/opt/local/share/man' '--infodir=/opt/local/share/info' '--with-config-file-path=/opt/local/etc/php5' '--with-config-file-scan-dir=/opt/local/var/db/php5' '--enable-calendar' '--with-iconv=/opt/local' '--enable-exif' '--enable-ftp' '--enable-wddx' '--with-bz2=/opt/local' '--with-libxml-dir=/opt/local' '--with-gettext=/opt/local' '--with-libexpat-dir=/opt/local' '--with-xmlrpc' '--enable-soap' '--enable-bcmath' '--enable-mbstring' '--enable-dba' '--enable-zip' '--with-openssl=/opt/local' '--with-mhash=/opt/local' '--with-pcre-regex=/opt/local' '--disable-cgi' '--with-ldap=/usr' '--with-iodbc=/usr' '--with-apxs2=/opt/local/apache2/bin/apxs' '--enable-dbase' '--with-mysql=/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_ports_lang_php5/work/mysql5' '--with-pdo-mysql=/opt/local/bin/mysql_config5' '--with-mysql-sock=/opt/local/var/run/mysql5/mysqld.sock' '--with-mysqli=/opt/local/bin/mysql_config5' '--with-sqlite' '--with-pdo-sqlite=/opt/local' '--enable-sqlite-utf8' '--with-pear=/opt/local/lib/php' '--enable-sockets'
Comment 6 Lisa Ridley 2009-08-14 02:28:05 UTC
This bug is no longer valid.  The issue was caused by the Suhosin hardening patch to PHP.  Once it was removed the installations scripts ran fine, and mediawiki appears to be running as expected.

Note You need to log in before you can comment on or make changes to this bug.


Navigation
Links