Dolibarr - Forbidden

Bonjour à tous,

Suite à un changement d’IP de mon serveur Dolibarr j’obtiens le message d’erreur « You don’t have permission to access / on this server. » dans mon navigateur.

Cela doit provenir de la couche sécurité d’Apache je suppose mais je ne trouve pas dans quel fichier de config je pourrais vérifier cela.

Pour information, je tourne sur un WS 2016 (Apache 2.4.9 | DoliWamp | Dolibarr V11).

D’avance merci pour votre aide !

Bonjour :slightly_smiling_face:
Sans doute avez-vous configuré dans le conf.php :

// $dolibarr_main_restrict_ip
// To restrict access to backoffice to some ip addresses only.
// Note: Pages that does not need login (like public pages, web site) are not protected with this.
// Default value: ''
// Examples:
// $dolibarr_main_restrict_ip='127.0.0.1, 192.168.0.1';
//
$dolibarr_main_restrict_ip='';

Bonjour,

Je viens de vérifier dans le fichier " conf.php " se trouvant dans le répertoire " C:\wamp\www\dolibarr\htdocs\conf ".

Voici sa configuration :

//
// File generated by Dolibarr installer 8.0.2 on 03 Oct. 2018
//
// Take a look at conf.php.example file for an example of conf.php file
// and explanations for all possibles parameters.
//
$dolibarr_main_url_root='http://dolibarr';
$dolibarr_main_document_root='C:/wamp/www/dolibarr/htdocs';
$dolibarr_main_url_root_alt='/custom';
$dolibarr_main_document_root_alt='C:/wamp/www/dolibarr/htdocs/custom';
$dolibarr_main_data_root='C:/wamp/www/dolibarr/documents';
$dolibarr_main_db_host='localhost';
$dolibarr_main_db_port='3306';
$dolibarr_main_db_name='dolibarr';
$dolibarr_main_db_prefix='llx_';
$dolibarr_main_db_user='dolibarr';
$dolibarr_main_db_pass='TVDM';
$dolibarr_main_db_type='mysqli';
$dolibarr_main_db_character_set='utf8';
$dolibarr_main_db_collation='utf8_unicode_ci';
// Authentication settings
$dolibarr_main_authentication='dolibarr';

//$dolibarr_main_demo='autologin,autopass';
// Security settings
$dolibarr_main_prod='0';
$dolibarr_main_force_https='0';
$dolibarr_main_restrict_os_commands='mysqldump, mysql, pg_dump, pgrestore';
$dolibarr_nocsrfcheck='0';
$dolibarr_main_cookie_cryptkey='bcedf82eec8835b844180d9b4a1c8b71';
$dolibarr_mailing_limit_sendbyweb='0';

//$dolibarr_lib_FPDF_PATH='';
//$dolibarr_lib_TCPDF_PATH='';
//$dolibarr_lib_FPDI_PATH='';
//$dolibarr_lib_TCPDI_PATH='';
//$dolibarr_lib_ADODB_PATH='';
//$dolibarr_lib_GEOIP_PATH='';
//$dolibarr_lib_NUSOAP_PATH='';
//$dolibarr_lib_PHPEXCEL_PATH='';
//$dolibarr_lib_ODTPHP_PATH='';
//$dolibarr_lib_ODTPHP_PATHTOPCLZIP='';
//$dolibarr_js_CKEDITOR='';
//$dolibarr_js_JQUERY='';
//$dolibarr_js_JQUERY_UI='';
//$dolibarr_js_JQUERY_FLOT='';

//$dolibarr_font_DOL_DEFAULT_TTF='';
//$dolibarr_font_DOL_DEFAULT_TTF_BOLD='';

Je ne retrouve malheureusement pas l’attribut " $dolibarr_main_restrict_ip ", je suppose donc que je ne suis pas dans le bon fichier :frowning:

Je vous joint ci-dessous les derniers LOG Apache et Access :

|| APACHE_ERROR.log || 

[Tue Apr 21 10:47:07.847186 2020] [authz_core:error] [pid 3376:tid 1116] [client 10.10.1.210:54802] AH01630: client denied by server configuration: C:/wamp/www/theme, referer: http://srv-dolibarr/dolibarr/
[Tue Apr 21 10:47:07.907107 2020] [authz_core:error] [pid 3376:tid 1124] [client 10.10.1.210:54803] AH01630: client denied by server configuration: C:/wamp/www/core, referer: http://srv-dolibarr/dolibarr/
[Tue Apr 21 10:47:08.016460 2020] [authz_core:error] [pid 3376:tid 1124] [client 10.10.1.210:54803] AH01630: client denied by server configuration: C:/wamp/www/viewimage.php, referer: http://srv-dolibarr/dolibarr/
[Tue Apr 21 10:47:08.188350 2020] [authz_core:error] [pid 3376:tid 1124] [client 10.10.1.210:54803] AH01630: client denied by server configuration: C:/wamp/www/core, referer: http://srv-dolibarr/dolibarr/
[Tue Apr 21 10:47:10.519942 2020] [authz_core:error] [pid 3376:tid 1124] [client 10.10.1.210:54803] AH01630: client denied by server configuration: C:/wamp/www/
[Tue Apr 21 10:47:10.805934 2020] [authz_core:error] [pid 3376:tid 1124] [client 10.10.1.210:54803] AH01630: client denied by server configuration: C:/wamp/www/favicon.ico, referer: http://srv-dolibarr/
[Tue Apr 21 10:49:31.709750 2020] [authz_core:error] [pid 3376:tid 1116] [client 10.10.1.210:54849] AH01630: client denied by server configuration: C:/wamp/www/
[Tue Apr 21 10:49:32.200467 2020] [authz_core:error] [pid 3376:tid 1116] [client 10.10.1.210:54849] AH01630: client denied by server configuration: C:/wamp/www/favicon.ico, referer: http://srv-dolibarr/
[Tue Apr 21 10:49:34.551143 2020] [authz_core:error] [pid 3376:tid 1116] [client 10.10.1.210:54849] AH01630: client denied by server configuration: C:/wamp/www/
[Tue Apr 21 10:49:34.801102 2020] [authz_core:error] [pid 3376:tid 1116] [client 10.10.1.210:54849] AH01630: client denied by server configuration: C:/wamp/www/favicon.ico, referer: http://srv-dolibarr/

|| ACCESS.log || 

10.10.1.211 - - [21/Apr/2020:10:43:49 +0200] "GET / HTTP/1.1" 200 5274
10.10.1.211 - - [21/Apr/2020:10:43:50 +0200] "GET /index.php?img=pngLogo HTTP/1.1" 200 3058
10.10.1.211 - - [21/Apr/2020:10:43:50 +0200] "GET /index.php?img=pngPlugin HTTP/1.1" 200 548
10.10.1.211 - - [21/Apr/2020:10:43:50 +0200] "GET /index.php?img=pngFolderGo HTTP/1.1" 200 694
10.10.1.211 - - [21/Apr/2020:10:43:50 +0200] "GET /index.php?img=pngFolder HTTP/1.1" 200 850
10.10.1.211 - - [21/Apr/2020:10:43:50 +0200] "GET /index.php?img=pngWrench HTTP/1.1" 200 741
10.10.1.211 - - [21/Apr/2020:10:43:50 +0200] "GET /index.php?img=pngLogo HTTP/1.1" 200 3058
10.10.1.211 - - [21/Apr/2020:10:43:51 +0200] "GET /index.php?img=pngPlugin HTTP/1.1" 200 548
10.10.1.211 - - [21/Apr/2020:10:43:51 +0200] "GET /index.php?img=pngFolderGo HTTP/1.1" 200 694
10.10.1.211 - - [21/Apr/2020:10:43:51 +0200] "GET /index.php?img=pngFolder HTTP/1.1" 200 850
10.10.1.211 - - [21/Apr/2020:10:43:51 +0200] "GET /index.php?img=pngWrench HTTP/1.1" 200 741
10.10.1.210 - - [21/Apr/2020:10:47:03 +0200] "GET /dolibarr/ HTTP/1.1" 200 6407
10.10.1.210 - - [21/Apr/2020:10:47:07 +0200] "GET /theme/eldy/style.css.php?lang=fr_FR&theme=eldy&userid=0&entity=1&layout=classic&version=11.0.1&revision= HTTP/1.1" 403 321
10.10.1.210 - - [21/Apr/2020:10:47:07 +0200] "GET /core/js/lib_head.js.php?lang=fr_FR&layout=classic&version=11.0.1 HTTP/1.1" 403 320
10.10.1.210 - - [21/Apr/2020:10:47:08 +0200] "GET /viewimage.php?cache=1&modulepart=mycompany&file=logos%2Fthumbs%2FLOGO_PNG_small.png HTTP/1.1" 403 310
10.10.1.210 - - [21/Apr/2020:10:47:08 +0200] "GET /core/js/lib_head.js.php?lang=fr_FR&layout=classic&version=11.0.1 HTTP/1.1" 403 320
10.10.1.210 - - [21/Apr/2020:10:47:10 +0200] "GET / HTTP/1.1" 403 297
10.10.1.210 - - [21/Apr/2020:10:47:10 +0200] "GET /favicon.ico HTTP/1.1" 403 308
127.0.0.1 - - [21/Apr/2020:10:49:07 +0200] "GET / HTTP/1.1" 200 5244
10.10.1.210 - - [21/Apr/2020:10:49:29 +0200] "GET /dolibarr/ HTTP/1.1" 200 6407
10.10.1.210 - - [21/Apr/2020:10:49:31 +0200] "GET / HTTP/1.1" 403 297
10.10.1.210 - - [21/Apr/2020:10:49:32 +0200] "GET /favicon.ico HTTP/1.1" 403 308
10.10.1.210 - - [21/Apr/2020:10:49:34 +0200] "GET / HTTP/1.1" 403 297
10.10.1.210 - - [21/Apr/2020:10:49:34 +0200] "GET /favicon.ico HTTP/1.1" 403 308

Merci :slight_smile:

Bonjour,

Le probléme ne vient pas de dolibarr mais de votre serveur Web :

Il interdit d’acceder aux fichiers.

Bonjour à tous,

Le problème venait en fait d’un problème dans le fichier « Virtual Host » de l’application Dolibarr.
L’ancienne IP de mon serveur y étais renseignée…

Désolé pour le dérangement !

Bonne journée.

Bonjour :slightly_smiling_face:
Si vous avez capture d’écran ou autre n’hésitez pas afin de partager avec d’autres qui rencontrerai la même erreur.