localhost menu fails to find 'my project' from the 'Your Projects' list
Posted by: stevestav (---.20-2.cable.virginm.net)
Date: May 21, 2015 10:10PM

Hi,

I'm running Windows 7 Professional 64 bit

I just installed WAMPServer (64 Bits & PHP 5.5) 2.5, which contains:

Apache: 2.4.9
MySQL: 5.6.17
PHP: 5.5.12
PHPMyAdmin: 4.1.14
SqlBuddy: 1.3.3
XDebug: 2.2.5

I created a new folder called test in the wamp/www folder, which then appeared in the 'Your Projects' list in the localhost menu.

I created a test index.html file and placed it in the 'test' folder.
ie. in C;/wamp/www/test

The WAMPserver icon is green.

I navigate to the localhost screen.

Upon selection of the 'test' project, in the 'Your Projects' list, the browser displays that it cannot find 'test'.

NB. the url displayed in the url line is 'test/'

I would have thought it would be preceded by the localhost.

Can anyone advise what they think is wrong here?

Many thanks

Steve

Options: ReplyQuote
Re: localhost menu fails to find 'my project' from the 'Your Projects' list
Posted by: p4md4 (---.telecel.com.py)
Date: May 22, 2015 01:57AM

Hello,

I also found the same problem,

we could try looking for the file first:
C: \ server \ www \ index.php

and look for the following line:
$projectContents .= '<li><a href="'.($suppress_localhost ? 'http://' : '').$file.'">'.$file.'</a></li>';

Commenting on the same;
and / or replace by:
$projectContents .= '<li><a href="'.$file.'">'.$file.'</a></li>';

then you tell us your result

Options: ReplyQuote
Re: localhost menu fails to find 'my project' from the 'Your Projects' list
Posted by: Otomatic (Moderator)
Date: May 22, 2015 09:36AM

Hi,

By doing this, you are exposed to problems later on.
A local site, it must be: (http://my-webite/) AND NOT (http://localhost/my-website/)
You must use VirtualHost

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

Options: ReplyQuote
Re: localhost menu fails to find 'my project' from the 'Your Projects' list
Posted by: stevestav (---.20-2.cable.virginm.net)
Date: May 22, 2015 01:58PM

Hi p4md4,

Thank you, that worked. It all works fine now. Howver, I note that we have now reverted it back to its original state, according to the documented change by WAMP Developers. Was their change wrong? Or was this change have a dependency on Virtual Server usage - which was not documented (that I can see) anywhere?

Also, what about Otomatic's response? This is the first I hear of using Virtual Host, which I know nothing about. I'll examine the link Otomatic provided.

Optomatic, what kind of problems are you warning us about? Perhaps the problems will only be encountered if certain actions are performed, which may not happen in my environment and so not be a problem. It would be good to know what kind of problems can occur, so one can understand, use VirtualHost and prepare for them if necessary.

Many Thanks

Steve

==== UPDATE ==== UPDATE ===

Optomatic, I have followed your link, read the content and now totally understand. Thank you. Please ignore my queries to you. I will implement the recommendations.

Thank you. Thank you all for your help.

Steve



Edited 3 time(s). Last edit at 05/22/2015 02:37PM by stevestav.

Options: ReplyQuote
Re: localhost menu fails to find 'my project' from the 'Your Projects' list
Posted by: Otomatic (Moderator)
Date: May 22, 2015 03:20PM

Hi,

> Virtual Server usage - which was not documented (that I can see) anywhere?
Apache <VirtualHost> Directive
Apache Virtual Host documentation
Name-based Virtual Host Support

The Apache brotherhood took pein to write documentation detailed, precise and multilingual; it is not for nothing.
ALL hosters, using Apache, use VirtualHost; you do not realize it, precisely because it is the best method to host sites.
If you do not do it locally, with any server, Wampserver or other, inevitably you will have problems even more important if you use Web applications like Joomla or Wordpress, but they are not alone. So use the right methods, from the beginning.

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

Options: ReplyQuote


Sorry, only registered users may post in this forum.