So I had installed Wamp and had it running fine. I just fired it up today and noticed it isn't working properly.
Lets say I want to view the files in the game folder.
so http://localhost/game/index.php
what it seems to do is go to http://game/index.php and misses the localhost part.
Another thing I noticed is in the Apache logs.
it shows cann't find file F:\wamp\www\fav.jpg
but the fav file is in the game folder.
So it's making me wonder if some where some paths are not set correctly?
Even the index.php cannot load the database, even though the tables exit and have the correct database logins.
Although i bet it isn't your problem, are you running Skype while trying to use WAMP? If so, then that's the problem because they both use the same ports.
If your Wamp Server Model is Wamp Server 3.0.6, just right click it, then point your mouse to Wamp Settings and enable Add localhost in url... this should work
You can update "urlAddLocalhost" variable in "wamp64/wampmanager.conf" file to on/off. By default it is "off".
My wamp version is 3.0.6.
urlAddLocalhost = "off"
Related
I used windows 10 as the operating system and I installed xampp it's been a long time and it chews well, until yesterday after an error in mysql.
So I looked for solutions on the internet and I finally solved the error by copying the files from C:\xampp\mysql\backup to C:\xampp\mysql\data.
then the service mysql is well marketed even as Apache.
PhpMyadmin chews well without a problem. phpmyadmin page shows, but my code, will not show.
The problem is: my old projects exist in htdocs only display "This page does not work" and "localhost" in the title head, and nothing loads from my project files.
Note: I used codeigniter as a framework.
Note: I can navigate to a new project but for existing projects beyond that it no longer works.
Thank you P.al
Use Directly like-
http://localhost/projects/form.html
Here your files should be inside C:\XAMPP\htdocs\Projects\yourfile.html
The error in your picture appear an php script error
Edit php.ini for display error and notice in browser
display_errors = on
save the php.ini restart apache and reload page.
i have another question. I am using WAMP as my local server. I have this file index.htm. The problem now is when I try to edit this file and reload localhost in the browser nothing' changed. But when i double click the html file to open it without WAMP server it diplays the edited one. I don't know why..
it's working now. I only have to put all files inside WWW folder and not inside another folder. Thanks everybody for the help..
Check that the index.htm is in the correct (WAMP) directory (usually c:\wamp\www)
Check WAMP is running
Personally i use XAMPP for mac (they have a windows version too) and place your Websites in /Applications/XAMPP/htdocs/ and access them via (http://localhost/) or you put your Websites in the Sites-Folder in your Home and access them via (http://localhost/~username/).
Obviously if you use windows the paths will be different, but XAMPP will provide you with a help screen on first boot.
I have installed Apache2.2 on my computer, PHP 5, and MySQL. Everything was working fine until last night. Suddenly, I could no longer connect to the localhost. I think my computer was infected with a trojan, but that has since been removed and I am unable to reconnect to my localhost.
I have updated my hosts file Windows(C:)/Windows/System32/drivers/etc hosts in notepad: see attachment.
I have tested my connection in the CMD prompt see attachment.
You'll notice [::]1, but after updating my host file, it now displays as 127.0.0.1
Additionally, port 80 IS LISTENING
instead of my web browser loading the page as localhost/vote/home.php NOW it loads as file:///C:/Websites/Vote/home.php AND NOW my PHP no longer works i.e. not being pulled into my web page.
...can't establish a connection to the server at localhost.
Why is my local host not working? Thoughts? Thank you in advance.
Additionally, my web browser page does not time out when requesting localhost....
(I'm a new user so I am unable to post images)?
× 257296
if you put localhost/vote/home.php into your browser's address bar you should get an unabled to connect error,
not a redirect to a file. The only time the address bar will show file:///C:/Websites/Vote/home.php is if you open
that file directly in your browser.
Your details about why apache isnt working are not to clear, but you can try a couple of things.
First, how did you install apache, is it a service? you can check this by going to control panel > Administrative Tools > Services and
see if apache is in that list. If its, you have to start it, if its not then apache is not installed as a service and
you need to start it by running the executable. Go to the whichever directory your httpd executable is and run it.
Some things to try:
Make sure Apache is actually running, that it haven't failed during startup.
Check if it's listening to the expected port (80, or whatever you have configured it to)
> netstat -nb
Check your hosts file to make sure nothing fishy is going on there. localhost should point to 127.0.0.1, but maybe it's been set to point somewhere else by your virus thing.
If you can't figure it out, you can always try to remove/uninstall and try to set it up again. If this is a developer machine, I can recommend using the WAMP package installer instead of setting it all up yourself. It provides fairly easy switching between php/apache/mysql versions and easy switching on and off of most regular apache and php modules.
run command prompt as administrator and go to Apache bin folder (usually 'cd \apache\bin' ) and type httpd -k start. it worked for me with the same issue.
I had the exact issue. If you have a XAMPP control panel pull it up. There you will see XAMPP Control Panel Image the different modules that you have open... Apache will be one of them. In the 'Actions' column you will have 'Stop' adjacent to it. Hit the 'Stop' and wait about 1 minute for everything to calm down. The button will change to 'start' so hit it. This will reset Apache. It worked for me...Good Luck.
If you don't have the control panel on your desktop, go into your programs list and drop-down the XAMPP icon. The control panel is right there. Just click it and it will show
I have my xampp instalation up and running.
I have a php file with just
<?php
echo"Hello World";
?>
This I can see in my browser when I place it inside C:\xampp\htdocs
But if I place it inside C:\xampp\htdocs\myfolder I get an error 500 server not found.
What's wrong with putting my file inside myfolder? Is that because of Vista? Any advice?
Thanks a lot
First off I'd try restarting Xampp services via the Xampp Control Panel (especially Apache). If the problem is still there check xampp\apache\logs for errors. Depending on how familiar you are with Xampp I'd check to make sure the Apache service is running (Control Panel -> Administrative Tools -> Services), restart it manually and test again.
I'm pretty sure I've had a similar issue to this in the past with Xampp when my computer crashed while Apache was running, which I think I only managed to solve by reinstalling Xampp though. Good luck
You're placing it in the wrong directory.
C:\xampp\myfolder\htdocs
If you want to access the file you should put it under the htdocs directory.
Do this instead
C:\xampp\htdocs\myfolder\
Have you checked the access rights of the folder? Maybe it is not accessable via localhost. Windows 6+ is very strict related to accessing directorys. If you can't find it then set the UAC to a lower lewer to test it, if you think it's safe enough.
I am trying to run web application scripted in PHP on windows server 2008. I have configured PHP (as fastcgi) and IIS. Everything goes fine except the following scenario.
In the php.ini document "doc_root" edited with the correct root path for my php projects which is "c:\inetpub\wwwroot\". I created a new site on IIS and mapped it's path to "c:\inetpub\wwwroot\application1". When I try to open this site, I see that somehow (IIS or PHP no idea ) does nt run my new application on the path "c:\inetpub\wwwroot\application1". It tries to run on "c:\inetpub\wwwroot\", which returns 404 of course. What am I missing here ?
Check to see whether you are changing and loading Correct php.ini file using phpinfo()
For those who have the same problem;
I have figured out the problem. setting "doc_root" is not right. As I commented that property in php.ini file it got ok.
Also checking the following url was helpful:
http://learn.iis.net/page.aspx/246/using-fastcgi-to-host-php-applications-on-iis-7/
Its written there that you can make your php web sites use seperate php.ini files. I found this link really usefull.
Don t want to choose my answer as the right one but have to. Hope this helps.