I have installed WAMP on my PC. Successfully Installed. I can access phpmyadmin, localhost. When I'm trying to access my local project folder using localhost it's showing a blank page. Here's my local project path URL.
C:\wamp64\www\phpproject.
I clicked on phpproject on localhost. Please check the below image. Observe the URL
When I type manually by using "localhost/phpproject/" it's working fine and showing files list. I want to know the reason why this occurs. I googled a lot but didn't find the exact reason. Somewhere I read about changing the value in index.php in the www folder.
*($suppress_localhost ? 'http://' : '')
change http:// to http://localhost/ *
But now the latest version is having a different value in it. Please explain the reason and solution.
Related
I am trying to run my project on localhost using xampp. But when I type localhost/folder_name it shows URL not found even though my website is in the htdocs folder of xampp. Everything else is working fine including phpmyadmin. Please help me to resolve this issue
I tried creating copy of data folders, Apache folder and even php folder, but nothing worked. Even the xampp is working properly but still I can't access my website on localhost
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 have a web application hosted on AWS on Ubuntu server. I have Apache and mysql running on it. It was working perfectly fine till yesterday, All of sudden when I try to access phpmyadmin using my domain name (like http://example.com/phpmyadmin) it gives 404 error.
If I simply type http://example.com on the browser it opens the home page, but if I click on any of the link of my site which refer to different directory, gives the same error.
I have checked the 000-default file under /etc/apache2/sites-enable. My Document Root is set perfectly fine, and directory has Override option to All.
Can any one have any idea then please help me.
Thanks
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 downloaded one joomla live site folder.set up configuration file and database .But it's giving me error sever not found.
actually my url is http://local.host/foldername/
But it takes www.localhost.com/foldername/
what is the problem with my folder?what can i do for it?
Add www.localhost.com to your hosts file to point to 127.0.0.1.
On Windows it's in C:\Windows\System32\drivers\etc\.