Here I am sharing step by step method of installing xampp.
1. download latest version of xampp. its size is 63 mb.. you can download zipped version also.
2. Then double click the downloaded .exe file.
4.After pressing OK you will see this window. Press NEXT and keep on doing this until installation starts.
5. Your xampp software will be installed in C:/xampp folder.
7. When you are done with this you can see xampp page by inserting http://localhost/xampp as url in your browser.
8. Check status to verify all your components sre properly installed n running.
9. Now to test a php script, write a simple php code and save it in C:/xampp/htdocs folder. Let the .php file be first.php.
10. In your browser insert http://localhost/first.php. You will see the output of the .php file in browser page.
11. And bingo you are done with running a php script on xampp.
During this process you may find some errors like:
- Port80 or 443(SSL) already in use! Installing Apache2.2 service failed
This error occurs during installation when it shows installation complete and installing apache. it occurs because may be there is already another server is running like iis. To resolve this error you have to disable IIS server. To do this just go to Control Panel -> Administrative tools -> services.msc. Now here find the World Wide Web Publishing Service . Right click it and go to its properties and change its setting to manual if it is automatic and stop this service. You are done with this. Now again try to install apache and it will work fine. You can install apache by checking the chechbox opposite to apache and this will install it.
- Object not found!
The requested URL was not found on this server. If you entered the URL manually please check your spelling and try again.
If you think this is a server error, please contact the webmaster.
Error 404
It occurs when you try to run your php script by inserting http://localhost/ .php. To overcome this error always save your scripts in C:/xampp/htdocs folder. If it still gives you error go to C:/xampp/apache/logs/error file.
Check for the errors and try to correct them.
Hope this helps you and you are able to run php scripts properly like i am doing. All the best.