Hi,
> It is assumed that when I select a project the index.php should be opened by default, but it should not.
NO. It is assumed that when selecting a domain name, i.e. a VirtualHost, the index.php file must be opened by default.
By choosing to "launch" a folder (this is what you do when launching a project) there is no domain name or VirtualHost, so the DirectoryIndex directive cannot be applied.
I repeat the end of the answer of RiggsFolly:
See
The need for Virtual Host and
Wampserver 3 - Create or add a VirtualHost------------------------------------------------------------------------------------------------------------
Wampserver 3.2.0 32 bit - Apache 2.4.41 - PHP 7.4.0/7.3.12/..../5.6.40 - MySQL 5.7.28 - MariaDB 10.4.10
Wampserver 3.2.0 64 bit - Apache 2.4.41 - PHP 7.4.0/7.3.12/..../5.6.40 - MySQL 5.7.28/8.0.18 - MariaDB 10.4.10
PhPMyadmin 4.9.2 - MysqlDumper 1.24.5 on W10 and W7 Pro 64 bit
Documentation Apache -
Documentation PHP -
Documentation MySQL -
Wampserver install files & addons« Ce n'est pas parce qu'ils sont nombreux à avoir tort, qu'ils ont forcément raison. Coluche »
« It's not because they are many to be wrong, they are necessarily right. Coluche »