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.
Related
I cant see my xampp settings: using this URL http://localhost/xampp/
This is the result im looking for:
I dont know why but if i look at examples, everyone's URL looks like http://localhost/xampp/ if i use this Url i get a page saying:
Object not found! The requested URL was not found on this server.
The directory is located in C:\xampp, and if i just add http://localhost/ as domain i get the tree structure of everything within C:\xampp\htdocs.
Also using Xampp v3.2.2 , if im in control panel and click on the Apache Config tab it open my file structure as mentioned above everything within C:\xampp\htdocs.
I just want to mention im using Windows, not Mac, but i meen both windows and mac has these Apache settings afcourse, i just dont get it how i cant find it using http://localhost/xampp/.
Apache & MySQL is switched on.
What i think could be the problem:
Could it be that im missing the /xampp directory within the /htdocs directory ?
Im not sure if there should be a xampp directory in htdocs but its the
only thing that makes sense?
Possible reason: Something is running with port 80
when you run Xampp, check the apache port no. ex: if it is displaying port 8012
then your url is http://localhost:8012/dashboard/
Check Directories for Xampp
Xampp directories.
more about this topic
For check all dependencies in the : httpd-xampp
The only reason i see is the xampp file should be located in the htdocs folder at least that is how i have it.
However i do not think that this will cause a problem for you in developing anything.
Hope this was helpful :)
I purchased a marketplace template. I am used to see index.html files when I load them into brackets for editing. This template however has an index.php file.
My question is how do I go about editing the index.php file? Would it be the same as I would with an index.html file? Brackets also does not read PHP and I would have to run it from a server with the host name url (something I also don't know how to do).
To execute php files, you have to use a local web server as Billy points out. On Windows and Mac you can use XAMPP to do so, on Linux you should prefer setting up a LAMP-Server (Tutorial).
After you installed your webserver you have to save your files under the server's document root. You can find it at the place where you installed XAMPP under the folder /htdocs (the place on Linux varies, on the latest Ubuntu flavors it should point to /var/www/html) You have to move all the files there. Now, you can open those files in your web browser by opening localhost/your-folder/index.php.
Edit your PHP files as you'd normally do in Brackets, it can handle PHP files. To use the Live Preview feature you have to go to File → Project Settings and enter your path with localhost here (don't add the file name, Brackets will do that for you) e.g. http://localhost/your-folder and you should be all set and running.
You can use live editor to edit your php file such as https://c9.io/ and its one installation is free and that's how you can upload your files: https://docs.c9.io/discuss/5582d455ea39a93900224238 . Just start custom php project and make it private.
I have a old php applications which was earlier hosted on Apache 2.2. Now I am trying to host it on IIS 7.5. I installed php with WebPlatform installer. Then copied directory to inetpub\wwwroot folder. Added this directory as application in IIS. But when I browse search.php, it pops up save as file dialog in the browser - asking to save the file. Instead should return the html response which browser can show.
If put sample index.php with phpInfo() in it. It works properly but not the acutal PHP files. Have I missed any steps?
Any php guys out there? I tried reinstalling, even with xampp, but no luck :(
You have installed it but might not be configured properly. You should follow instructions over here
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"
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.