Welcome to WebmasterWorld Guest from 54.196.5.163

Forum Moderators: coopster & jatar k

Message Too Old, No Replies

XAMPP on windows suddenly stopped working

php not working right anymore

     
5:37 am on Apr 28, 2009 (gmt 0)

Junior Member

5+ Year Member

joined:Apr 18, 2008
posts:67
votes: 0


Hey guys,

I was working on a php script about 3 days ago using XAMPP environment in windows xp - everything worked great, php displayed on browsers and all. Today, I tried to display the same script and all I see is a bunch of the php code on the browser window. I tried opening other php files and even did a simple echo "hello" and nothing! What may be the cause? #*$!! No viruses or anything of that sort either.

6:37 am on Apr 29, 2009 (gmt 0)

Senior Member

WebmasterWorld Senior Member dreamcatcher is a WebmasterWorld Top Contributor of All Time 10+ Year Member

joined:Mar 30, 2003
posts:3719
votes: 0


Has the apache server started ok?

dc

6:39 am on May 2, 2009 (gmt 0)

Junior Member

5+ Year Member

joined:Apr 18, 2008
posts:67
votes: 0


yeah, apache server starts ok and everything
6:45 am on May 2, 2009 (gmt 0)

Junior Member

5+ Year Member

joined:Apr 18, 2008
posts:67
votes: 0


ok, it tries to download the php file in the browser instead of displaying it. I remember it has to do something with editing the .htaccess file and putting something like addType x-http .html .php or something like this. Question is what file do I edit in xampp?

Update: I found I had already added this line to my httpd.conf file. So with this out of the question, what else could be the cause?

6:44 am on May 5, 2009 (gmt 0)

Junior Member

10+ Year Member

joined:Feb 7, 2007
posts:46
votes: 0


Skype, possibly, if you have it, or another program that may use internet connection and using port 80. When I installed Skype, Xampp stopped working, so I told Skype not to use port 80 and it worked again. Check any new program settings, or possibly even firewall settings.
8:47 am on May 5, 2009 (gmt 0)

Preferred Member

10+ Year Member

joined:Mar 14, 2003
posts:508
votes: 0


Have you installed any other software which may have in turn installed another server, or have you accidentally enabled IIS?

I keep a copy of XAMPP on a USB stick, which I move between machines. Could you copy your set up try and running it on another machine?

I all else fails back up your websites and try a reinstall.