Customization Attributes

Attributes are added as { } blocks, for example “default” attributes would be written as such:

{ "wordpress": { "version": "latest" } }

General settings

  • default[‘wordpress’][‘version’] = ‘latest’
  • default[‘wordpress’][‘db’][‘name’] = “wordpressdb”
  • default[‘wordpress’][‘db’][‘user’] = “wordpressuser”
  • default[‘wordpress’][‘db’][‘pass’] = nil
  • default[‘wordpress’][‘db’][‘prefix’] = ‘wp_’
  • default[‘wordpress’][‘db’][‘host’] = ‘localhost’
  • default[‘wordpress’][‘db’][‘charset’] = ‘utf8’
  • default[‘wordpress’][‘db’][‘collate’] = ”
  • default[‘wordpress’][‘allow_multisite’] = false
  • default[‘wordpress’][‘server_aliases’] = [node[‘fqdn’]]
  • default[‘wordpress’][‘server_port’] = ’80’
  • default[‘wordpress’][‘install’][‘user’] = node[‘apache’][‘user’]
  • default[‘wordpress’][‘install’][‘group’] = node[‘apache’][‘group’]

Languages

  • default[‘wordpress’][‘languages’][‘lang’] = ”
  • default[‘wordpress’][‘languages’][‘version’] = ”
  • default[‘wordpress’][‘languages’][‘repourl’] = ‘http://translate.wordpress.org/projects/wp
  • default[‘wordpress’][‘languages’][‘projects’] = [‘main’, ‘admin’, ‘admin_network’, ‘continents_cities’]
  • default[‘wordpress’][‘languages’][‘themes’] = []
  • default[‘wordpress’][‘languages’][‘project_pathes’] = {
    ‘main’ => ‘/’,
    ‘admin’ => ‘/admin/’,
    ‘admin_network’ => ‘/admin/network/’,
    ‘continents_cities’ => ‘/cc/’
    }
  • default[‘wordpress’][‘parent_dir’] = ‘/var/www’

 

Increase Max Upload Size

  1. Goto IDE for your environment
  2. Open a new terminal (>_ icon in the left sidebar)
  3. type:

    vi /etc/php5/apache/php.ini
    /upload_max press enter

change 2M to 200M (press the i key to edit text, and use the keyboard to navigate to change), than press ESC key

  1. type:

    /post_max press enter

Change 8M to 100M (press the i key to edit text, and use the keyboard to navigate to change), than press ESC key

  1. press the “:” key and type “wq” Without quotes and press enter
  2. type service apache2 restart