XAMPP Installation not Workin

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

XAMPP Installation not Workin

Postby shampton » 08. March 2014 20:29

I have installed XAMPP multiple times since last night and I can't get my php script to run correctly. It seems like it isn't getting compiled.I wrote the simple script below:
<?php
$count = 1;
if($count > 0)
{
echo "This is count";
}
else
{
echo "this is not count";
}
?>
and when I ran it on localhost and in firefox this is the output that I got:
0) { echo "This is count"; } else { echo "this is not count"; } ?>

XAMPP says my server is running but I'm not getting the correct outputs on my scripts

The following is error_log from apache:
[Sat Mar 08 13:04:17.301445 2014] [ssl:warn] [pid 5288:tid 260] AH01909: RSA certificate configured for www.example.com:443 does NOT include an ID which matches the server name
[Sat Mar 08 13:04:17.551445 2014] [ssl:warn] [pid 5288:tid 260] AH01909: RSA certificate configured for www.example.com:443 does NOT include an ID which matches the server name
[Sat Mar 08 13:04:17.681445 2014] [mpm_winnt:notice] [pid 5288:tid 260] AH00455: Apache/2.4.7 (Win32) OpenSSL/1.0.1e PHP/5.5.9 configured -- resuming normal operations
[Sat Mar 08 13:04:17.681445 2014] [mpm_winnt:notice] [pid 5288:tid 260] AH00456: Apache Lounge VC11 Server built: Nov 21 2013 20:13:01
[Sat Mar 08 13:04:17.681445 2014] [core:notice] [pid 5288:tid 260] AH00094: Command line: 'c:\\xampp\\apache\\bin\\httpd.exe -d C:/xampp/apache'
[Sat Mar 08 13:04:17.681445 2014] [mpm_winnt:notice] [pid 5288:tid 260] AH00418: Parent: Created child process 5256
[Sat Mar 08 13:04:18.171446 2014] [ssl:warn] [pid 5256:tid 272] AH01909: RSA certificate configured for www.example.com:443 does NOT include an ID which matches the server name
[Sat Mar 08 13:04:18.412446 2014] [ssl:warn] [pid 5256:tid 272] AH01909: RSA certificate configured for www.example.com:443 does NOT include an ID which matches the server name
[Sat Mar 08 13:04:18.452446 2014] [mpm_winnt:notice] [pid 5256:tid 272] AH00354: Child: Starting 150 worker threads.

The following is error_log from php:
[08-Mar-2014 20:12:03 Europe/Berlin] PHP Warning: file_get_contents(lang.tmp): failed to open stream: No such file or directory in C:\xampp\htdocs\xampp\index.php on line 2

Does anyone have any advice on what I am doing wrong?
shampton
 
Posts: 1
Joined: 08. March 2014 20:20
Operating System: Windows 7

Re: XAMPP Installation not Workin

Postby JJ_Tagy » 08. March 2014 22:46

Your file is probably not named file.php format. Maybe ends with .html or .txt?
JJ_Tagy
 
Posts: 788
Joined: 30. January 2012 13:44
XAMPP version: 5.5.15
Operating System: Windows 10 Pro x64


Return to XAMPP for Windows

Who is online

Users browsing this forum: No registered users and 122 guests