Wampserver 2.5 problem with the url: /localhost/project
Posted by: KevinV (190.85.178.---)
Date: May 22, 2014 04:42PM

Hello, I installed the wampserver 2.5, and when I open any of my projects are on the path c :/wamp/www/, does not open the url: /localhost/project, but it opens /project, and did not find the project.

i have: windows 7, the apache server, php and mysql are running correctly, and the wamp icon is green.


How can I fix this?

Thanks.



Edited 1 time(s). Last edit at 05/22/2014 04:51PM by KevinV.

Options: ReplyQuote
Re: Wampserver 2.5 problem with the url: /localhost/project
Posted by: Otomatic (Moderator)
Date: May 22, 2014 06:06PM

Hi,

You must use VirtualHost : [forum.wampserver.com]

However, you can continue to run your projects (http://localhost/project/); To do this, in the wamp/www/index.php replace "$suppress_localhost = true;" with "$suppress_localhost = false;". But it is a VERY BAD SOLUTION.

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



Edited 1 time(s). Last edit at 05/22/2014 07:30PM by Otomatic.

Options: ReplyQuote
Re: Wampserver 2.5 problem with the url: /localhost/project
Posted by: KevinV (190.85.178.---)
Date: May 22, 2014 09:27PM

Ok thanks, but is it a problem or new feature in wampserver?

Options: ReplyQuote
Re: Wampserver 2.5 problem with the url: /localhost/project
Posted by: Otomatic (Moderator)
Date: May 23, 2014 12:43PM

Hi,

This is not a new feature, it is AS IT, using the "VirtualHost" a server MUST work.
Now you are free to not use the "VirtualHost", but after, do not come to complain that there are "things" that are not or poorly functioning.

Modification to add (or not) localhost in project urls

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

Options: ReplyQuote
Re: Wampserver 2.5 problem with the url: /localhost/project
Posted by: khubbaib (39.49.7.---)
Date: June 20, 2014 03:19PM

i also faced this problem and i fixed it follow the steps and fixed the problem

open index.php and goto line no 338 and replace the following line
$projectContents .= '<li><a href="'.($suppress_localhost ? 'http://localhost/' : '').$file.'">'.$file.'</a></li>';
thats it

Options: ReplyQuote
Re: Wampserver 2.5 problem with the url: /localhost/project
Posted by: RiggsFolly (---.dynamic.dsl.as9105.com)
Date: June 20, 2014 03:21PM

That too is a VERY BAD SOLUTION

Bite the bullet and create a virtual host sfor each of your projects, it will pay dividends later.40

---------------------------------------------------------------------------------------------
(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: Wampserver 2.5 problem with the url: /localhost/project
Posted by: hfma (---.102.29.171.rev.optimus.pt)
Date: June 21, 2014 12:57AM

I have a perfect solution INSTALL XAMPP, simple.

Options: ReplyQuote


Sorry, only registered users may post in this forum.