Changes

no edit summary
Line 2: Line 2:  
[[Category:Cloud]]
 
[[Category:Cloud]]
 
{{TemplateDocUser}}
 
{{TemplateDocUser}}
{{ToComplete}}
     −
This page is a tutorial to explain how to install Dolibarr ERP-CRM on the Google Cloud Platform
+
This page is a tutorial to explain how to install Dolibarr ERP-CRM on the Google Cloud, called App.
   −
= Create an account =
+
[[File:Warning.png]] This tutorial is not yet complete !
 +
The reason is that, even if Google support PHP into its Cloud platforms, you can't use it yet, because it miss a lot of feature. For example, it is not yet possible to do the following things:
 +
* ability to write upload files.
 +
* ability to use a database from PHP (Mysql database are available but you can't use it with the Google PHP).
 +
* some important PHP functions are disabled.
      −
= Create an instance/domain =
+
= Create a Google account =
 +
If you don't have any Google Account yet, create one by clicking on "Sign In" on page: http://www.google.com
    +
= Create an instance =
 +
Go to your cloud Console: https://cloud.google.com/console and choose '''App Engine''' (or more directly https://appengine.google.com/)
 +
 +
Click onto button "My Applications" then "Create Application" and enter name of your instance container, for example '''mycontainer''', then validate.
 +
 +
After few seconds, your container is ready but no application stored into it.
 +
 +
Go back to your instance: https://appengine.google.com/, select '''mycontainer''', then menu '''Applications Settings'''.
 +
At bottom of page, into entry '''Cloud Integration''', click onto "Create Cloud Integration" if container is not yet setup to use Google Cloud systems.
 +
 +
Go back to API: https://code.google.com/apis/console and choose '''Services''' and activate '''Cloud SQL'''. Go also into '''Billing''' and start to enter billing information.
    
= Submit Dolibarr files =
 
= Submit Dolibarr files =
 +
You can use appcfg tool from Google App SDK to push your application static files.
 +
But an easier way to work is to have a git project and use git push to publish:
 +
* In the App Engine Admin Console for your app (App Engine, select app, then click Application Settings on left nav bar), enable Source Push-to-deploy
 +
* Obtain and copy both the auth token by clicking on the link, and the repo URL that is displayed in the box:
 +
* In your git cloned project, add remote repo
 +
<source lang="bash">
 +
git remote add appengine <repo-url>
 +
</source>
    +
More information on this process here: http://googlecloudplatform.blogspot.fr/2013/07/google-app-engine-hello-world-using.html
    
= Run Dolibarr install Wizard =
 
= Run Dolibarr install Wizard =
 +
 +
Once all previous steps are done, you can call the page '''xxxx''' to run the Dolibarr install wizard.
 +
 +
Let all value detected by default.
 +
All you have to provide is:
 +
* database server: replace localhost with '''xxxx'''
 +
* database name: '''mycontainer'''
 +
* database user: '''mycontainer'''
 +
* database password: '''mycontainer password'''
 +
 +
= Outgoing Email Settings =
 +
Once dolibarr application is working, to allow your PHP to send emails (using the php function mail), you must configure a SMTP provider.
 +
Go into menu '''Configuration - Outgoings EMails settings''', and enter all information for your SMTP provider.
 +
 +
Example to use GMail SMTP server (click twice on image to enlarge):
 +
To complete.
 +
 +
 +
You can send a test email from Dolibarr menu: Home - Setup - EMails