.php files problem [MySqli extension]

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

.php files problem [MySqli extension]

Postby ksrz » 03. August 2012 18:50

After reinstallation lampp, on: http://localhost
.. that direction download the index.php, whit all the content inside..
Code: Select all
<?php
   if (!empty($_SERVER['HTTPS']) && ('on' == $_SERVER['HTTPS'])) {
      $uri = 'https://';
   } else {
      $uri = 'http://';
   }
   $uri .= $_SERVER['HTTP_HOST'];
   header('Location: '.$uri.'/xampp/');
   exit;
?>
Something is wrong with the XAMPP installation :-(

error_log:
Code: Select all
[Fri Aug 03 14:21:50.035207 2012] [ssl:warn] [pid 14011] AH01906: RSA server certificate is a CA certificate (BasicConstraints: CA == TRUE !?)
[Fri Aug 03 14:21:50.035322 2012] [ssl:warn] [pid 14011] AH01909: RSA certificate configured for www.example.com:443 does NOT include an ID which matches the server name
[Fri Aug 03 14:21:50.035356 2012] [suexec:notice] [pid 14011] AH01232: suEXEC mechanism enabled (wrapper: /opt/lampp/bin/suexec)
[Fri Aug 03 14:21:50.188498 2012] [auth_digest:notice] [pid 14012] AH01757: generating secret for digest authentication ...
[Fri Aug 03 14:21:51.096163 2012] [ssl:warn] [pid 14012] AH01906: RSA server certificate is a CA certificate (BasicConstraints: CA == TRUE !?)
[Fri Aug 03 14:21:51.096206 2012] [ssl:warn] [pid 14012] AH01909: RSA certificate configured for www.example.com:443 does NOT include an ID which matches the server name
[Fri Aug 03 14:21:51.096247 2012] [lbmethod_heartbeat:notice] [pid 14012] AH02282: No slotmem from mod_heartmonitor
[Fri Aug 03 14:21:51.105129 2012] [mpm_prefork:notice] [pid 14012] AH00163: Apache/2.4.2 (Unix) OpenSSL/1.0.1c PHP/5.4.4 configured -- resuming normal operations
[Fri Aug 03 14:21:51.105193 2012] [core:notice] [pid 14012] AH00094: Command line: '/opt/lampp/bin/httpd -D SSL -D PHP5 -E /opt/lampp/logs/error_log'

access_log:
Code: Select all
127.0.0.1 - - [03/Aug/2012:14:14:31 -0300] "GET /xampp/ HTTP/1.1" 302 -
127.0.0.1 - - [03/Aug/2012:14:14:31 -0300] "GET /xampp/splash.php HTTP/1.1" 200 1321
127.0.0.1 - - [03/Aug/2012:14:14:31 -0300] "GET /xampp/img/xampp-logo.jpg HTTP/1.1" 200 19738
127.0.0.1 - - [03/Aug/2012:14:14:48 -0300] "GET /xampp/lang.php?es HTTP/1.1" 302 -
127.0.0.1 - - [03/Aug/2012:14:14:48 -0300] "GET /xampp/index.php HTTP/1.1" 200 589
127.0.0.1 - - [03/Aug/2012:14:14:48 -0300] "GET /xampp/head.php HTTP/1.1" 200 1362
127.0.0.1 - - [03/Aug/2012:14:14:48 -0300] "GET /xampp/navi.php HTTP/1.1" 200 2321
127.0.0.1 - - [03/Aug/2012:14:14:48 -0300] "GET /xampp/start.php HTTP/1.1" 200 856
127.0.0.1 - - [03/Aug/2012:14:14:49 -0300] "GET /xampp/php.php HTTP/1.0" 200 2
127.0.0.1 - - [03/Aug/2012:14:14:49 -0300] "GET /xampp/mysql.php HTTP/1.0" 200 2
127.0.0.1 - - [03/Aug/2012:14:14:49 -0300] "GET /xampp/cgi.cgi HTTP/1.0" 200 3
127.0.0.1 - - [03/Aug/2012:14:14:50 -0300] "GET /xampp/ssi.shtml HTTP/1.0" 200 4
127.0.0.1 - - [03/Aug/2012:14:14:50 -0300] "GET /xampp/perl.pl HTTP/1.0" 200 2
127.0.0.1 - - [03/Aug/2012:14:14:49 -0300] "GET /xampp/status.php HTTP/1.1" 200 3879
127.0.0.1 - - [03/Aug/2012:14:14:51 -0300] "GET /xampp/security.php HTTP/1.1" 200 3941
127.0.0.1 - - [03/Aug/2012:14:15:43 -0300] "GET /xampp/security.php HTTP/1.1" 401 1394
127.0.0.1 - - [03/Aug/2012:14:15:45 -0300] "GET /xampp/security.php HTTP/1.1" 401 1394
127.0.0.1 - - [03/Aug/2012:14:15:45 -0300] "GET /xampp/security.php HTTP/1.1" 401 1394
127.0.0.1 - - [03/Aug/2012:14:15:51 -0300] "GET /xampp/security.php HTTP/1.1" 401 1394
127.0.0.1 - lampp [03/Aug/2012:14:15:55 -0300] "GET /xampp/security.php HTTP/1.1" 200 2661
127.0.0.1 - lampp [03/Aug/2012:14:16:13 -0300] "GET /xampp/php.php HTTP/1.0" 200 2
127.0.0.1 - lampp [03/Aug/2012:14:16:13 -0300] "GET /xampp/mysql.php HTTP/1.0" 200 2
127.0.0.1 - lampp [03/Aug/2012:14:16:13 -0300] "GET /xampp/cgi.cgi HTTP/1.0" 200 3
127.0.0.1 - lampp [03/Aug/2012:14:16:13 -0300] "GET /xampp/ssi.shtml HTTP/1.0" 200 4
127.0.0.1 - lampp [03/Aug/2012:14:16:13 -0300] "GET /xampp/perl.pl HTTP/1.0" 200 2
127.0.0.1 - lampp [03/Aug/2012:14:16:13 -0300] "GET /xampp/status.php HTTP/1.1" 200 3879
192.168.0.51 - - [03/Aug/2012:14:26:35 -0300] "GET / HTTP/1.1" 302 -
192.168.0.51 - - [03/Aug/2012:14:26:35 -0300] "GET /xampp/ HTTP/1.1" 401 1385
192.168.0.51 - lampp [03/Aug/2012:14:27:30 -0300] "GET /xampp/ HTTP/1.1" 200 589
192.168.0.51 - lampp [03/Aug/2012:14:27:30 -0300] "GET /xampp/head.php HTTP/1.1" 200 1362
192.168.0.51 - lampp [03/Aug/2012:14:27:30 -0300] "GET /xampp/navi.php HTTP/1.1" 200 2321
192.168.0.51 - lampp [03/Aug/2012:14:27:30 -0300] "GET /xampp/start.php HTTP/1.1" 200 856
192.168.0.51 - lampp [03/Aug/2012:14:27:31 -0300] "GET /xampp/xampp.css HTTP/1.1" 200 3991
192.168.0.51 - lampp [03/Aug/2012:14:27:31 -0300] "GET /xampp/img/blank.gif HTTP/1.1" 200 43
192.168.0.51 - lampp [03/Aug/2012:14:27:31 -0300] "GET /xampp/img/xampp-logo-new.gif HTTP/1.1" 200 4878
192.168.0.51 - lampp [03/Aug/2012:14:27:31 -0300] "GET /xampp/img/head-for.gif HTTP/1.1" 200 791
192.168.0.51 - lampp [03/Aug/2012:14:27:31 -0300] "GET /xampp/img/head-linux.gif HTTP/1.1" 200 1002
192.168.0.51 - lampp [03/Aug/2012:14:27:31 -0300] "GET /xampp/xampp.js HTTP/1.1" 200 463
192.168.0.51 - lampp [03/Aug/2012:14:27:31 -0300] "GET /xampp/img/apachefriends.gif HTTP/1.1" 200 979
192.168.0.51 - lampp [03/Aug/2012:14:27:31 -0300] "GET /xampp/img/strichel.gif HTTP/1.1" 200 61
192.168.0.51 - - [03/Aug/2012:14:27:31 -0300] "GET /favicon.ico HTTP/1.1" 200 30894
127.0.0.1 - - [03/Aug/2012:14:39:23 -0300] "GET /index.html HTTP/1.1" 404 1097

whats wrong?...

pd: im only get that php file downloaded from localhost... not from others
but.. localhost/xampp/index.php its working fine :?
[fail] -> the problem is on index.php on documentRoot folder..
[correct] -> the problem is on each file *.php on DocumentRoot and subFolders..
any1 know how to fix it?.. after do "localhost/file.php" || "localhost/phpScripts/somthingOn.php"
files witch .php are downloaded from any navigator..
Last edited by ksrz on 20. August 2012 17:22, edited 1 time in total.
ksrz
 
Posts: 3
Joined: 03. August 2012 18:42
Operating System: Linux Ubuntu 12

Re: .php files problem

Postby JonB » 04. August 2012 10:38

After reinstallation lampp, on: http://localhost


Was this an existing lampp installation that was upgraded, or was this the first time lampp was installed on this machine?

:?:
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 files problem

Postby ksrz » 05. August 2012 00:20

JonB wrote:
After reinstallation lampp, on: http://localhost


Was this an existing lampp installation that was upgraded, or was this the first time lampp was installed on this machine?

:?:


i solved it.
problem: befor re-install it, i didnt stop lampp, and all proccess till runing there.. anyway kill all that procces from lampp, then i re-install it again.
but lampp till no working.
Solution: don't know why after re-login ubuntu y get it working again.. and php files too..

i think that was somthing hidden buged ... don't know
thz anyway..
ksrz
 
Posts: 3
Joined: 03. August 2012 18:42
Operating System: Linux Ubuntu 12

Re: .php files problem

Postby JonB » 05. August 2012 03:09

Whatever the reason - I'm glad its working

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 files problem [Solved]

Postby ksrz » 18. August 2012 20:25

the reason is.. when i try to enable this extencion:
;extension=php_mysqli.dll
extension=php_mysqli.dll
solution?.. don't know. xampp 1.7.7 till working fine.. i think there is a wrong core coplie on 1.8? "bug" may
ksrz
 
Posts: 3
Joined: 03. August 2012 18:42
Operating System: Linux Ubuntu 12


Return to XAMPP for Linux

Who is online

Users browsing this forum: No registered users and 25 guests