User:Dan Nessett/Technical/How to set up a CZ clone on Ubuntu
Jump to navigation
Jump to search
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