cant run php files [Solved]

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

cant run php files [Solved]

Postby riggers » 16. September 2012 01:21

hi
first let me appologise for being totally green to this. my problem is this;
i have installed xampp successfully,and apache admin opened up index.php.
but today i cant run php files and xampp control panel gives the following message's.
[apache] port 443 in use by "httpd.exe"!

could this be my problem and how do i fix it please?
riggers
 
Posts: 12
Joined: 16. September 2012 01:05
Operating System: windows

Re: cant run php files

Postby JonB » 16. September 2012 03:25

OK - a few questions/tasks

1st Question - is or was there another Apache installation on this machine?

2. Please use the 'NetStat' button. If a different 'httpd.exe' is running, it may show the path to that executable.

3.. What is in the Apache error log -- \xampp\apache\logs\error.log??


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: cant run php files

Postby riggers » 16. September 2012 12:09

Yes there was a previous installation.

this is the error log on starting this morning,

[Sun Sep 16 11:51:18.880460 2012] [ssl:warn] [pid 1484:tid 364] AH01873: Init: Session Cache is not configured [hint: SSLSessionCache]
[Sun Sep 16 11:51:22.391467 2012] [mpm_winnt:notice] [pid 1484:tid 364] AH00455: Apache/2.4.2 (Win32) OpenSSL/1.0.1c PHP/5.4.4 configured -- resuming normal operations
[Sun Sep 16 11:51:22.391467 2012] [mpm_winnt:notice] [pid 1484:tid 364] AH00456: Server built: May 13 2012 14:10:15
[Sun Sep 16 11:51:22.391467 2012] [core:notice] [pid 1484:tid 364] AH00094: Command line: 'c:\\xampp\\apache\\bin\\httpd.exe -d C:/xampp/apache'
[Sun Sep 16 11:51:22.391467 2012] [mpm_winnt:notice] [pid 1484:tid 364] AH00418: Parent: Created child process 2740
[Sun Sep 16 11:51:24.669071 2012] [ssl:warn] [pid 2740:tid 264] AH01873: Init: Session Cache is not configured [hint: SSLSessionCache]
[Sun Sep 16 11:51:24.809471 2012] [mpm_winnt:notice] [pid 2740:tid 264] AH00354: Child: Starting 150 worker threads.


Thank you,
riggers
 
Posts: 12
Joined: 16. September 2012 01:05
Operating System: windows

Re: cant run php files

Postby JonB » 16. September 2012 14:46

Are you still geeting this message?

[apache] port 443 in use by "httpd.exe"!

If so please do as I suggested in #2
2. Please use the 'NetStat' button. If a different 'httpd.exe' is running, it may show the path to that executable.

Did you un-install the prior installation, and remove APache from services?

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: cant run php files

Postby riggers » 16. September 2012 19:02

Thank you,

yes i am still getting the port 433 message and sorry i should have said the full messages are

[apache] port 443 in use by "httpd.exe"!
[mysql]mysql service detected with wrong path
[mysql]uninstall service manually first
[mysql] possible problem detected!
[mysql]port 3306 in use by"mysqld.exe"!

when i use the "NeatStat" button i can see httpd.exe running from port 80 and 443
mysqld.ese from port 3306

yes i did uninstall the previous apache installation.

thanks again for all this help as i said before i am totally new to this level of computor use .
Last edited by riggers on 17. September 2012 17:41, edited 1 time in total.
riggers
 
Posts: 12
Joined: 16. September 2012 01:05
Operating System: windows

Re: cant run php files

Postby bogey » 16. September 2012 19:20

Thank you for your time.
I have Windows 7 Professional
This is the first and only installation of Xampp.
netstat shows 2 httpd.exe running, one on port443 and
one on port 8666 PID for both are 1292.
I changed the Listen from 80 to 8666 per forum suggestion.
XAMPP control panel v3.0.12

error.log for Apache Module upon pressing (Start) just
after booting the computer.
--------------------------------------------------------------
[Sun Sep 16 12:06:35.874276 2012] [core:warn] [pid 3364:tid 252] AH00098: pid file C:/xampp/apache/logs/httpd.pid overwritten -- Unclean shutdown of previous Apache run?
[Sun Sep 16 12:06:36.295477 2012] [ssl:warn] [pid 3364:tid 252] AH01873: Init: Session Cache is not configured [hint: SSLSessionCache]
[Sun Sep 16 12:06:36.451477 2012] [mpm_winnt:notice] [pid 3364:tid 252] AH00455: Apache/2.4.2 (Win32) OpenSSL/1.0.1c PHP/5.4.4 configured -- resuming normal operations
[Sun Sep 16 12:06:36.451477 2012] [mpm_winnt:notice] [pid 3364:tid 252] AH00456: Server built: May 13 2012 14:10:15
[Sun Sep 16 12:06:36.451477 2012] [core:notice] [pid 3364:tid 252] AH00094: Command line: 'c:\\xampp\\apache\\bin\\httpd.exe -d C:/xampp/apache'
[Sun Sep 16 12:06:36.451477 2012] [mpm_winnt:notice] [pid 3364:tid 252] AH00418: Parent: Created child process 3448
[Sun Sep 16 12:06:38.042680 2012] [ssl:warn] [pid 3448:tid 264] AH01873: Init: Session Cache is not configured [hint: SSLSessionCache]
[Sun Sep 16 12:06:38.105080 2012] [mpm_winnt:notice] [pid 3448:tid 264] AH00354: Child: Starting 150 worker threads.
---------------------------------------------------------------------
What do I need to change where, and how, to avoid errors.

Secondly, My .html files with PHP in them cannot be found by the
Apache localhost server. http://localhost:8666/formone.html
formone.html is in the htdocs folder.
I get the username password box, fill it in and then the page displays:
"Object not found" error 404
bogey
 
Posts: 4
Joined: 16. September 2012 19:00
Operating System: Windows8

Re: cant run php files

Postby JonB » 16. September 2012 19:34

Ok - I suspect it is as I thought.

Although you 'think you un-installed' the previous products, you did not remove them as service first, and they may be still installed.

[apache] port 443 in use by "httpd.exe"!
[mysql]mysql service detected with wrong path
[mysql]uninstall service manually first
[mysql] possible problem detected!
[mysql]port 3306 in use by"mysqld.exe"!


What was installed previously?

How to. Un-install Services
If you made Apache, MySQL, FileZilla, Mercury or Tomcat into services, un-install/remove them from the Windows service manager via the Control Panel Win-Services, or by way of the Command Window using the Windows 'sc delete' command. You can use the Propereties tool in Service Manager to find the path to the installation.

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: cant run php files

Postby riggers » 16. September 2012 19:41

thank you ,
lets see how i manage!
riggers
 
Posts: 12
Joined: 16. September 2012 01:05
Operating System: windows

Re: cant run php files

Postby riggers » 16. September 2012 22:16

hi its me back again.
i did as you suggested
removed apache,mysql and filezilla from services.
when i open xampp control panel all notices are blue and there is an x not a tick in the service box but i still cant open index.php and display "its works!" as i can the index.html .
Is my problem this simple:-
the reason it wasn't working before was that i hadn't reomoved the previous instalation of Apache MySql and filezilla from "services" and this was preventing the new install from working.
now i have removed them freeing up the ports for the new installation.
Is what i need to do now as simple as making the new install a service, change x to a tick for apache and mysql ?
or do i need to do something copletely differant?
Thank you for your patience.
riggers
 
Posts: 12
Joined: 16. September 2012 01:05
Operating System: windows

Re: cant run php files

Postby JonB » 17. September 2012 00:25

First, see if it will run correctly

Use the Control Panel and click the start buttons for Apache and MySQL (and filezilla if you need it) and see if they will start.
Your firewall may also prompt you to allow the applications to run, OK that choice.

If you get the Green "Running" on both, see if you can open the XAMPP Welcome page (http://localhost).

If that works and you can run some of the samples, stop Apache, MySQL etc in the Control Panel.

Now click on th Service button for each in turn, it will ask you if you want to make them into services. Yes/OK for that -

reboot and see if they start correctly. Note you do not have to make them services, that is strictly to automatically start them when you reboot. You can start them manually with the Control Panel or use its 'Config' to auto-start Apache/MySQL etc, when the Control Panel starts.

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: cant run php files

Postby riggers » 17. September 2012 01:20

messages say successfull amd both running
Last edited by riggers on 17. September 2012 17:46, edited 1 time in total.
riggers
 
Posts: 12
Joined: 16. September 2012 01:05
Operating System: windows

Re: cant run php files

Postby riggers » 17. September 2012 08:49

Sorry yes there is no green "running" showing but where the previous messages abput problems were it now says apache and mysql running, but still unable to run a .php file.
http://localhost/index.php in my browser i just get welcome to xampp for windows and if i click on index.php in htdocs i get the standard windows message asking for a program to open it in.

should i just completely uninstall and try again ?
riggers
 
Posts: 12
Joined: 16. September 2012 01:05
Operating System: windows

Re: cant run php files

Postby JonB » 17. September 2012 18:12

So your Control Panel looks 'something' like this now?

Image

1. What happens when you go to http://localhost in your browser?

2. Please give me the exact URL for one of your PHP files that 'downloads' instead of opening.
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: cant run php files

Postby riggers » 17. September 2012 19:22

thank you so much
yes this is the control panel is as i now see it, without running as a service.
when i enter local host i see welcome to xampp for windows.
the url for the file i have been trying to open is http:/localhost/example/test.php
and finally it works!
thank you for your help and patience it is much appreciated.
riggers
 
Posts: 12
Joined: 16. September 2012 01:05
Operating System: windows

Re: cant run php files

Postby JonB » 17. September 2012 19:38

OK Good.

I'm glad it is working

Good Luck with your project.

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


Return to XAMPP for Windows

Who is online

Users browsing this forum: No registered users and 49 guests