The index of a project does not open
Posted by: prox108 (---.cm.vtr.net)
Date: January 05, 2019 05:37PM

When I access the localhost and select a project, it redirects me to a page that says "Unable to access this website, it was not possible to find the IP address of the site1 server". It is assumed that when I select a project the index.php should be opened by default, but it should not.
Does anyone know how to fix it?
Here I leave a part of my httpd.conf related to this problem:

#DirectoryIndex: sets the file that Apache will serve if a directory
#is requested.
#
<IfModule dir_module>
DirectoryIndex index.php index.php3 index.html index.htm
</IfModule>

#

Options: ReplyQuote
Re: The index of a project does not open
Posted by: RiggsFolly (Moderator)
Date: January 05, 2019 05:59PM

Hi,

Please start all new questions with the answers to ALL of these question READ (and answer) BEFORE YOU ASK A QUESTION{/url]

And then read this thread [
forum.wampserver.com] and then this one [forum.wampserver.com]

---------------------------------------------------------------------------------------------
(Windows 10 Pro 64bit) (Wampserver 3.1.3 32bit & 64bit)
<Apache 2.4.29/2.2.31> <PHP 7.2/7.1/7.0/5.6/5.5/5.4> <MySQL 5.7.19/5.6.39/5.5.28>
<MariaDB 10.2.14> <phpMyAdmin4.8.1> <MySQL Workbench 6.3.10>

Read The Manuals Apache -- MySQL -- PHP -- phpMyAdmin
Get your Apache/MySQL/mariaDB/PHP ADDONs here from the WAMPServer alternate Repo
-X-X-X- Backup your MySQL databases regularly Here is How dont regret it later! Yes even when developing -X-X-X-

Options: ReplyQuote
Re: The index of a project does not open
Posted by: Otomatic (Moderator)
Date: January 05, 2019 06:11PM

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.1.7 32 bit - Apache 2.4.38 - PHP 7.3.1/7.2.14/7.1.26/7.0.33/5.6.40 - MySQL 5.7.25 - MariaDB 10.3.12
Wampserver 3.1.7 64 bit - Apache 2.4.38 - PHP 7.3.1/7.2.14/7.1.26/7.0.33/5.6.40 - MySQL 5.7.25/8.0.14 - MariaDB 10.3.12
PhPMyadmin 4.8.4 - 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 »

Options: ReplyQuote


Sorry, only registered users may post in this forum.