Author: aramatev
Description:
When I try to install mediawiki it stops after the line "Creating tables..."
Here is the info before install.
Checking environment...
Please include all of the lines below when reporting installation problems.
- PHP 5.1.4 installed
- Found database drivers for: MySQL * Warning: PHP's register_globals option is enabled. Disable it if you can. MediaWiki will work, but your server is more exposed to PHP-based security vulnerabilities.
- PHP server API is cgi; 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 is configured with no memory_limit.
- Couldn't find Turck MMCache, eAccelerator, or APC. Object caching functions cannot be used.
- Found GNU diff3: /usr/bin/diff3.
- Found ImageMagick: /usr/bin/convert; image thumbnailing will be enabled if you enable uploads.
- Found GD graphics library built-in.
- Installation directory: /home/ohillfr/public_html/greenwiki
- Script URI path: /greenwiki
- Environment checked. You can install MediaWiki. ******** ********
Here is the info after install is run.
Checking environment...
Please include all of the lines below when reporting installation problems.
- PHP 5.1.4 installed
- Found database drivers for: MySQL * Warning: PHP's register_globals option is enabled. Disable it if you can. MediaWiki will work, but your server is more exposed to PHP-based security vulnerabilities.
- PHP server API is cgi; 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 is configured with no memory_limit.
- Couldn't find Turck MMCache, eAccelerator, or APC. Object caching functions cannot be used.
- Found GNU diff3: /usr/bin/diff3.
- Found ImageMagick: /usr/bin/convert; image thumbnailing will be enabled if you enable uploads.
- Found GD graphics library built-in.
- Installation directory: /home/ohillfr/public_html/greenwiki
- Script URI path: /greenwiki
- Environment checked. You can install MediaWiki. *
Generating configuration file... - Database type: MySQL
- Loading class: DatabaseMysql
- Attempting to connect to database server as ohillfr_wikiusr...success.
- Connected to 4.1.22-standard
- Database ohillfr_wikidb exists
- Creating tables... ******** ********
I have traced down the problem to 2 lines inside /config/index.php
FIXME: Check for errors
print "<li>Creating tables..."; if ($conf->DBtype == 'mysql') { dbsource( "../maintenance/tables.sql", $wgDatabase ); dbsource( "../maintenance/interwiki.sql", $wgDatabase ); } else if ($conf->DBtype == 'postgres') { $wgDatabase->setup_database(); } else { $errs["DBtype"] = "Do not know how to handle database type '$conf->DBtype'"; continue; }
it successfully runs tables.sql, then hangs when it hits interwiki.sql.
I have looked inside the file and the REPLACE INTO seems to have correct syntax.
Also when I simply run the sql statements in interwiki.sql against the db, they all run.
When i place the sql lines in interwiki.sql inside tables.sql, they also run.
So I'm not sure why the script would hang there on trying to run interwiki.sql
So perhaps dbsource() defined inside install-utils.inc in root dir has some issues ?
I noticed the file does not have a .php extension.. I'm not sure how much my server likes that.
But maybe that does not matter because the file starts with < ? php. However i did notice all other php files in the root folder have extension .php.
Or maybe thats because they are meant to be accessed directly while install-utils.inc is only an include file.
In any case I'm completely bewildered why my install will not go through.
I have installed mediawiki just fine on my own personal machine, but are having this particular issue when I try to install it on my online server. It is on shared hosting but php and mysql are installed properly and mediawiki recognizes the environment to be OK.
please help
thank you
Version: 1.10.x
Severity: normal
OS: Linux
Platform: Other