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.9 32bit & 64bit)
<Apache versions MULTIPE> <PHP versions MULTIPLE> <MySQL Versions MULTIPLE>
<MariaDB versions MULTIPLE> <phpMyAdmin versions MULTIPLE> <MySQL Workbench 8.0.16>

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.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 »

Options: ReplyQuote


Sorry, only registered users may post in this forum.