Line 473:
Line 473:
If other programs already use either port '''3306''' or port '''80''', you will need to choose another port on which the Database Server '''MariaDB''' or the Web Server '''Apache2''' will be available.
If other programs already use either port '''3306''' or port '''80''', you will need to choose another port on which the Database Server '''MariaDB''' or the Web Server '''Apache2''' will be available.
−
====How do I know if a program is already occupying a specific port?=====
+
====How do I know if a program is already occupying a specific port?====
If you try to install the Database Server '''MariaDB''' or the Windows "Service" of the Web Server '''Apache2''' on a port which is already occupied by another program, you will encounter an error.
If you try to install the Database Server '''MariaDB''' or the Windows "Service" of the Web Server '''Apache2''' on a port which is already occupied by another program, you will encounter an error.
Line 481:
Line 481:
[[File:Moniteur de ressources Windows.png|none|thumb|516x516px|Run the '''Resource Monitor''' software application of Windows|link=Special:FilePath/Moniteur_de_ressources_Windows.png]]
[[File:Moniteur de ressources Windows.png|none|thumb|516x516px|Run the '''Resource Monitor''' software application of Windows|link=Special:FilePath/Moniteur_de_ressources_Windows.png]]
+
+
*In the '''Resource Monitor''', click on the '''Network''' tab.
+
*In the '''Listening Ports''' section, sort the column '''Port''' to be able to search more easily.
+
*In the '''Port''' column, search for the port you are interested in (for example '''80''' for the standard port of the Web Server '''Apache2''' or '''3306''' for the Database Server '''MariaDB''').
+
+
[[File:Ports d'écoute Windows.png|none|frame|A program "listen" already on port '''80''', it is '''httpd.exe''' (i.e. '''Apache2''').|link=Special:FilePath/Ports_d'écoute_Windows.png]]
+
+
If you can't find a line for the port number you are looking for, then that's fine (this means that no program is listening on that port and therefore it is available).
+
+
If, on the other hand, you find a match, then a program is already listening on this port and you will have to choose another listening port when you install your server.
+
+
====Choose another port than the default 3306 for MariaDB====
+
On the fifth page of the '''MariaDB''' installer, enter another port in the box '''TCP port:''' (eg '''3308''' - but make sure the port you choose is not already in use using the technique specified above).
+
+
After you change port for '''MariaDB''', when you install Dolibarr, when you enter port in section '''Dolibarr database''', don't forget to enter the replacement port you chose instead of standard port '''3306'''.
+
+
====Choose another port than the default 80 for Apache2====
+
When customizing the '''Apache2''' configuration file, replace the line <code>ServerName localhost:80</code> by <code>ServerName localhost:<my_port></code> to specify another port (for example <code>ServerName localhost: 8080</code> to use port '''8080''' - but make sure the port you choose is not already in use by using the technique specified above). You will also need to replace the <code>80</code> of the <code>Listen 80</code> : line with the port number you choose.
+
+
After changing the listening port, you will need to specify the port in the addresses you type in your browser: for example <code>http://localhost:8080</code>, <code>http://localhost:8080/test</code>, <code>http://localhost:8080/dolibarr</code>, etc. instead of <code>http://localhost</code>, <code>http://localhost/test</code>, <code>http://localhost/dolibarr</code>.
+
<br />