|
|
| Line 10: |
Line 10: |
|
| |
|
| == 在您专用的计算机/服务器上 == | | == 在您专用的计算机/服务器上 == |
| === [[File:Logo_windows.png]] 使用DoliWamp (Windows .exe 包) === | | === [[File:Logo_windows.png]] 使用DoliWamp (Windows操作系统 .exe 安装包) === |
| - '''条件''': Windows | | - '''条件''': Windows |
|
| |
|
| Line 17: |
Line 17: |
| 这个过程只适用于Windows用户,并且推荐给没有计算机知识的用户。 如果你正在试用Apache、PHP和MySQL安装,下一章对你来说更好。 | | 这个过程只适用于Windows用户,并且推荐给没有计算机知识的用户。 如果你正在试用Apache、PHP和MySQL安装,下一章对你来说更好。 |
|
| |
|
| 无论如何,如果您是新手用户并运行Windows,则可以使用DoliWamp。DoliWamp是Windows的专用Dolibarr发行版。 此版本允许您在Windows下安装所有必备条件(Apache、MySQL、PHP),并且不用具备计算机知识。 | | 无论如何,如果您是新手用户并运行Windows,则可以使用DoliWamp。DoliWamp是Windows的专用Dolibarr发行版。 此版本允许您在Windows下以所有先决条件进行安装(Apache、MySQL、PHP),并且不用具备计算机知识。 |
|
| |
|
| 这是安装DoliWamp的步骤: | | 这是安装DoliWamp的步骤: |
|
| |
|
| * 下载最后Dolibarr版本的Windows DoliWamp。 | | * 下载最后Dolibarr版本的Windows DoliWamp。 |
| 为此,请参阅页面 [http://www.nltechno.com/pages/dolibarrwinbin.php download DoliWamp on NLTechno web site]. | | 为此,请参阅页面 [http://www.nltechno.com/pages/dolibarrwinbin.php 下载 DoliWamp 于 NLTechno web site]. |
|
| |
|
| * 运行下载.exe并按照说明操作。 | | * 运行下载.exe并按照说明操作。 |
|
| |
|
| === [[File:Logo_ubuntu.png]] With DoliDeb (Debian or Ubuntu .deb package) === | | === [[File:Logo_ubuntu.png]] 使用 DoliDeb (Debian 或者 Ubuntu操作系统 .deb 安装包) === |
| - '''Prerequisite''': Linux Ubuntu | | - '''条件''': Linux Ubuntu 操作系统 |
|
| |
|
| - '''Level''': Non experienced users | | - '''级别''': 无经验用户 |
|
| |
|
| This process works only for Ubuntu or Debian Linux users and is recommended for user with no computer knowledges. If you are experimented with Apache, PHP and Mysql installation, chapter 'with standard pakcage' is better for you. However, if you are a newbie user and running Ubuntu, you can use DoliDeb. DoliDeb is a specialized Dolibarr distribution for Debian or Ubuntu. This distribution allows you to make an installation under Ubuntu with all prerequisites (Apache, Mysql, PHP) and with no computer knowledge.
| | 此过程仅适用于Ubuntu或Debian Linux用户,并推荐给没有计算机知识的用户。 如果你正在试用Apache、PHP和MySQL安装,“标准安装包”章节对你来说更好。 但是,如果您是新手用户,运行Ubuntu,您可以使用DoliDeb. DoliDeb是特别版的Dolibarr专为Debian或Ubuntu。 此版本允许您在Ubuntu下以所有先决条件进行安装(Apache, Mysql, PHP) ,并且不用具备计算机知识。 |
|
| |
|
| * Steps to install DoliDeb are described into page [[Dolibarr for Ubuntu or Debian]]. | | * 安装DoliDeb的步骤被描述为页面 [[Dolibarr for Ubuntu or Debian]]. |
|
| |
|
| === [[File:Logo_rpm.png|42px]] With DoliRpm (Fedora, Redhat, Mandriva, Mageia or OpenSuse .rpm package) === | | === [[File:Logo_rpm.png|42px]] 使用 DoliRpm (Fedora, Redhat, Mandriva, Mageia 或 OpenSuse系统 .rpm 安装包) === |
| - '''Prerequisite''': Linux Fedora, Redhat, Mandriva, Mageia or OpenSuse | | - '''条件''': Linux Fedora, Redhat, Mandriva, Mageia 或 OpenSuse 系统 |
|
| |
|
| - '''Level''': Non experienced users | | - '''级别''': 无经验用户 |
|
| |
|
| This process works only for Fedora, Redhat, Mandriva, Mageia or OpenSuse Linux users and is recommended for user with no computer knowledges. If you are experimented with Apache, PHP and Mysql installation, next chapter 'with standard package' is better for you. However, if you are a newbie user and running Fedora or Redhat, you can use DoliRpm. DoliRpm is a specialized Dolibarr distribution for Fedora, Redhat or Mandriva. This distribution allows you to make an installation under such OS with all prerequisites (Apache, Mysql, PHP) and with no computer knowledge.
| | 此过程仅适用于 Fedora, Redhat, Mandriva, Mageia 或 OpenSuse Linux 用户并且推荐给没有计算机知识的用户。 如果你正在试用 Apache, PHP and Mysql 安装, 下一章 “标准安装包” 章节对你来说更好。但是,如果您是新手用户,运行 Fedora 或 Redhat, 您可以使用 DoliRpm. DoliRpm 是特别版的 Dolibarr 专为 Fedora, Redhat 或 Mandriva. 此版本允许您在这些系统下以所有先决条件进行安装(Apache, Mysql, PHP) ,并且不用具备计算机知识。 |
|
| |
|
| * Steps to install DoliRpm are described into page [[Dolibarr for Redhat or Fedora (rpm package)]] or [[Dolibarr for Mandriva or Mageia (rpm package)]] or [[Dolibarr for OpenSuse (rpm package)]]. | | * 安装DoliRpm的步骤被描述为页面[[Dolibarr for Redhat or Fedora (rpm package)]] 或 [[Dolibarr for Mandriva or Mageia (rpm package)]] 或 [[Dolibarr for OpenSuse (rpm package)]]. |
|
| |
|
| === [[File:Gnu.png]] With Dolibarr (standard .zip or .tgz package) === | | === [[File:Gnu.png]] 使用 Dolibarr (标准 .zip 或者 .tgz 安装) === |
| - '''Prerequisite''': Apache, PHP and a database server (MySQL or PostgreSQL) are already running correctly and user/pass (of a new database or root server) is known. | | - '''条件''': Apache, PHP 和一个数据库服务 (MySQL 或者 PostgreSQL) 已经正确运行,用包名及密码已知 |
|
| |
|
| - '''Level''': Users with few Web and Database administration knowledges. | | - '''级别''': 少量的Web和数据库管理知识 |
|
| |
|
| This procedure describe manual (and recommended) installation on a GNU/Linux system (Debian, Mandriva, ...), it can be used for other OS with minor changes.
| | 此过程了在GNU/Linux系统上的手动安装和推荐安装。 (Debian, Mandriva, ...), 它也可以用于其他操作系统,仅有微小变化。 |
| You can follow this tutorial for any Dolibarr version >= 2.0.0
| | 您可以遵循本教程安装任何Dolibarr版本 >= 2.0.0 |
|
| |
|
| * Check that you have installed Apache, PHP {{PHPMinVersion}} and a database server (MySQL {{MySqlMinVersion}} or PostGreSQL) correctly (check list of installed packaged on your server by using the package manager of your distribution). If not, install them (use last recent version). | | * 检查是否正确安装了Apache, PHP {{PHPMinVersion}} 和数据库服务 (MySQL {{MySqlMinVersion}} 或者 PostGreSQL) (使用您的版本的安装包管理器在服务器上检查已安装的安装包列表). 如有未安装,请先安装(使用最新版本). |
|
| |
|
| * Check that main root or admin user/password couple for the server is known and works correctly. If this root or admin user/password is not known because not yet defined, read following chapter. Otherwise go on next step: | | * 检查服务器的主根或管理员用户/密码对是否已知的,并且工作正常。如果这个根或管理员用户/密码不知道,因为尚未定义,请阅读以下章节。否则继续进行下一步: |
|
| |
|
| For Linux users, if you have just installed a MySQL server, the admin user is''' root'''. If the root password has never been set yet, you must run the following command to initialize the password:
| | 对 Linux 用户, 如果您安装了MySQL服务器,管理员用户是''' root'''。如果根密码尚未设置,则必须运行以下命令来初始化密码: |
| <source lang="bash"> | | <source lang="bash"> |
| mysql | | mysql |
| </source> | | </source> |
| Once in Mysql interface, run the SQL command to modify the root password:
| | 进入Mysql界面, 运行SQL命令修改根密码: |
| <source lang="sql"> | | <source lang="sql"> |
| grant all privileges on *.* to root@'localhost' identified by 'newrootpass' with grant option; | | grant all privileges on *.* to root@'localhost' identified by 'newrootpass' with grant option; |
| </source> | | </source> |
| Then enter and \q to quit.
| | 然后键入\q退出界面。 |
|
| |
|
| To check that connexion with the new couple user/password works, launch the command
| | 若要检查新用户/密码对的连接是否有效,请启动命令 |
| <source lang="bash"> | | <source lang="bash"> |
| mysql -u root -p | | mysql -u root -p |
| </source> | | </source> |
| And type your password ''newrootpass'' then \q to quit if connexion has been successfull.
| | 键入密码''newrootpass'' 然后 \q 退出,如果链接成功 |
|
| |
|
| For Linux users, if you have just installed a PostgreSQL server, you must run the following command to initialize an admin user and password. For this, add the following line in file '''/etc/postgresql/x.x/main/pg_hba.conf''' (replace x.x with your postgres version)
| | 对 Linux 用户, 若你安装了 PostgreSQL 服务, 必须运行以下命令初始化管理员用户和密码。 为此,在文件中添加以下行'''/etc/postgresql/x.x/main/pg_hba.conf''' (替换 x.x 用 你的 postgres 版本) |
| <source lang="ini"> | | <source lang="ini"> |
| local all dolibarrowner md5 | | local all dolibarrowner md5 |
| </source> | | </source> |
| Also, comment the line
| | 此外,注释此行 |
| <source lang="ini"> | | <source lang="ini"> |
| #local all all ident | | #local all all ident |
| </source> | | </source> |
| This line ensure that system login used to connect to database (it will be login the web server run with), is same than database account (this is never the case).
| | 这一行确保了系统登录用于连接到数据库(它将登录的Web服务器运行),是相同的数据库帐户(这决不是这样)。 |
|
| |
|
| Then launch commands from a root shell
| | 然后从根shell发出命令 |
| <source lang="bash"> | | <source lang="bash"> |
| sudo -s -u postgres | | sudo -s -u postgres |
| Line 90: |
Line 90: |
| sudo /etc/init.d/postgresql restart | | sudo /etc/init.d/postgresql restart |
| </source> | | </source> |
| You can test a connection with this user with command
| | 可以使用命令测试与此用户的连接。 |
| <source lang="bash"> | | <source lang="bash"> |
| psql -d postgres -U dolibarrowner -W | | psql -d postgres -U dolibarrowner -W |
| </source> | | </source> |
| And type your ''dolibarrownerpass'' as password and \q to quit if connection is ok.
| | 并键入您的“dolibarrownerpass”作为密码,如果连接正确,请退出。 |
|
| |
|
|
| |
|
| * Go into the directory where to install Dolibarr (the web root directory defined for your web server) | | * 进入安装Dolibarr(为Web服务器定义的Web根目录)的目录 |
| # For Debian and Ubuntu families, it is generally: /var/www (newer versions: /var/www/html) | | # 对于Debian和Ubuntu来说,它一般是:/VAR/WWW(更新版本:/VAR/WWW/HTML) |
| # For Mandriva, RedHat, Fedora: /var/www/html | | # 对于 Mandriva, RedHat, Fedora: /var/www/html |
| # For Suse: /srv/www/htdocs | | # 对于 Suse: /srv/www/htdocs |
| <source lang="bash"> | | <source lang="bash"> |
| $ cd /var/www | | $ cd /var/www |
| Line 107: |
Line 107: |
| </source> | | </source> |
|
| |
|
| * Get the application archive of last stable version | | * 获取最后一个稳定版本的应用程序文件 |
| <source lang="bash"> | | <source lang="bash"> |
| $ wget http://www.dolibarr.org/files/dolibarr.tgz | | $ wget http://www.dolibarr.org/files/dolibarr.tgz |
| </source> | | </source> |
| * Uncompress archive | | * 解压缩档案 |
| <source lang="bash"> | | <source lang="bash"> |
| $ tar xvfz dolibarr.tgz | | $ tar xvfz dolibarr.tgz |
| </source> | | </source> |
|
| |
|
| * Rename directory dolibarr-x.y.z into dolibarr to have a directory name that does not depends on version (replace x.y.z with source version) | | * 将目录Dolibarr-X.Y.Z重命名为Dolibarr,使其具有不依赖于版本的目录名(用源代码替换X.Y.Z) |
| <source lang="bash"> | | <source lang="bash"> |
| $ mv dolibarr-x.y.z dolibarr | | $ mv dolibarr-x.y.z dolibarr |
| </source> | | </source> |
| * Change permission and owner of the 'dolibarr' directory to that of the group under which the web server runs (assumed to be 'www-data' for debian, 'apache' for redhat, mandriva, fedora) | | * 将“Dolibarr”目录的权限和所有者更改为Web服务器运行的组(对于Debian是 'www-data' ,对于Redhat、MulDrVA、FEDORA是'apache')。 |
| <source lang="bash"> | | <source lang="bash"> |
| $ chmod -R 755 /var/www/dolibarr | | $ chmod -R 755 /var/www/dolibarr |
| Line 128: |
Line 128: |
| $ chown -R apache.apache /var/www/html/dolibarr | | $ chown -R apache.apache /var/www/html/dolibarr |
| </source> | | </source> |
| * For Fedora, since SELinux is usually enabled, it is also advisable to run the following commands to make the 'dolibarr' directory compliant with the SELinux requirement (else you are likely to get quite a few alerts) : | | * 对于Fedora,由于SELinux通常是启用的,运行下面的命令也是可行的,以便使“dolibarr”目录符合SELinux要求(否则您可能会得到相当多的警报): |
| <source lang="bash"> | | <source lang="bash"> |
| $ semanage fcontext -a -t httpd_sys_rw_content_t '/var/www/html/dolibarr(/.*)?' | | $ semanage fcontext -a -t httpd_sys_rw_content_t '/var/www/html/dolibarr(/.*)?' |
| Line 134: |
Line 134: |
| </source> | | </source> |
|
| |
|
| * 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, apache on Mandriva, RedHat, Fedora or other distributions ...). This is required because the web server will have to write into this file during install process. | | * 作为根用户,创建目录dolibarr/htdocs/conf,创建一个名为conf.php的空配置文件进行设置,作为所有者,Web服务器用户(例如对于Debian是 'www-data' ,对于Redhat、MulDrVA、FEDORA是'apache')。这是必需的,因为Web服务器将不得不在安装过程中读写该文件。 |
| <source lang="bash"> | | <source lang="bash"> |
| $ 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 |
| </source> | | </source> |
| Note: For Ubuntu no need of htdocs, you just have to make dolibarr root by placing all files and folders of htdocs in /var/www/dolibarr then from browser do <MyIP>/dolibarr/index.php (see this discussion as reference to this addendum [http://askubuntu.com/questions/874456/php-code-displays-in-browser?noredirect=1#comment1357943_874456])
| | 注: 对于 Ubuntu 不需要 htdocs, 你只需建立 dolibarr 根目录,然后将 /var/www/dolibarr 中所有文件及目录拷贝至其中,然后从浏览器中键入<MyIP>/dolibarr/index.php (请参阅本讨论,作为本附录的参考。 [http://askubuntu.com/questions/874456/php-code-displays-in-browser?noredirect=1#comment1357943_874456]) |
|
| |
|
| * As a root user, create a directory that will be used to save all files 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, apache on Mandriva, RedHat, Fedora...). The web server must have write permission into this directory. It is recommanded to use a directory outside of your directory of web pages, for example - "/var/lib/dolibarr/documents" | | * 作为根用户,创建一个目录,用于保存由Dolibarr生成和存储的所有文件(PDF发票、上传图像、……),这个目录必须是Web服务器(例如对于Debian是 'www-data' ,对于Redhat、MulDrVA、FEDORA是'apache')。 |
| | Web服务器必须对该目录具有写入权限。建议使用您的网页目录之外的其他目录,例如- "/var/lib/dolibarr/documents" |
|
| |
|
| <source lang="bash"> | | <source lang="bash"> |
| Line 146: |
Line 147: |
| </source> | | </source> |
|
| |
|
| * Now call your browser to point to the main page | | * 现在调用你的浏览器指向主页 |
| <source lang="ini"> | | <source lang="ini"> |
| http://127.0.0.1/dolibarr/htdocs/ | | http://127.0.0.1/dolibarr/htdocs/ |
| </source> | | </source> |
| or if you didn't create the htdocs directory
| | 或者如果您没有创建HTDOCS目录 |
| <source lang="ini"> | | <source lang="ini"> |
| http://127.0.0.1/dolibarr/ | | http://127.0.0.1/dolibarr/ |
| </source> | | </source> |
|
| |
|
| * 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 document directory that only root user can delete. This will lock the call of the install process again (you will have to remove this file for upgrades). | | * 出于安全原因,我们建议,一旦安装完成,就创建一个文件install.lock到只有root用户可以删除的Dolibarr文档目录中。这将再次锁定安装进程的调用(您必须删除此文件以进行升级)。 |
| If this is not done, Dolibarr will show you a warning once logged by an administrator user.
| | 如果没有这样做,Dolibarr将显示一个警告,一旦管理员管理员登录。 |
| <source lang="bash"> | | <source lang="bash"> |
| $ touch /var/lib/dolibarr/documents/install.lock; chmod go-w /var/lib/dolibarr/documents; | | $ touch /var/lib/dolibarr/documents/install.lock; chmod go-w /var/lib/dolibarr/documents; |
| </source> | | </source> |
|
| |
|
| == On a mutualized Web Hosting Provider (with restricted access) == | | == 在共享的Web虚拟服务器(受限制访问)上== |
| It is not possible to provide a generic documentation to install Dolibarr on a particular Web hosting provider as this depends on provider.
| | 不可能提供一个通用文档来将Dolibarr安装在特定的Web托管提供商上,因为这取决于提供商。 |
| In most cases, using the following process should works for most providers:
| |
| | |
| - '''Prerequisite''': Apache web server, PHP and a database server (MySQL or PostgreSQL) are already running correctly and user/pass (of a new database or root server) is known.
| |
|
| |
|
| - '''Level''': Users with few Web and Database administration knowledges. Knowledge to use a tool (FTP, SFTP) to upload files on the server.
| | 在大多数情况下,使用下面的流程对大多数供应商来说是有效的: |
|
| |
|
| * Check that you have an Apache web server, PHP and a database server (MySQL or PostGreSQL) that works correctly.
| | - '''条件''': Apache 服务器, PHP 和一个数据库 (MySQL or PostgreSQL) 已正确安装及运行,用户名/密码 (一个新的数据库或根服务器) 。 |
|
| |
|
| [[File:warning.png]] Warning, check that code page of PHP server and database server are same (utf8 recommended).
| | - '''级别''': 些许网络有数据库管理知识,使用FTP软件上传文件到服务器的知识。 |
|
| |
|
| * Check that main root or admin user/password couple for the server is known and works correctly. Ask them to your Web Hosting Provider if unknown. | | * 检查你的 Apache 服务器, PHP 和数据库 (MySQL or PostGreSQL) 是否正确安装。 |
|
| |
|
| * Get the application archive of last stable version and uncompress it locally.
| | [[File:warning.png]] 警告, 检查PHP服务器和数据库服务器的代码页是否相同(UTF8推荐)。 |
|
| |
|
| * Upload all content of htdocs directory to your web root directory, for example using FTP in binary mode. | | * 检查服务器的主根或管理用户/密码对是已知的,并且工作正常。如果不知道,请向网站托管提供商咨询。 |
|
| |
|
| * Create a directory called "documents" into Dolibarr directory that will serve to save all documents generated and stocked by Dolibarr (PDF invoices, uploaded images, ...). The web server must have write permission into this directory. You can set permissions with your FTP client. | | * 获取最后一个稳定版本的应用程序存档,并在本地解压缩。 |
| | * 将HTDOCS目录的所有内容上传到您的Web根目录,例如使用二进制模式的FTP。 |
|
| |
|
| * Now call your browser to point to the main page index.php | | * 在Dolibarr目录中创建一个名为“documents”的目录,用于保存由Dolibarr生成和存储的所有文档(PDF发票、上传图像、……)。Web服务器必须对该目录具有写入权限。您可以用FTP客户端设置权限。 |
| | * 现在调用你的浏览器指向主页 index.php |
|
| |
|
| * 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. This will lock the call of the install process again (you will have to remove it for upgrades). If this is not done, Dolibarr will show you a warning once logged as an administrator user. | | * 出于安全原因,我们建议,一旦安装完成,就创建一个文件install.lock到只有root用户可以删除的Dolibarr文档目录中。这将再次锁定安装进程的调用(您必须删除此文件以进行升级)。 |
| | 如果没有这样做,Dolibarr将显示一个警告,一旦管理员管理员登录。 |
|
| |
|
| == On a SaaS or Cloud web hosting provider == | | == 关于SaaS或云网络托管提供商 == |
| Dolibarr is also available on a lot of "ready to use" SaaS or Cloud platforms/services that provides preinstalled versions.
| | Dolibarr还提供了许多“准备使用”的SaaS或云平台/服务,提供预装的版本。 |
|
| |
|
| See page [[Cloud Solutions]].
| | 参见 [[Cloud Solutions]]. |
|
| |
|
| Dolibarr can also be installed manually on all Cloud platforms that support PHP and Mysql.
| | Dolibarr也可以手动安装在支持PHP和MySQL的所有云平台上。 |
|
| |
|
| See page [[Cloud Solutions]].
| | 参见 [[Cloud Solutions]]. |
|
| |
|
| = Upgrade Dolibarr = | | = 升级 Dolibarr = |
| This chapter describe process to upgrade an existing installation of Dolibarr from an old version to a new one. Process is same whatever is version you are coming fro and version you are going to, but will differ according to the distribution/operating system you used for your first installation. You should use the same for upgrade.
| | 本章描述了将Dolibarr的现有安装从旧版本升级到新版本的过程。过程是相同的,无论你正在运行哪个版本和升级到哪个版本,但是将根据你第一次安装的分配/操作系统而有所不同。升级时应使用相同的方法。 |
| | | |
| == [[File:Logo_windows.png]] With DoliWamp (Windows .exe package) == | | == [[File:Logo_windows.png]] 使用 DoliWamp (Windows操作系统 .exe 安装包) == |
| * First make a backup of your current installation | | * 首先备份当前安装 |
| * Download new .exe package of DoliWamp. | | * 下载新的 .exe 安装包DoliWamp. |
| * Run downloaded .exe file and follow steps without changing any default values. This will upgrades all your files. | | * 运行下载好的 .exe 文件,在不改变任何默认值的情况下执行步骤。这会升级你所有的文件。 |
| * At the end of the execution, your browser is launched with a page to ask you to run upgrade of your database. Choose the upgrade according to your case. | | * 在执行结束时,您的浏览器将启动一个页面,要求您运行数据库的升级。根据您的情况选择升级。 |
| If there is more than one version late, the page in your browser will loop to start again the upgrade wizard as often as required to run upgrade process, version by version, until your reach the new installed version.
| |
|
| |
|
| == [[File:Logo_ubuntu.png]] With DoliDeb (Debian or Ubuntu .deb package) == | | 如果有超过一个版本迟了,浏览器中的页面将循环重新启动升级向导,按需运行升级过程,版本接版本,直到您到达新安装的版本。 |
| * First make a backup of your current installation | | == [[File:Logo_ubuntu.png]] 使用 DoliDeb (Debian 或者 Ubuntu操作系统 .deb 安装包) == |
| * Process to upgrade using Debian/Ubuntu package is same way than install process (see previous chapters), so it is as easy as installing a package. | | * 首先备份当前安装 |
| You can also read page [[Dolibarr for Ubuntu or Debian]].
| | * 使用Debian /Ubuntu包升级的过程与安装过程相同(见前面章节),因此安装包一样简单。 |
| | 你也可以阅读页面 [[Dolibarr for Ubuntu or Debian]]. |
|
| |
|
| == [[File:Logo_rpm.png|40px]] With DoliRpm (Fedora, Redhat, Mandriva, Mageia or OpenSuse .rpm package) == | | == [[File:Logo_rpm.png|40px]] 使用 DoliRpm (Fedora, Redhat, Mandriva, Mageia 或 OpenSuse操作系统 .rpm 安装包) == |
| * First make a backup of your current installation | | * 首先备份当前安装 |
| * Process to upgrade using rpm package is same way than install process, so it is as easy as installing a package (see previous chapters). | | * 使用RPM包进行升级的过程与安装过程相同,所以安装程序包(见前面章节)很简单。 |
|
| |
|
| == [[File:Gnu.png]] With Dolibarr (standard .zip package) == | | == [[File:Gnu.png]] 使用 Dolibarr (标准 .zip 安装包) == |
| This is tutorial to use when using standard distribution for a manual upgrade.
| | 这是使用标准分发手动升级时使用的教程。 |
|
| |
|
| * First make a backup of your current installation | | * 首先备份当前安装 |
|
| |
|
| * Go into the directory where you installed Dolibarr (it might be the root directory of your web, for example /var/www under Debian) | | * 进入Dolibarr安装目录 (可能是网站根目录, 如 /var/www 在 Debian) |
| <source lang="bash"> | | <source lang="bash"> |
| $ cd /var/www | | $ cd /var/www |
| </source> | | </source> |
|
| |
|
| * Get archive of last version | | * 取得最新版本的安装包 |
| <source lang="bash"> | | <source lang="bash"> |
| $ wget http://www.dolibarr.org/files/dolibarr.zip | | $ wget http://www.dolibarr.org/files/dolibarr.zip |
| </source> | | </source> |
|
| |
|
| * Uncompress the archive | | * 解压安装包 |
| <source lang="bash"> | | <source lang="bash"> |
| $ unzip dolibarr.zip | | $ unzip dolibarr.zip |
| </source> | | </source> |
|
| |
|
| * Copy all new extracted files (the one uncompressed into directory dolibarr-x.y.z) to the directory where you put your old Dolibarr version. This will overwrite old files with new ones without removing files specifics to your installation (like conf.php file or complementary non official installed modules). | | * 复制所有新提取的文件 (the one uncompressed into directory dolibarr-x.y.z) 至老版本的Dolibarr目录中。将会覆盖旧文件而不必逐一删除当前版本的旧文件 (象 conf.php 文件或非官方安装的补充模块). |
| <source lang="bash"> | | <source lang="bash"> |
| $ cp -r dolibarr-x.y.z/* dolibarr | | $ cp -r dolibarr-x.y.z/* dolibarr |
| </source> | | </source> |
|
| |
|
| * If no error, you can now remove the directory of source files | | * 如果没有错误,现在可以删除源文件的目录 |
| <source lang="bash"> | | <source lang="bash"> |
| $ rm -fr dolibarr-x.y.z | | $ rm -fr dolibarr-x.y.z |
| </source> | | </source> |
|
| |
|
| * Now open your Dolibarr in your browser. It should open automatically the install/ | | * 现在在浏览器中打开你的Dolibarr。它应该自动打开 install/ |
| and choose ''Update'' in suggested menu.
| | 并在建议菜单中选择“Update”。 |
| | |
| | |
| | |
| Note:
| |
|
| |
|
| If you want to script the database upgrade process (to avoid the upgrade process from web browser), you can run the 3 upgrade processes from command line:
| | 注: 如果要编写数据库升级过程(以避免Web浏览器升级过程),可以从命令行运行3个升级过程: |
| <source lang="bash"> | | <source lang="bash"> |
| $ cd htdocs/install | | $ cd htdocs/install |
| Line 261: |
Line 258: |
| $ php step5.php oldx.oldy.oldz x.y.z > output3.html | | $ php step5.php oldx.oldy.oldz x.y.z > output3.html |
| </source> | | </source> |
| Note: z must be "0" because only major versions have a migration script to run.
| | 注: z 必为 "0" 因为只有主要版本有迁移脚本才能运行。 |
|
| |
|
| Return code will be 0 if success, 1 if error (if this happens, see file output.html or output2.html).
| | 返回码若成功为0,失败为1 (失败, 查看 output.html 或 output2.html). |
|
| |
|
| Note: If you have a message that tell the install process is locked by a file, remove the file install.lock stored in Dolibarr root directory.
| | 注: 如果您有一个消息告诉安装过程被文件锁定,请删除存储在Dolibarr根目录中的文件install.lock。 |
|
| |
|
| * For security reason, once setup is finished, you should create a file install.lock into Dolibarr documents directory. This will lock the call of the install process again (you will have to remove this file for future upgrades). If this is not done, Dolibarr will show you a warning once logged with an administrator user. | | * 出于安全原因,我们建议,一旦安装完成,就创建一个文件install.lock到只有root用户可以删除的Dolibarr文档目录中。这将再次锁定安装进程的调用(您必须删除此文件以进行升级)。 |
| | 如果没有这样做,Dolibarr将显示一个警告,一旦管理员管理员登录。 |
| <source lang="bash"> | | <source lang="bash"> |
| $ echo > documents/install.lock | | $ echo > documents/install.lock |
| Line 273: |
Line 271: |
| </source> | | </source> |
|
| |
|
| = Setup a LDAP connexion = | | = 设置LDAP 连接 = |
| If you want to use a LDAP: See [[Install and configure OpenLDAP]].
| | 若使用 LDAP: 见 [[Install and configure OpenLDAP]]. |
|
| |
|
| = Import external data = | | = 导入外部数据 = |
| For this operation, read page [[Mass imports]].
| | 见 [[Mass imports]]. |
|
| |
|
| = Setup = | | = 设置 = |
| See page [[First setup|Setup]].
| | 见 [[First setup|Setup]]. |