xampp is not showing .php files saved in htdocs folder - php

I am using windows 7 and just installed xampp server to "E:\xampp" in my laptop to learn php. Now the problem is whenever I start xampp server by starting "xampp_start" in xampp folder and start Apache and MySQL from "xampp-control" and type localhost in my browser it automatically gets converted into "localhost/xampp/" and display a default page instead of displaying the .php file which I created in htdocs folder. Another problem is when I created a folder in htdocs folder and saved a index.php and another .php file which was created by me, it is not showing that folder too. I know this question has been asked before but I didn't get any solution from there because I started xampp_start from xampp folder and Apache & MySQL from xampp-control. So please help. Thanks in advance.
This is the default picture which is being displayed:

Thing is if you create any .php file in htdocs folder, you have to run that file as "localhost/filename.php" but if you created any folder in htdocs, for example folder name is "work" then you have to type "localhost/work/" and then it will show file contained in that folder.

First copy the files of htdocs and paste on any drive and delete the htdocs folder then create another folder and paste the files in this folder and restart the server.

First make sure you go to Local Disk (C:), then go to xampp -> htdocs-> and create your folder.

Hi Guys Here Iam Gonna Show You How You Can Fix This Error
Follow me
Don't worry ! If xampp is not showing .php files in htdoc/folder OK:
Just change the name of that file which is not showing and refresh or reopen the localhost directory it will-be show
Your file
If this method work or not comment below
Good luck and keep it up.
#gamerinc

Related

Why does my Notepadqq editor does not recognize LAMP www folder and sub-folders?

Attempting to get LAMP working on my 32-bit Ubuntu 18.04 machine. I believe the set-up is close to correct. I have all Apache2, mysql, and PHP software installed. I have an index.php file located in folder /var/www/bookcorner directory which shows up as it should if I enter localhost/index.php in the browser address bar. This file may be edited in nano while saving the changes. However, I cannot use my editor Notepadqq (or presumably others) to edit the file.
Going through the file manager, I can select the file and open it in Notepadqq, but I cannot save it. I get the error, "folder does not exist". If I try a 'Save As' with Notepadqq, I do not see any folders past /var in the directory structure, though they obviously exist. The www folder and subfolders do not show up in Notepadqq.
There are three folders under /var/www which are
bookcorner
html
michaelsbookcorner.com
I have ownership of all of these folders
michaelsbookcorner.com is a live site at Infinityfree.net
I somehow got Apache2 to point to bookcorner for now which is fine. Eventually I would like to select between different websites but I only have one for now existing in another directory. I wish to begin utilizing LAMP rather than uploading PHP files to my hosting site all the time.
What settings/permissions/etc could I have missed here in order to get this working properly?

Not opening folder in localhost

I just installed WAMP server to start practicing PHP. I created a folder in www directory. However, when I try to run the file from localhost it does not run.
For ex, I created a folder "test" in www directory. I saved an php file called "test.php" inside the test folder. Basically I have saved it in www --> test --> test.php.
I started localhost in my browser. I found test folder there. But when I click that test folder, instead of opening as "localhost/test", it is opening as just "test/". How to make sure that the folder, when clicked inside localhost, should open as "localhost/
When I type as "localhost/test" in my browser, it works fine. But when I go to localhost and click on "test" folder it does not open.
Please help me to overcome this.
Thanks in advance
Just create new virtual host in wamp using your current directory path to test directory.

how to move site from a corrupted xampp to another xampp?

i had a Joomla site on Xampp but for some reason i had to remove it but i copied all database files(OPT, MYI, MYD, FRM) and my folders in htdocs from previous Xampp
now i know the right way of backing up a site but now all i have from previous Xampp(recovery didn't work) is these two folders
now when i installed it once more and the "Quick start" of that first site and replaced htdocs and database folder with the previous site it's not like the original site
Inside your XAMPP installation folder, you will be having a Mysql folder and inside that folder you will have a data folder. You will find your Joomla database folder inside data folder. Copy the Joomla database folder to your new xampp installation. Paste it inside xampp->Mysql->data folder. Change the configuration.php databse connection details. Copy Joomla site folder to your new htdocs folder.

Browser shows 404 Resource not found error even after pasting php file in htdocs folder in xampp folder

I have installed xampp and configured the browser to listen to port 8000.I saved the file using a .php extension selecting the all files option while saving and saved it in the htdocs folder.Still when I use localhost\mypage.php it shows the resource not found error.
Copied the code into notepad and placed the file in htdocs folder and opened it in netbeans and it was working fine.

PHP localhost issue. Folder not opening when clicked inside localhost

I just installed WAMP server to start practicing PHP. I created a folder in www directory. However, when I try to run the file from localhost it does not run.
For ex, I created a folder "test" in www directory. I saved an HTML file called "test.html" inside the test folder. Basically I have saved it in www --> test --> test.html.
I started localhost in my browser. I found test folder there. But when I click that test folder, instead of opening as "localhost/test", it is opening as just "test/". How to make sure that the folder, when clicked inside localhost, should open as "localhost/<foldername" (in this case "localhost/test").
When I type as "localhost/test" in my browser, it works fine. But when I go to localhost and click on "test" folder it does not open.
Please help me to overcome this.
Thanks in advance.
You should type the file name and the extension to open the file from the local host as your file is not index.html
so you should go to "localhost/test/test.html" that would work
if you want your file to

Categories