FAQ Custom module install

From Dolibarr Open Source ERP CRM Wiki

Return to user
documentation index

File Doc user.png


How to install an external module

For very old version of Dolibarr, you must execute this before being able to install an external module.

  • Make sure Dolibarr is already installed and configured on your workstation or development server.
  • In your Dolibarr installation directory, edit the htdocs/conf/conf.php file
  • Find the following lines:
   php
   //$dolibarr_main_url_root_alt ...
   //$dolibarr_main_document_root_alt ...
   
  • Uncomment these lines (delete the leading //) and assign a sensible value according to your Dolibarr installation
For example :
   * UNIX:
       php
       $dolibarr_main_url_root = 'http://localhost/Dolibarr/htdocs';
       $dolibarr_main_document_root = '/var/www/Dolibarr/htdocs';
       $dolibarr_main_url_root_alt = '/custom';
       $dolibarr_main_document_root_alt = '/var/www/Dolibarr/htdocs/custom';
       
   * Windows:
       php
       $dolibarr_main_url_root = 'http://localhost/Dolibarr/htdocs';
       $dolibarr_main_document_root = 'C:/My Web Sites/Dolibarr/htdocs';
       $dolibarr_main_url_root_alt = '/custom';
       $dolibarr_main_document_root_alt = 'C:/My Web Sites/Dolibarr/htdocs/custom';
       
You may have to create the htdocs/custom directory first if it doesn't exist yet.
  • Unzip the custom module zip file in the htdocs/custom directory
  • You should now have a htdocs/custom/modulename directory
  • Refresh your browser, Go to "Setup" -> "Modules"

The module displays in one of the sections, you could enable it and then start using it ;)

If the module is under development or experimental 
Got to "Setup" -> "Other setup" and set MAIN_FEATURES_LEVEL to 2
For more information about the conf.php file take a look at the conf.php.example file.
Personal tools
  • Ask to contact@dolibarr.org to request an account to contribute to this documentation
  • Log in
In other languages
FrenchSpanishDeutsch
No translation in Deutsch.
Italian
No translation in Italian.
Greek
No translation in Greek.
<multilanguagemanager_cn>
No translation in &lt;multilanguagemanager_cn&gt;.

Social networks
Follow us on Google+ Follow us on Facebook Follow us on LinkedIn Follow us on Twitter