31,026
edits
mNo edit summary |
|||
| Line 34: | Line 34: | ||
$ mv dolibarr-x.y.z dolibarr | $ mv dolibarr-x.y.z dolibarr | ||
* | * As a root user, create, into directory dolibarr/htdocs/conf, an empty configuration file called conf.php and set, as owner, the web server user (example www-data on Debian, nobody on old RedHat, apache on Mandriva, recent RedHat or other distributions ...). This is required because the web server will have to write into this file during install process. | ||
$ cd dolibarr ; touch htdocs/conf/conf.php ; chown www-data htdocs/conf/conf.php | $ cd dolibarr ; touch htdocs/conf/conf.php ; chown www-data htdocs/conf/conf.php | ||
* | * Always as a root user, create a directory that will serve to save all generated and stocked by Dolibarr (PDf invoices, uploaded images, ...), and attribute to this directory a owner that must be the web server (example www-data on Debian, nobody on old RedHat, apache on Mandriva or recent RedHat, ...). The web server must have write permission into this directory. | ||
$ mkdir documents ; chown www-data documents | $ mkdir documents ; chown www-data documents | ||
* | * Now call your browser to point to the main page | ||
http://127.0.0.1/dolibarr/htdocs/ | http://127.0.0.1/dolibarr/htdocs/ | ||
* | * Follow instructions of setup steps until end of install process. | ||
* | * For security reason, we recommend, once setup is finished, to create a file install.lock into Dolibarr installed directory that only root user can delete. This will lock the call of the install process again (you will have to remove it for upgrades) | ||
$ touch /var/www/dolibarr/install.lock; chmod ug-w /var/www/dolibarr; | $ touch /var/www/dolibarr/install.lock; chmod ug-w /var/www/dolibarr; | ||