I have been using Xampp on my computer that just crashed. I just installed it on a new computer and copied all of my website files to a folder, which I have activated for localhost on htdocs Document Root and <Directory....">.
http://localhost finds my files fine and displays the html part, but all of the php code appears on the display. I have created a test with both html and php for a string and only the html string appears. On the control panel, but apache and mysql load fine with no errors. Entering
http://localhost/ displays a page but not the apache orange page. Instead is displays some lines saying that if the phpinfo() code below displays all of the settings, php is working, however all I get is the phpinfo() code and nothing else. I have tried 127.0.0.1, however this ip brings up my Visa Versa backup control panel, which obviously was previously assigned this ip address. However, I had the same setup on my old PC, and this was not a problem. Can someone advise me how to activate php, as I am at a loss on this install. Having installed it about 5 times previously, I never had this problem. Thanks,