User:Dan Nessett/Technical/How to set up a CZ clone on Ubuntu: Difference between revisions

From Citizendium
Jump to navigation Jump to search
imported>Dan Nessett
No edit summary
imported>Dan Nessett
No edit summary
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.
* Used cloc to count lines of PHP code in CZ phase 3. Results:  1005 files, 56590 blank lines, 69544 comments, 460125 php code statements.
* Used cloc to count lines of PHP code in CZ phase 3. Results:  1005 files, 56590 blank lines, 69544 comments, 460125 php code statements.
::: In CZ includes: 321  files, 14769  blank lines, 33313 comments, 97375 php code statements.
::: In CZ extensions: 142  files, 3769  blank lines, 6742 comments, 27350 php code statements.
:::::: Total: 463 files, 18583 blank lines, 40055 comments, 124725 php code statements.

Revision as of 12:57, 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.
  • Used cloc to count lines of PHP code in CZ phase 3. Results: 1005 files, 56590 blank lines, 69544 comments, 460125 php code statements.
In CZ includes: 321 files, 14769 blank lines, 33313 comments, 97375 php code statements.
In CZ extensions: 142 files, 3769 blank lines, 6742 comments, 27350 php code statements.
Total: 463 files, 18583 blank lines, 40055 comments, 124725 php code statements.