localhost opening different windows
Posted by: pedro147 (---.pa.nsw.optusnet.com.au)
Date: August 11, 2014 06:00AM

I have just started using WAMP which I have set up on two different computers. On one I can access the localhost by 'localhost' or '127.0.0.1' in the browser address bar and it opens at index of/ page like this [imgur.com] which is good because if I click on any of the directory names it opens the relevant directories index.php file.
The other computer, on which I thought I had WAMP installed exactly the same way, opens at the landing page [imgur.com] but when I click on the 'Your Projects' links nothing opens because it is trying to presumably open a folder rather than being directed to the index.php file of that folder. I realise that I can open each of the projects by using for example [localhost] it is much more convenient to have the index of/ page open. What have I done that has resulting in these two different situations please. Thanks Pedro.

Options: ReplyQuote
Re: localhost opening different windows
Posted by: RiggsFolly (---.dynamic.dsl.as9105.com)
Date: August 11, 2014 09:56AM

Hi,

First this is how WampServer should look when you open 'localhost'.

If you dont get this, then I assume you have removed or replaced the existing code in \wamp\www

Second, even when you are using sub folders in the \wamp\www folder, it is advised to create a Virtual Hosts definition for each seperate project. [url=http://forum.wampserver.com/read.php?2,124482[See this document for help on that process[/url]

---------------------------------------------------------------------------------------------
[color=blue](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>[/color]
[b]Read The Manuals[/b] [URL=http://httpd.apache.org/docs/2.4/]Apache[/URL] -- [URL=http://dev.mysql.com/doc/refman/5.7/en/]MySQL[/URL] -- [URL=http://www.php.net/docs.php]PHP[/URL] -- [url=http://www.phpmyadmin.net/home_page/docs.php]phpMyAdmin[/url]
Get your Apache/MySQL/mariaDB/PHP ADDONs here from the [url=http://wampserver.aviatechno.net/][color=#EA4D00]WAMPServer alternate Repo[/color][/url]
-X-X-X- [color=red]Backup your databases regularly [URL=http://dev.mysql.com/doc/refman/5.7/en/backup-and-recovery.html]Here is How[/url] dont regret it later! Yes even when developing[/color] -X-X-X-

Options: ReplyQuote
Re: localhost opening different windows
Posted by: pedro147 (---.dyn.iinet.net.au)
Date: August 11, 2014 10:50AM

Thanks for your reply. As i am just using WAMP so I can view some very basic html pages with php inserts I think it is easier for me to just open my projects with the "127.0.0.7/MyProjectName" address, but I will try and understand and implement this virtual hosts definition that you directed me too. Thanks again Pedro.

Options: ReplyQuote
Re: localhost opening different windows
Posted by: pedro147 (---.dyn.iinet.net.au)
Date: August 12, 2014 07:46AM

Just in case anyone else ever creates this problem for themselves :-) I worked out that I had deleted the default index.php file in the wamp/www folder and this caused the localhost to open at the indexof/ page

Options: ReplyQuote


Sorry, only registered users may post in this forum.