I used the following link to download the latest Xampp in order to install php on a windows. I clicked on "Installer" and installed it on my computer. Now I can't seem to find php on my machine. What should I do next?
1 Answer
First of all you must start the apache server and mysql through xampp control panel. and then directly try with browser like http://localhost/
Also you need to save the php files in C:/program files/xampp/htdocs/your folder name / (If you installed xampp in C drive )
Wherever you installed that exe create a xampp folder automatically. XAMPP folder contains all the database, server configuration files and php files
8 Comments
Lucy Weatherford
I'm not sure I understand.. I opened up xampp, now what to do?
Lucy Weatherford
Okay I am running it, how do I use the command line? the xampp_start.php is not letting me write anything there, the cmd of the computer is not recognizing php; but the localhost is clearly running xampp
Muthu Krishnan
If you opened up the Xampp control panel there is options to start mysql, apache, Please start all these.
Lucy Weatherford
also, it seems that the php files were saved under `c:/xampp/htdocs', should I change this to what you suggested?
Steve Buzonas
@LucyWeatherford The standard ports for apache are
80 and 443 is used for ssl, mysql generally runs under 3306. If you are receiving that as a startup notification there should be no concern, if it is a startup failure message, you likely already have an instance of xampp running. And I mentioned the php -v issue in a comment to the question already. There should be no concern as to whether or not php is in your path if you are not going to be scripting with it and only serving php files with apache. |
php -vin the command line, and it doesn't recognize itphp -vwill only be recognized if the xampp bin directory for php is defined in your environment PATH variable.