I am completely new to web-dev and wamp, I have to use it for a college project to build a website using php. I installed the newest version of wamp. I cloned my project repository into the www folder.
When I run "localhost" in the browser, I get the generic wamp page and I can see my project folder on the bottom of the page under the "Projects" heading
when I click on the project it does not open and I get a 404 not found error. This is not the same issue a thousands other people have written about, where when they uses the path "localhost/projectname" they get access to their project but when they just click their project the path is "projectname" and they dont see their project. I have read tons of posts with people that have that problem and I do not think I have the same issue becase when I click on my project link on the wamp hompage, I get the complete path "http://localhost/PaperCloudBackend/" and this shows a 404 error
Keep in mind that all I have done with wamp so far is:
1) install it
2) clone repo into www folder
3) opened browser with localhost
4) clicked on my project name
I would really like a concise answer to why this is happening so I can learn the root cause, and also a solution to the problem because i have not contributed to my team codebase at all and I have not been able to solve this issue after 1 week.
Thanks
I assume that its an .htaccess error which is clashing . If you have .htaccess in your project then check it if you have given the correct url in the .htaccess rule or you can delete the file(.htaccess) and run the project in your browser.
Another problem that you should check is there any index file is present in the root of the folder you are trying to access.
I hope this might help you.
Currently thats also happed with me on window8.1, To prevent this open the index.php file from root directory wamp/www/index.php.
Change
$suppress_localhost = true;
To
$suppress_localhost = false;
Hope this will help you to fix the problem.
Please make sure that index file exist in your "PaperCloudBackend" directory as it is the entry point of execution.
Related
I just started taking a PHP course and I'm having a lot of difficulties. I won't get anywhere unless this is resolved.
I got the course files downloaded and added them to htdocs folder but I can't run any new files I created. I get
Object not found! 404 error
I see them under localhost/coursefiles/whtever.php. I've google searched all day but can't find anyone else having this specific problem.
Would uninstalling and reinstalling XAMPP work? This is extremely frustrating and making me crazy.
First Check xampp manager Is your MySQL and Apache is in running state ?
Then Type Localhost in your browser , if Xampp Homepage is Coming It means Xampp is working Fine!
And again Checj your course files Extension they should have .php extension (if they are php files).
Create An folder In your Htdocs Folder With Abc(for example) and Write in browser's Url window "http://Localhost/Abc
if your Folder is opening and it's showing Files Then There must be a Problem with files! :)
So i have Ubuntu 16.04 with apache2 installed on it, and my local sites are inside if /var/www/html/ directory.
The problem is that one of my sites based on magento 1.9 redirect me to wrong url everytime. Whenever i'm trying to access localhost/my-site/ it redirects me to localhost/my-site/localhost/my-site/ instead.
I have tried to change .htaccess and even deleting it from site root folder same as changing apache2 hosts configurations inside of apache2/site-available folder and even creating new virtual host in that folder but that didn't helped.
I also tried to fully reinstall apache but no result. My hosts file has just localhost defined now so it can not be conflict with other host.
I think that it replace index.php url part with localhost/my-site but i have no idea how to fix it.
I would realy appreciate some help becose i'm trying to fix this few day already with no result.
Thanks.
Ok, I have solved this problem, by deleting cache folder on my local pc in /var/tmp directory. Apparently this cache was saved when i got redirect first time and after that i was redirecter becose of this.
Hope this will help someone.
I downloaded a CRM application based on PHP. I want to try it on my XAMMP Server. I install it. But I can not login because of 404 error.
Then I rename index.php file, and
Then I noticed that an entire folder never appeared on my webpage. Normally, There are a "application" folder. But it is missing.That is appearence of my Chrome page
just a note : I activate mod_rewrite
Please Help me
This problem is valid for me. And I cant take a good answer. But, you vote down, and I cant ask question. Bravo!
Make sure the Apache-server (XAMP) user have permissions to access the directory. Also, make sure that your redirect mentioned points to a place that exist.
I have a directory containing a basic PHP website like so:
website/index.php
website/pages/...
websites/styles/...
I want to use WAMP to run this locally for development purposes. I thought this would be easy, but if I put my website folder in WAMP's "www" directory and click on it in WAMP's "My Projects" section, Firefox gives me a "Server not found" error.
After doing some reading I discovered that apparently a better way to do this these days is using Virtual Hosts, but I was unable to find any clear, official instructions on how to set this up, and the guide I found were either outdated or hugely complicated. Nonetheless I gave it a shot, but I didn't have a clue what I was doing, didn't manage to get it working, and reverted all my changes.
Can anyone offer me a solution, or direct me to some clear instructions? (Thanks.)
I also face this problem and that is solved by doing following steps...
1> open your www folder which is inside wamp folder.
2> open index.php file from that folder
3> At line no 30 change $suppress_localhost = true; to $suppress_localhost = false;
4> Refresh page of localhost and now open project.
DONE.
I had a drupal site completely working at www.example.com/example. I copied the files to the root folder in attempt to simply have the site held at www.example.com yet now it is asking for a new install and I have no idea why, I expected to have to make some changes, but not to be confronted with the request of a new install. I have heard it may be something to do with changing the base url but I'm not sure. Can someone please help me?
Thanks heaps
Assuming your site is on a linux based hosting, most probably your problem is divided into two parts
Problem 1) The settings file "sites/default/settings.php" is read only so when you moved the site to another directory it most probably didn't move this file because it is read only, and that was pointed out by another person
Problem 2) The second problem may be the result of enabling clean urls and not moving .htaccess file; when you moved the site to another directory you may have left out the ".htaccess". Check to see if it is moved to the new directory.
Another possibility is that you have a modified .htaccess to make the subdirectory work, in that case you may want to get a fresh ".htaccess" file from here :
http://code.google.com/p/drupalgooglecode/source/browse/trunk/.htaccess