php not executing on localhost xampp.

Problems with the Windows version of XAMPP, questions, comments, and anything related.

php not executing on localhost xampp.

Postby Lockon » 25. May 2012 18:08

2. XAMPP Control Panel Version 3.0.2



4. Please try and be as detailed as possible about your issue.
Hi, I have been trying to solve this problem all day. I can't seem to figure it out. Looked on google, tried a lot but nothing works. I am having problems with xampp. I just started having some interest in programming and chapter I am at is php. Now I started by looking on youtube how to start a localhost and somehow i ended up with this video: http://www.youtube.com/watch?v=SBo7-Wy0bdM
I soooo much regret I followed all the steps on the video :( Did almost everything what was done on the video but it didn't work, so I tried to undo almost everything that I had done.

After I found out about xampp I tried to install it. I had problems with IIS before but seemed to solved that, but another problem has occured and I cannot find a good way to get apache to work.

The problem that I have is:
! I cannot execute any .php commands.!!

I can show html, but .php documents won't work.

on my XAMPP Control Panel v3.0.2 I have this error:
--------
18:24:36 [main] Initializing main
18:24:36 [main] Windows version: 5.1 (build 2600) - Service Pack 3
18:24:36 [main] Xampp version: 1.7.7
18:24:36 [main] Control center version: 3.0.2 [ Compiled: Jul 21th 2011 - build #1 ]
18:24:36 [main] Running as admin - good!
18:24:36 [main] Working with basedir: "c:\xampp\"
18:24:36 [main] Initializing moduls
18:24:36 [apache] Possible problem detected: Port 80 in use by "httpd.exe"!
18:24:36 [apache] Possible problem detected: Port 443 in use by "httpd.exe"!
18:24:36 [mysql] Possible problem detected: Port 3306 in use by "mysqld.exe"!
18:24:36 [main] Starting check-timer
---------
as you can see: apache is telling me the ports are already used. And also there is a problem with mysqld.exe.

I am really exhausted of trying to solve this problem. I have installed and uninstalled xampp so many times. I am looking on the internet and see so many things but I can't find my solution.
I don't have skype installed and I also removed IIS from my computer.

:( it is such nice weather outside and I have been sitting inside all day trying to solve this problem and I haven't even made any tiny progress. Can someone give me a step by step manual or refer me to a link with a really clear problem solver to my problem so I can get on with my php lessons?

Kind regards,
Lockon
Lockon
 
Posts: 3
Joined: 25. May 2012 17:42
Operating System: Windows xp SP3

Re: php not executing on localhost xampp.

Postby JonB » 25. May 2012 18:58

Probably because there is another Apache/MySQL install on the machine that is active.

Use the Netstat button in the Control Panel to see the path of the executables that are running httpd.exe and mysqld.exe.

IF they are in the correct path for XAMPP, THEN - they are probably installed as services, which means you do not have to 'start' then when you reboot. Is there a Green Check button for Apache and MySQL in the Control Panel? - then they are services..

IF the path for the executables is NOT in your XAMPP folder, then you have 'something' to be un-installed - maybe several 'somethings'.

Good Luck

8)
User avatar
JonB
AF Moderator
 
Posts: 3210
Joined: 12. April 2010 16:41
Location: Land of the Blazing Sun
Operating System: Windows XP/7 - Fedora 15 1.7.7

Re: php not executing on localhost xampp.

Postby Altrea » 25. May 2012 20:23

Hi Lockon,

Lockon wrote:! I cannot execute any .php commands.!!

I can show html, but .php documents won't work.

Which URL does your browser address bar show at the moment it is not working?

best wishes,
Altrea
We don't provide any support via personal channels like PM, email, Skype, TeamViewer!

It's like porn for programmers 8)
User avatar
Altrea
AF Moderator
 
Posts: 8290
Joined: 17. August 2009 13:05
XAMPP version: several
Operating System: Windows 10 Pro x64

Re: php not executing on localhost xampp.

Postby JonB » 25. May 2012 22:15

I think the reason you can display .html but - can't get .php files to work is that you are opening them as files.

IF XAMMP's Apache is not running (as there seems to be another in use) http://localhost/... probably can't get you to your files under XAMPP folders.

That is probably also what Altrea is alluding to with his 'what is the URL' question.

Good Luck
User avatar
JonB
AF Moderator
 
Posts: 3210
Joined: 12. April 2010 16:41
Location: Land of the Blazing Sun
Operating System: Windows XP/7 - Fedora 15 1.7.7

Re: php not executing on localhost xampp.

Postby Altrea » 26. May 2012 00:26

JonB wrote:That is probably also what Altrea is alluding to with his 'what is the URL' question.

exactly 8)
We don't provide any support via personal channels like PM, email, Skype, TeamViewer!

It's like porn for programmers 8)
User avatar
Altrea
AF Moderator
 
Posts: 8290
Joined: 17. August 2009 13:05
XAMPP version: several
Operating System: Windows 10 Pro x64

Re: php not executing on localhost xampp.

Postby Lockon » 31. May 2012 11:53

Hi,
sorry I haven't replied faster, but I got a bit exhausted after I been busy with it so long. I have just been reading the material without actually writing codes or trying them out on the computer.

I still have the same problem though.

When I uninstall and install, I always seem to get the message that apache cannot be installed because the ports 80 and ... are already taken. Don't know if that info helps.

I have two files.

.html and .php

they are both in the same map. When I press the 'send' button on the .html php file is not doing anything. It's just showing

", echo "thank you for ordering from....

instead of showing an echo line above with the amount that you put into the .html

the url is: file:///C:/Documents and Settings/Davin/Bureaublad/oefenen/process.php

Hope this info helps, toward finding a solution to my problem. cause I feel like today is a good day for me to start with xampp :)

and today the weather is pretty bad in comparison to last time, so I wouldnt mind sitting behind the computer for long....but I rather not though :)
Lockon
 
Posts: 3
Joined: 25. May 2012 17:42
Operating System: Windows xp SP3

Re: php not executing on localhost xampp.

Postby Altrea » 31. May 2012 13:06

We don't provide any support via personal channels like PM, email, Skype, TeamViewer!

It's like porn for programmers 8)
User avatar
Altrea
AF Moderator
 
Posts: 8290
Joined: 17. August 2009 13:05
XAMPP version: several
Operating System: Windows 10 Pro x64

Re: php not executing on localhost xampp.

Postby Lockon » 31. May 2012 13:20

Ahaaaaaahhhhhh,

Thank you so much for the referall.

You made me so happy!!!! I could kiss you!!! (but I won't .... just figure of speech)

:P
Lockon
 
Posts: 3
Joined: 25. May 2012 17:42
Operating System: Windows xp SP3


Return to XAMPP for Windows

Who is online

Users browsing this forum: No registered users and 88 guests