WAMP Not Showing Poject Files as Tree Structure
Posted by: infotnm (---.slt.lk)
Date: April 02, 2016 07:35AM

I'm on Windows 10 64 bit and WAMP 3.0.0

i have successfully installed WAMP and have Configured Virtual host. but when i click project names on WAMP homepage it is only runs the index page. i want to see all files in tree structure. any solution Please

Succefully edited httpd-vhosts.conf and added those entries in host file also



<VirtualHost *:80>
DocumentRoot "C:/wamp64/www/"
ServerName localhost
ServerAlias localhost
</VirtualHost>

<VirtualHost *:80>
DocumentRoot "C:/wamp64/www/my-site/"
ServerName my-site
ServerAlias my-site
</VirtualHost>

<VirtualHost *:80>
DocumentRoot "C:/wamp64/www/eg/"
ServerName eg
ServerAlias eg
</VirtualHost>

Options: ReplyQuote
Re: WAMP Not Showing Poject Files as Tree Structure
Posted by: Otomatic (Moderator)
Date: April 02, 2016 09:30AM

Hi,

> Succefully edited httpd-vhosts.conf
No. Your VirtualHost are poorly defined. Read on and take example: The need for Virtual Host

> i want to see all files in tree structure.
I would like to see all the files in the tree.
Put a .htaccess file at the root with:
Options +Indexes

---------------------------------------------------------------
Documentation Apache - Documentation PHP - Documentation MySQL - Wampserver install files & addons

Options: ReplyQuote
Re: WAMP Not Showing Poject Files as Tree Structure
Posted by: RiggsFolly (Moderator)
Date: April 02, 2016 01:08PM

Hi,

You can also add the

Options +Indexes

To the specific Virtual Host that you want this feature in. Thats what makes VH's so good, you can configure each of your projects specific to their needs.

---------------------------------------------------------------------------------------------
(Windows 10 Pro 64bit) (Wampserver 3.3.4 64bit) Aestan Tray Menu 3.2.5.4
<Apache versions MULTIPE> <PHP versions MULTIPLE> <MySQL Versions MULTIPLE>
<MariaDB versions MULTIPLE> <phpMyAdmin versions MULTIPLE> <MySQL Workbench 8.0.23>

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 databases regularly Here is How dont regret it later! Yes even when developing -X-X-X-

Options: ReplyQuote
Re: WAMP Not Showing Poject Files as Tree Structure
Posted by: infotnm (---.slt.lk)
Date: April 02, 2016 01:13PM

i'm sorry i cant understand how to

"Put a .htaccess file at the root with:

Options +Indexes"


i folllowed the THE NEED for VIRTUAL HOSTS guide and the issue is still same. When i click Project folder listed on WAMP homepage i get error saying

"Not Found

The requested URL / was not found on this server.
Apache/2.4.17 (Win64) PHP/5.6.16 Server at my-site Port 80 "

but if there is a file named INDEX then the wamp is loading that index files.

assume that there is project folder called "my-site" and inside the folder there is a PHP file named HelloWorld.PHP. in order to run this HelloWorld file i Should type full URL on the address bar. it's really annoying.


here is the edited httpd-vhosts.conf file.

<VirtualHost *:80>
DocumentRoot "c:/wamp64/www"
ServerName localhost
ServerAlias localhost
<Directory "c:/wamp/www">
AllowOverride All
Require local
</Directory>
</VirtualHost>

<VirtualHost *:80>
DocumentRoot "C:/wamp64/www/my-site"
ServerName my-site
<Directory "c:/wamp/www/my-site">
AllowOverride All
Require local
</Directory>
</VirtualHost>

Options: ReplyQuote
Re: WAMP Not Showing Poject Files as Tree Structure
Posted by: infotnm (---.slt.lk)
Date: April 02, 2016 01:16PM

RiggsFolly Wrote:
-------------------------------------------------------
>
> Options +Indexes
>
>

how to add this entry?

Options: ReplyQuote
Re: WAMP Not Showing Poject Files as Tree Structure
Posted by: infotnm (---.slt.lk)
Date: April 02, 2016 01:20PM

Otomatic Wrote:
-------------------------------------------------------
> Hi,
>
> > Succefully edited httpd-vhosts.conf
> No. Your VirtualHost are poorly defined. Read on
> and take example:
> [url=http://forum.wampserver.com/read.php?2,127757
> ]The need for Virtual Host[/url]
>
> > i want to see all files in tree structure.
> [i]I would like to see all the files in the
> tree.[/i]
> Put a .htaccess file at the root with:
> [code]Options +Indexes[/code]



i'm sorry i cant understand how to

"Put a .htaccess file at the root with:

Options +Indexes"


i folllowed the THE NEED for VIRTUAL HOSTS guide and the issue is still same. When i click Project folder listed on WAMP homepage i get error saying

"Not Found

The requested URL / was not found on this server.
Apache/2.4.17 (Win64) PHP/5.6.16 Server at my-site Port 80 "

but if there is a file named INDEX then the wamp is loading that index files.

assume that there is project folder called "my-site" and inside the folder there is a PHP file named HelloWorld.PHP. in order to run this HelloWorld file i Should type full URL on the address bar. it's really annoying.


here is the edited httpd-vhosts.conf file.


<VirtualHost *:80>
DocumentRoot "c:/wamp64/www"
ServerName localhost
ServerAlias localhost
<Directory "c:/wamp/www">
AllowOverride All
Require local
</Directory>
</VirtualHost>

<VirtualHost *:80>
DocumentRoot "C:/wamp64/www/my-site"
ServerName my-site
<Directory "c:/wamp/www/my-site">
AllowOverride All
Require local
</Directory>
</VirtualHost>

Options: ReplyQuote
Re: WAMP Not Showing Poject Files as Tree Structure
Posted by: Otomatic (Moderator)
Date: April 02, 2016 02:01PM

Hi,

> i folllowed the THE NEED for VIRTUAL HOSTS guide and the issue is still same.
> When i click Project folder listed on WAMP homepage i get error saying

You can not run a local site by Projects list.
You must launch by the list in the Your VirtualHost localhost Homepage or Wampmamanger Icon, Your VirtualHost.
Another solution is to launch by the browser address bar by typing, for example (http://mylocalsite/) (without the parenthesis).

> HelloWorld file i Should type full URL on the address bar. it's really annoying.
It is "normal". If you want the site goes on automaticaly without typing the name of the file, this file MUST be nammed index.php.

> i'm sorry i cant understand how to "Put a .htaccess file at the root with:
Create a text file nammed ".htaccess" (Without the quotes) with the content of this file is
Options +Indexes

---------------------------------------------------------------
Documentation Apache - Documentation PHP - Documentation MySQL - Wampserver install files & addons

Options: ReplyQuote
Re: WAMP Not Showing Poject Files as Tree Structure
Posted by: RiggsFolly (Moderator)
Date: April 02, 2016 02:09PM

Hi,

There are a number of reasons why people install WAMPServer. Those that know how to develop web site under Apache/MySQL/PHP and those that dont yet know how to do this.

I think you fit into the second group.

There are 100's of things that you can configure in Apache and also 100's of configurations for MySQL and PHP.

If you are not yet familiar with web sites under Apache and how they work, it is your job to read the manuals, work out how things work. It is not our job to lead you by the hand in this learning process.


But here is your first lesson:

If you want a script to run automatically when you enter the domain name 'http://my-site` in your browsers address bar you call that script "index.php".
You then add menus of some sort to that script using HTML/Javascript etc so that a user can jump to individual pages/script in your website.

Using this new found knowledge you should be able to work out that if you change the script `HelloWorld.PHP` to be called `index.php` your issue will be solved without any configuration chnage at all.

Also it is best to use lower case for all your web page file names.

---------------------------------------------------------------------------------------------
(Windows 10 Pro 64bit) (Wampserver 3.3.4 64bit) Aestan Tray Menu 3.2.5.4
<Apache versions MULTIPE> <PHP versions MULTIPLE> <MySQL Versions MULTIPLE>
<MariaDB versions MULTIPLE> <phpMyAdmin versions MULTIPLE> <MySQL Workbench 8.0.23>

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 databases regularly Here is How dont regret it later! Yes even when developing -X-X-X-

Options: ReplyQuote
Re: WAMP Not Showing Poject Files as Tree Structure
Posted by: Otomatic (Moderator)
Date: April 02, 2016 02:39PM

Hi,

Quote
RiggsFolly
Also it is best to use lower case for all your web page file names.
Yes, oh yes, a thousand times yes.
From the beginning, the Windows operating system is case-insensitive file names.
For Windows, a file named foo.php is the same as a file named Foo.php but not for Unix or Linux.

So if developing on Windows, you have a file named Foo.php with in your code for example, require ('foo.php'); It will work without any problems on Windows, but if you transfer your site to a host using Unix or Linux, you will have the unpleasant surprise of a fatal error like "file foo.php not found".

---------------------------------------------------------------
Documentation Apache - Documentation PHP - Documentation MySQL - Wampserver install files & addons

Options: ReplyQuote


Sorry, only registered users may post in this forum.