Changes

no edit summary
Line 209: Line 209:     
Here we place our passphrase and click OK.
 
Here we place our passphrase and click OK.
 +
 +
Image 21<br />
 +
[[File:Session_WinSCP_accept.JPG|500px]]
 +
 +
Viola we have access via SSH to our Gear.
 +
 +
On the left is our local space and right remote.
 +
 +
Image 22<br />
 +
[[File:Download_Dolibarr_generic_version.JPG|500px]]
 +
 +
We went down the generic version of Doibarr.
 +
 +
Image 23<br />
 +
[[File:Uploading_DoliBarr_into_repo.JPG|500px]]
 +
 +
In the remote part, selected route
 +
/var/lib/openshift/53641a41e0b8cdf5ec000b76/app-root/runtime/repo
 +
 +
Transfer the Dolibarr folder on the local machine to OpenShift, pressing F5. This process may take several minutes, so while we wait, we will work to create our Gear for the database.
 +
 +
 +
Image 24<br />
 +
[[File:Add_MySQL_5.5.JPG|500px]]
 +
 +
We return to the console and with our OpenShift application selected, we click on the bottom of the Databases section and select Add MySQL 5.5
 +
 +
Image 25<br />
 +
[[File:Add_Cartridge_MySL_to_startdolibarr.JPG|500px]]
 +
 +
Click in add Cartridge.
 +
 +
Note -. In a normal application without Scale, the Cartridge Mysql be added to current Gear, but in our case, OpenShift reports that will address a new Gear for MySQl.
 +
 +
Image 26<br />
 +
[[File:Add_MySQL_Please_make_note_of_these_credentials.JPG|500px]]
 +
 +
Copy the MySQL access credentials. They will be used later to access our data base.
 +
 +
Image 27<br />
 +
[[File:Delete_Index_php.JPG]]
 +
 +
Once you have completed the upload of dolibarr described in picture 23. Edit the index.php file.
 +
 +
We opened our favorite text editor and replace with the following code.
 +
 +
<?php
 +
header("Location: dolibarr/htdocs");
 +
?>
 +
 +
We make a copy of index.php in dolibarr folder and re-edit it and remove dolibarr/.
 +
 +
<?php
 +
header("Location: htdocs");
 +
?>
 +
 +
Image 28<br />
 +
[[File:Index_php_inside_dolibarr_folder.JPG|500px]]
 +
 +
What we have just done, serves don't shown the structure our folders and files of dolibarr from the web browser, with the index.php we force redirect to the home of Dolibarr.
 +
 +
 +
 +
 +
 +
 +
 +
     
155

edits