Trouble Shoot Xampp

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

Trouble Shoot Xampp

Postby OzWaz » 20. September 2017 03:46

I have been running the XAMPP v3.2.2 on Windows 7 for over two years-flawlessly. Suddenly php is not functioning.

I can open Apache through the Control Panel without any display errors.

If I make a PHP file and load it into a folder in htdocs and open it using a browser (any and all browser) the PHP will not function.

I have tried running XAMPPboth with and without 'administrator rights' it makes no difference.

I have not made any changes that I am consciously aware of to any configurations other than the uploading of a few unrelated programs some time back.

Here is the error code log for the last initialisation session

Code: Select all
[ssl:warn] [pid 3428:tid 260] AH01909: www.example.com:443:0 server certificate does NOT include an ID which matches the server name
 [core:warn] [pid 3428:tid 260] AH00098: pid file C:/xampp/apache/logs/httpd.pid overwritten -- Unclean shutdown of previous Apache run?
 [ssl:warn] [pid 3428:tid 260] AH01909: www.example.com:443:0 server certificate does NOT include an ID which matches the server name
 [mpm_winnt:notice] [pid 3428:tid 260] AH00455: Apache/2.4.25 (Win32) OpenSSL/1.0.2j PHP/7.0.15 configured -- resuming normal operations
 [mpm_winnt:notice] [pid 3428:tid 260] AH00456: Apache Lounge VC14 Server built: Dec 17 2016 10:42:52
 [core:notice] [pid 3428:tid 260] AH00094: Command line: 'c:\\xampp\\apache\\bin\\httpd.exe -d C:/xampp/apache'
 [mpm_winnt:notice] [pid 3428:tid 260] AH00418: Parent: Created child process 1644
 [ssl:warn] [pid 1644:tid 272] AH01909: www.example.com:443:0 server certificate does NOT include an ID which matches the server name
 [ssl:warn] [pid 1644:tid 272] AH01909: www.example.com:443:0 server certificate does NOT include an ID which matches the server name
 [mpm_winnt:notice] [pid 1644:tid 272] AH00354: Child: Starting 150 worker threads.


Could the community please suggest what particular aspects I could investigate to determine where the problem may lie
or alternatively
Can I simply uninstall and reinstall to fix all possible problems?
Thank you
User avatar
OzWaz
 
Posts: 19
Joined: 02. December 2013 13:23
Location: Queensland Australia
XAMPP version: 7.0.15
Operating System: Windows7 64bit

Re: Trouble Shoot Xampp

Postby Altrea » 20. September 2017 05:20

How exactly do you open the php file in your browser?
What does your browsers addressbar show at the time you haved opened the php file?
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: 8942
Joined: 17. August 2009 13:05
XAMPP version: several
Operating System: Windows 10 Pro x64

Re: Trouble Shoot Xampp

Postby OzWaz » 20. September 2017 05:30

Hi Altrea - thanks for responding

I navigate to the htdocs folder using the 'file'/ 'open' facility of Firefox. Is it helpful to know that the same way I have been doing since I installed XAMPP in early 2016? - which until now has worked fine.
User avatar
OzWaz
 
Posts: 19
Joined: 02. December 2013 13:23
Location: Queensland Australia
XAMPP version: 7.0.15
Operating System: Windows7 64bit

Re: Trouble Shoot Xampp

Postby Altrea » 20. September 2017 08:21

This cannot and have never been working for php files ever. Your Browser cannot speak PHP and does not have any clue that php files need to be send through a PHP interpreter and where to find it.

The only component which knows what to do with that file is your XAMPP Apache, so you need to request that file so Apache can get the request to process it.
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: 8942
Joined: 17. August 2009 13:05
XAMPP version: several
Operating System: Windows 10 Pro x64

Re: Trouble Shoot Xampp

Postby OzWaz » 21. September 2017 02:00

Hi Altrea
Okay a little more clarity on my behalf might help you to help me.

I open up the XAMPP Control Panel and start Apache then I go to the 'Admin' button and click it, which opens up a browser page in Firefox. I then replicate the proceedure that I set out above - sorry for the abridged version
User avatar
OzWaz
 
Posts: 19
Joined: 02. December 2013 13:23
Location: Queensland Australia
XAMPP version: 7.0.15
Operating System: Windows7 64bit

Re: Trouble Shoot Xampp

Postby Nobbie » 21. September 2017 09:37

OzWaz wrote:I then replicate the proceedure that I set out above - sorry for the abridged version


Anyway, that does not change anything. If you open PHP files via "file -> open" in Firefox, these are NOT executed. That does not work and it did not work before. It may work for pure HTML files, but not for PHP files. Instead you MUST apply an URL in the URL Dialog Box (at the top of firefox) and this should look like http://localhost/mytest.php (where mytest.php is a PHP file located in your htdocs folder). That is the ONLY(!) way it works.
Nobbie
 
Posts: 9689
Joined: 09. March 2008 13:04

Re: Trouble Shoot Xampp

Postby OzWaz » 21. September 2017 10:42

Sorry I am not making this easy for you to help me but when I click on the XAMPP Control Panel 'Admin' button it opens the browser window and you are correct it gives this URL http://localhost/dashboard/

However what I then do and this may not be orthodoxy but I click on the file\open facility of Firefox which brings up windows explorer and navigate to the file I want, select the file and then I copy and paste the file path from the window explorer into the browser window
for example "
Code: Select all
file:///C:/xampp/htdocs/WorkingFiles/Chapter2/test.php
"

This then opens up the file that I am working on and using Dreamweaver and "Ctrl/S" I could continue to manipulate the document and view the outcomes in the browser window simply by refreshing the browser.

I can be absolutely certain that this system did work and now it does not - why this is so I certainly have been able to determine

if you have any suggestions as to what i can try I certainly am very open to giving it a go

Thanks
User avatar
OzWaz
 
Posts: 19
Joined: 02. December 2013 13:23
Location: Queensland Australia
XAMPP version: 7.0.15
Operating System: Windows7 64bit

Re: Trouble Shoot Xampp

Postby Nobbie » 21. September 2017 17:16

OzWaz wrote:However what I then do and this may not be orthodoxy but I click on the file\open facility of Firefox which brings up windows explorer and navigate to the file I want, select the file and then I copy and paste the file path from the window explorer into the browser window
for example "
Code: Select all
file:///C:/xampp/htdocs/WorkingFiles/Chapter2/test.php
"

This then opens up the file that I am working on and using Dreamweaver and "Ctrl/S" I could continue to manipulate the document and view the outcomes in the browser window simply by refreshing the browser.


Yes of course - but this all has nothing to do with Xampp. If it does not work anymore, you must have changed anything in Dreamweaver or Windows, but anyway: This all has NOTHING to do with Xampp. Xampp does not start Dreamweaver, Dreamwaver is not part of Xampp and you are simply totally wrong here. Thats a pure Dreamweaver question.

Last not least, Dreamweaver starts firefox again and THEN Dreamweaver probably starts firefox and provides the correct URL to Dreamweaver (http://localhost/...) for your Document, that finally leads to Xampp. I dont understand, which part of all this is not working correctly, but everything what deals with Dreamweaver is NOT part of Xampp. We cannot help you on that request. Sorry.
Nobbie
 
Posts: 9689
Joined: 09. March 2008 13:04

Re: Trouble Shoot Xampp

Postby OzWaz » 22. September 2017 01:54

Well at least thanks for getting involved I do appreciate the effort that people go to help other it’s a great service to the global community when people freely make the effort they do to help others to find solutions to their problems
I will keep ferreting around and hopefully I will come up with a positive outcome
my regards
Warren
User avatar
OzWaz
 
Posts: 19
Joined: 02. December 2013 13:23
Location: Queensland Australia
XAMPP version: 7.0.15
Operating System: Windows7 64bit


Return to XAMPP for Windows

Who is online

Users browsing this forum: No registered users and 57 guests