User:Dan Nessett/Technical/How to set up a CZ clone on Ubuntu: Difference between revisions
Jump to navigation
Jump to search
imported>Dan Nessett No edit summary |
imported>Dan Nessett (→Notes) |
||
Line 6: | Line 6: | ||
* Had to set xdebug.max_nesting_level=200 in /etc/php5/cli/php.ini so dump import wouldn't croak. | * Had to set xdebug.max_nesting_level=200 in /etc/php5/cli/php.ini so dump import wouldn't croak. | ||
* Some useful information on MW XML dumps: http://www.mail-archive.com/wikitech-l@lists.wikimedia.org/msg01712.html, http://www.gossamer-threads.com/lists/wiki/wikitech/180598, http://meta.wikimedia.org/wiki/Data_dumps, http://meta.wikimedia.org/wiki/Xml2sql | * Some useful information on MW XML dumps: http://www.mail-archive.com/wikitech-l@lists.wikimedia.org/msg01712.html, http://www.gossamer-threads.com/lists/wiki/wikitech/180598, http://meta.wikimedia.org/wiki/Data_dumps, http://meta.wikimedia.org/wiki/Xml2sql | ||
* Used cloc to count lines of PHP code in CZ phase 3 | * Used cloc to count lines of PHP code in CZ: | ||
::{| class="wikitable sortable" | |||
| align="center" style="background:#f0f0f0;"|'''Directory''' | |||
| align="center" style="background:#f0f0f0;"|'''Files''' | |||
| align="center" style="background:#f0f0f0;"|'''Blank Lines''' | |||
| align="center" style="background:#f0f0f0;"|'''Comments''' | |||
| align="center" style="background:#f0f0f0;"|'''PHP code statements''' | |||
|- | |||
|align="center"| CZ phase 3 ||align="center"| 1005 ||align="center"| 56590 ||align="center"| 69544 ||align="center"| 460125 | |||
|- | |||
|align="center"| CZ includes ||align="center"| 321 ||align="center"| 14769 ||align="center"| 33313 ||align="center"| 97375 | |||
|- | |||
|align="center"| CZ extensions ||align="center"| 142 ||align="center"| 3769 ||align="center"| 6742 ||align="center"| 27350 | |||
|- | |||
|align="center"| CZ includes+extensions ||align="center"| 463 ||align="center"| 18583 ||align="center"| 40055 ||align="center"| 124725 | |||
|- | |||
|} |
Revision as of 16:05, 20 November 2009
Notes
- Had to modify createAndPromote.php to check password for validity before creating user. Otherwise, if the password is invalid a "ghost" user is created in mwuser table.
- Had to create a dummy user with user_id of 0, so XML dump import would work.
- Need to set Xdebug variables for both apache2/php and php-cli versions of php.ini
- Had to set xdebug.max_nesting_level=200 in /etc/php5/cli/php.ini so dump import wouldn't croak.
- Some useful information on MW XML dumps: http://www.mail-archive.com/wikitech-l@lists.wikimedia.org/msg01712.html, http://www.gossamer-threads.com/lists/wiki/wikitech/180598, http://meta.wikimedia.org/wiki/Data_dumps, http://meta.wikimedia.org/wiki/Xml2sql
- Used cloc to count lines of PHP code in CZ:
Directory Files Blank Lines Comments PHP code statements CZ phase 3 1005 56590 69544 460125 CZ includes 321 14769 33313 97375 CZ extensions 142 3769 6742 27350 CZ includes+extensions 463 18583 40055 124725