Guest User

Untitled

a guest
Nov 18th, 2017
152
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.39 KB | None | 0 0
  1. <VirtualHost *:80>
  2. DocumentRoot "/Users/your_name/Sites/domain"
  3. ServerName domain.com #This should be the same as what was added to your host file
  4. </VirtualHost>
  5.  
  6. #Uncomment line 112:
  7. LoadModule php5_module libexec/apache2/libphp5.so
  8.  
  9. #Change your directives line 247
  10.  
  11. <Directory />
  12. Options FollowSymLinks
  13. AllowOverride All
  14. Order deny,allow
  15. Allow from ALL
  16. </Directory>
  17.  
  18. #Map your vhost file line: 621
  19. # Virtual hosts
  20. Include /private/etc/apache2/extra/httpd-vhosts.conf
  21.  
  22. <Directory "/Users/yourname/Sites/">
  23. Options Indexes MultiViews
  24. AllowOverride All
  25. Order allow,deny
  26. Allow from All
  27. </Directory>
  28.  
  29. if ( file_exists( dirname( __FILE__ ) . '/local-config.php' ) ) {
  30. include( dirname( __FILE__ ) . '/local-config.php' );
  31. define( 'WP_LOCAL_DEV', true );
  32. } else {
  33. define( 'DB_NAME', 'production_db' );
  34. define( 'DB_USER', 'production_user' );
  35. define( 'DB_PASSWORD', 'production_password' );
  36. define( 'DB_HOST', 'production_db_host' );
  37. }
  38.  
  39. new CWS_Disable_Plugins_When_Local_Dev( array( 'vaultpress.php' ) );
  40.  
  41. mkdir /sites/domain-name
  42. cd /sites/domain-name
  43. svn co http://core.svn.wordpress.org/tags/3.2.1 .
  44.  
  45. # Get the devilbox
  46. $ git clone https://github.com/cytopia/devilbox
  47. $ cd devilbox
  48.  
  49. # Create docker-compose environment file
  50. $ cp env-example .env
  51.  
  52. # Edit your configuration
  53. $ vim .env
  54.  
  55. # Start all containers
  56. $ docker-compose up
Add Comment
Please, Sign In to add comment