Advertisement
Guest User

Untitled

a guest
Jul 8th, 2016
78
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.12 KB | None | 0 0
  1. # parse the current directory name
  2. currentdirectory=${PWD##*/}
  3.  
  4. # create the wp-config file with our standard setup
  5. wp-cli.phar core config --dbname=$dbname --dbuser=$dbuser --dbpass=$dbpass --extra-php <<PHP
  6. // Enable WP_DEBUG mode
  7. define('WP_DEBUG', true);
  8.  
  9. // Enable Debug logging to the /wp-content/debug.log file
  10. define('WP_DEBUG_LOG', true);
  11.  
  12. // Disable display of errors and warnings
  13. define('WP_DEBUG_DISPLAY', true);
  14. @ini_set('display_errors', 1);
  15. @ini_set('error_reporting', E_ALL);
  16.  
  17. define('SCRIPT_DEBUG', true);
  18.  
  19. define('SUNRISE', 'on');
  20. /* Multisite */
  21. define('WP_ALLOW_MULTISITE', true);
  22. define('MULTISITE', true);
  23. define('SUBDOMAIN_INSTALL', false);
  24. define('DOMAIN_CURRENT_SITE', 'http://localhost/${currentdirectory}');
  25. define('PATH_CURRENT_SITE', '/');
  26. define('SITE_ID_CURRENT_SITE', 1);
  27. define('BLOG_ID_CURRENT_SITE', 1);
  28. define('WP_MEMORY_LIMIT', '256M');
  29.  
  30. // Disable the theme and plugin installers and editors...
  31. define( 'DISALLOW_FILE_MODS', true );
  32.  
  33. // ...or just disable the theme/plugin editor
  34. define( 'DISALLOW_FILE_EDIT', true );
  35.  
  36. /* That's all, stop editing! Happy blogging. */
  37. PHP
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement