15 votes

How do I set up dev environment with buildkit?

As Kurund pointed out, the general instructions are at https://github.com/civicrm/civicrm-buildkit . Follow those instructions to download the all the tools. There are a few details that may not be ...
user avatar
  • 5,564
5 votes
Accepted

Using buildkit on MAMP but hitting "Fatal error: Call to a member function getDriver() on null"

This may indicate that either: The PHP runtime is missing the PDO or MySQL extensions. This may help: https://wiki.civicrm.org/confluence/display/CRMDOC/Setup+Command-Line+PHP (At time of writing, I'...
user avatar
  • 5,564
5 votes

Buildkit -- Warning: file_get_contents(http://localhost:7979/index.php): failed

Check that you've followed this instruction? Note: Please add this line to the httpd.conf or apache2.conf: Include /root/.amp/apache.d/*.conf To do this, edit your Apache configuration (on Debian ...
user avatar
5 votes
Accepted

Do I need to know Linux to administer CiviCRM?

The question is tricky because it's a bit imprecise -- different people may interpret "know Linux" and "administer CiviCRM" a bit differently. It might be clearer to rephrase the issue this way: To ...
user avatar
  • 5,564
4 votes

Display menu and pages of a newly created extension

Whenever you modify a menu xml file you must clear CiviCRM's menu cache. Go to Administer > System Settings > Cleanup Caches & Update Paths and click the Cleanup Caches button.
user avatar
  • 16.1k
4 votes

Do I need to know Linux to administer CiviCRM?

I would tend to say "No", it is not required. We have a bunch of customers that administer CiviCRM without Linux knowledge (or GNU, as Tomislav pointed out). However, they do pay for service providers ...
user avatar
4 votes
Accepted

Problems with first test site using Civicrm buildkit

Accessing URL http://localhost:7979 requires at least these things: Your client is able to resolve host localhost to the local IP address You have a server which is listening to port 7979 Your server ...
user avatar
4 votes
Accepted

How do I upgrade CiviCRM on a local site that I installed with buildkit civibuild?

tldr cd buildkit/build/dmaster/sites/all/modules/civicrm ## Ensure that all your stuff is clean/committed. git scan status ## Update git repos. Choose ONE of: git scan up ./bin/givi checkout X.Y.Z ...
user avatar
  • 5,564
3 votes

Recent 'git' seems to be missing CRM/Event/DAO folder

A git clone of the CiviCRM source tree is not a complete CiviCRM codebase. Some CiviCRM code is autogenerated, via a script named GenCode.php See Github for CiviCRM for full instructions.
user avatar
3 votes

Do I need to know Linux to administer CiviCRM?

@Joe To kick off, you probably mean GNU more than Linux (it's the tools that you learn, not the kernel). That said, being a MySQL/PHP-based system, it's naturally geared towards GNU/Linux as the most ...
user avatar
3 votes

How do I set up dev environment with buildkit?

Using MAMP should be fine. You might also have to install git. For detailed instructions on buildkit please check: https://github.com/civicrm/civicrm-buildkit https://buildkit-ui.civicrm.org/#/...
user avatar
3 votes

Installing extensions with civicrm-buildkit

As a bit of background, it may help to check out "What's a build?" and "What are the basic build techniques?". There are a few directions one can take on that topic: Install an extension once, ...
user avatar
  • 5,564
3 votes
Accepted

Can distmaker be run off a specific branch

Check the settings in distmaker.conf, the ones at the end. They specify the git branch to pull from: ## Git branch/tag name DM_REF_CORE=master DM_REF_DRUPAL=7.x-${DM_REF_CORE} DM_REF_DRUPAL6=6.x-${...
user avatar
  • 3,803
3 votes
Accepted

How do I rebuild the training demo sites?

The demo sites are built as a scheduled job in Jenkins. Authenticated users in Jenkins can start builds from the gui. Please contact the core team via email (totten or dave or coleman or kurund, at ...
user avatar
  • 16.1k
3 votes
Accepted

Install CiviCRM without installing the database. And install the database without installing CiviCRM

From the excellent interactive documentation here -- https://buildkit.civicrm.org/#/tutorials (which is almost impossible to find unless you know where to look): ## Download application (with ...
user avatar
  • 351
3 votes

Buildkit - amp test fails - incorrect response received

The problem was PHP files weren't being processed. I reinstalled PHP module using the following commands and it worked. sudo /etc/init.d/apache2 stop sudo apt-get remove --purge apache2 php5 sudo apt-...
user avatar
3 votes
Accepted

What's the quickest way to set up a developer environment on windows?

you also need bash, it MIGHT be doable with cygwin (https://www.cygwin.com/), but I think it would be a considerable amount of pain. The least pain imo would be: install Virtualbox, install Ubuntu on ...
user avatar
  • 3,494
3 votes

Do I need to know Linux to administer CiviCRM?

No, you don't need to 'know linux'. CiviCRM has been intentionally built so that all day to day use and administration of the system can be carried out via the user interface (i.e. the screens that ...
user avatar
3 votes
Accepted

Buildkit Site fails to load due to PHP ugrade from 5 to 7

It's on your php.ini config file. where it it depends on your OS, in ubuntu/debian it's under /etc/php5 and you have cli and fpm, check that the cli version enables the extension simplexml FYI, ...
user avatar
  • 10.1k
3 votes

Buildkit Site fails to load due to PHP ugrade from 5 to 7

It seems to me you need to install the php-xml package. sudo apt-get install php-xml should get you there on Ubuntu.
user avatar
  • 31
3 votes
Accepted

Is there a copy of phpunit 4 documentation somewhere?

https://phpunit.de/manual/4.8/en/index.html still exists even though it's not shown as an option in the menu anymore.
user avatar
3 votes
Accepted

Re-install Buildkit on Ubuntu for Windows

If you've run amp, you should also delete the hidden folder $HOME/.amp. Leaving --full out of the install command will skip installing apps. Hoewver, There is no side effect to reinstalling the apps,...
user avatar
3 votes

How to install civix and build an extension in drupal

Have a look at the Developer Guide here: https://docs.civicrm.org/dev/en/latest/ as a start. If at all possible I would recommend trying to find an expert near you who would be able to give you a ...
user avatar
3 votes
Accepted

Is it 'better' to use mysql_dsn rather than mysql_ram_disk with buildkit and amp config?

It's a little bit hard to answer without more info but generally the ram disk isn't going to save your data unless you do something extra, so it's more useful for one-off tests or something where you ...
user avatar
  • 17.6k
2 votes

What's the quickest way to set up a developer environment on windows?

Start with WAMP: http://www.wampserver.com/en/ Windows, Apache, mySQL, PHP
user avatar
  • 71
2 votes
Accepted

Running CiviCRM unit tests with an extension installed

Agree that the typical configuration is to have a separate, headless database for running tests. Your problem sounds similar to (but slightly different from) the problem of running unit-tests ...
user avatar
  • 5,564
2 votes

How to modify/test Upgrade/Incremental/sql..sql script?

If you're targeting the 4.6 branch, then put the upgrade script in the latest 4.6.X.mysql.tpl. If you're targeting the master branch, then use 4.7.alpha1.mysql.tpl. As a rule of thumb, we try to ...
user avatar
  • 5,564
2 votes

Building an extention in civicrm. i try fetch campaign base on contact nothing displays while i have records

I'd recommend looking into using the CiviCRM API as a more robust way to query CiviCRM data. Using the CiviCRM API Check out the API explorer In your CiviCRM instance you can access the API Explorer....
user avatar
2 votes

Is civicrm-buildkit safe to use in production?

Buildkit is not designed for production use but I can't think of any reason it can't be used that way. As your second question suggests, the upgrade procedure will indeed be different. Steps for ...
user avatar
  • 16.1k
2 votes
Accepted

What's the optimal way to install and track CiviCRM with Drupal and git?

Drush can support VCS deployments and you can tell drush make to keep the .git directory with "drush make --working-copy your-platform.make". However, unless it's changed recently, drush doesn't have ...
user avatar
  • 2,986

Only top scored, non community-wiki answers of a minimum length are eligible