Accessing PHP projects with WampServer

gamepaulinegameretour Posted messages 13 Status Member -  
Pitet Posted messages 2845 Status Member -
Hey,

A friend installed WampServer on her new computer with Windows 8.1 but she is encountering issues.

The localhost page displays fine, but when she clicks on one of her projects, the browser redirects her to a page like http://projet/ and she gets the message that the webpage is inaccessible.

We uninstalled WampServer and reinstalled different versions but the problem persists.

She remembers that when she installed the new version of WampServer, she had to check a box (private network or public network), and she doesn't know if that's due to that wrong choice.

When we install WampServer, it no longer asks to choose that option.

Without WampServer, she doesn't know how to test her PHP projects anymore.

Do you have a solution?

KISSES AND THANK YOU

5 answers

Pitet Posted messages 2845 Status Member 530
 
Hi,

This is a recent and known bug in the latest version of WAMP server.

Just enter the URL of your project directly in your browser's address bar: http://localhost/mon_projet/

Have a nice day
1
Elidge Posted messages 153 Status Member 5
 
Thank you very much, I had been stuck for several days!
0
Pitet Posted messages 2845 Status Member 530
 
I take advantage of the revival of this post to correct my message.

This is not a bug but a recommendation from the Wamp developer to use Apache's virtual hosts. Everything is explained here: http://forum.wampserver.com/read.php?1,124502
0
JooS Posted messages 2705 Status Member 228
 
Hi,

If the homepage displays normally, then the problem likely comes from the project you are trying to access!
Check if this project has any redirects.

Mark it as resolved when it is fixed...
0
gamepaulinegameretour Posted messages 13 Status Member
 
Hey JooS,

I checked and even a simple project like this one doesn't work:

<?php
$paragraph = "My paragraph is small!";
?>
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="utf-8" />
<title>Simple php project</title>
</head>
<body>
<h1>Simple php project</h1>
<p><?php echo $paragraph; ?></p>
</body>
</html>

So, maybe it's because she checked the private network. On my computer, WampServer has been installed for a long time and I don't remember having to check a box during installation, but it might not have been the same version.

KISSES AND THANK YOU
0
JooS Posted messages 2705 Status Member 228
 
Try completely uninstalling Wamp (even delete the wamp directory), then reinstall it.
Make sure the installed version is up to date, and that no other servers are running (like EasyPHP).
0
canarder Posted messages 2034 Status Member 357
 
Don't pay attention to the Wamp project system, just focus on the structure of your directory.

___/\_canarder_/\___
~Waterfox|Palemoon~
0
gamepaulinegameretour Posted messages 13 Status Member
 
Hey there,

On my computer, I copy the project into wamp/www and it works.

So far, neither she nor I have had any issues with wampserver.

She got a new computer on which she installed the new wampserver.

Since she has Windows 8.1 on her computer, maybe when we uninstall wampserver to install a different version some settings are retained.

We've been searching for over a week but can't find the cause of the issue.

As a result, she is falling behind in class because she doesn't know how to work.

HUGS AND THANK YOU
0
canarder Posted messages 2034 Status Member 357
 
Personally, I install Apache2 and PHP5 (and Mysqld) separately.
0