Xampp Settings for localhost - php

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 :)

Related

Wamp server not showing localhost\website

I am trying to connect to wampserver. I have all setting done and wampserver is online. but when I try to connect to the folder then the url of site is loading as http://website instead of http://localhost:8899/website. because of this i am getting website not found error. How can I solve this?
Maybe you have an .htaccess in that folder or maybe your site is configured to redirect you to http://website, you should check the .htaccess or the site configuration file.
Every project you add to your main folder will open this way if you try to open via WAMP's panel in http://localhost/ , unfortunately.
I think this can be configured, but I don't know how to do so.
You can type the address manually as http://localhost/website. This should work.
Another solution is to make aliases, that'd work.

How do I use Xampp to localhost after installing apache?

So I want to use Xampp to control my servers. I already installed Apache2 and now it orverrides localhost.
Whenever i put localhost/xampp/index.php it says OBJECT NOT FOUND.
How would I delete this Apache program, and strictly use Xampp on localhost?
I already tried to change the .conf file to Listen 8000 and when to http://localhost:8000/xampp/index.php
Steps:
Open "XAMPP controll panel and run Apache and MySQL"
create folder www inside xampp\htdocs, if you are on win propably C:\xampp\htdocs, so now you have C:\xampp\htdocs\www\
Create test.php inside C:\xampp\htdocs\www\, now you have C:\xampp\htdocs\www\test.php
Put inside test this: <?php echo 'php works fine.'; ?>
Run this script in browser on link "http://localhost/www/test.php" you will see "php works fine.".
DONE.
Have you started apache by opening up Xampp control panel? If you didn't then it won't work. So open up Xampp control panel from the start menu and click on start where it says apache and then run http://localhost to see whether it works.
Have a look at the :
\xampp\apache\logs\error.log
This might give you an idea, why the XAMPP splash screen cannot be found.
Also, make sure you do not have any IIS or similar programs running, as they might have a conflict with the XAMPP.
You can also check if the port is open or not using the instructions given here..
Cheers.
I might be wrong, but it seems to me that everything on localhost is coming from htdocs, but you don't call it from htdocs in the URL.

Netbeans PHP - I can't see my web server

I have a wordpress website on my WAMP server, which I made as a project in Netbeans IDE. Everything was working fine untill I changed the name of my PHP project from 'stickpeg' to 'portfolio'. Now when I try to run my project by clicking the green arrow on the menu tab, it displays me a page saying...
Not Found
The requested URL /wordpress/ was not found on this server.
Apache/2.4.9 (Win64) PHP/5.5.12 Server at localhost Port 80
I'm thinking that the error is something to do with my NetBeansProjects folder, as it's not in my wamp folder at all, but in my documents folder! Plus, the project folder in the NetBeansProjects folder is called 'portfolio', which has 3 other folders inside it called config, public_html and test, which are all empty.
Please help, I just want to be able to see my wordpress website running in my browser again.
You have to put the files in the htdocs directory. Apache (e.g. your WAMP server) can't find the files, since there are in the My Documents folder.
Just move the directory wordpress to C:\wamp\htdocs\wordpress (for example).
Never mind. Sorted it out. Apparently I had to change the Site Address URL and WordPress Address (URL) and then go into netbean's project properties -> run configuration and change the project url.

WAMP doesn't update html file after editing

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.

XAMPP for windows vista: folder inside htdocs

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.

Categories