PHP scripts download instead of execute after upgrade Solved

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

PHP scripts download instead of execute after upgrade Solved

Postby magicpio » 04. October 2012 21:09

Hi,

First I upgraded xampp linux from 1.7.4 to 1.7.7 and everything works fine.
Then i upgraded xampp linux from 1.7.7 to 1.8.0, adjusted httpd.conf manually (because xampp could not do automatically), and then
immediately upgraded tp 1.8.1 (without checking if my site is accessible with 1.8.0.

Now, when I call my server (localhost is not possible, its an old system running in text mode with no X installed)
through local network, it offers me to download a file instead showing my website.
So I did and what is downloaded is index.php.
When I open 192.168.1.15/xampp then the index.php in this directory is downloaded but not executed.

I checked / compared old httpd.conf and new one, but did not find anything I could have done wrong or missed.
I did adjust very simple things only anyway, (servername, serveradmin)
I did not mess with the new security concept.

To me it looks like PHP is not running, but how do I check this and where do I switch it on?

Thanks for any help.
Jens
magicpio
 
Posts: 8
Joined: 09. February 2006 23:18

Re: PHP scripts downloaded instead of executed after upgrade

Postby Quasdunk » 04. October 2012 22:48

Could you please show the output of

Code: Select all
> tail -20 /opt/lampp/logs/error_log

and
Code: Select all
> tail -20 /opt/lampp/logs/php_error_log
Quasdunk
 
Posts: 1
Joined: 04. October 2012 22:42
Operating System: Ubuntu 12.04

Re: PHP scripts downloaded instead of executed after upgrade

Postby magicpio » 05. October 2012 20:41

The first output doesn´t say anything to me. Something wrong with certificates?
The second is a loading error of eaccelerator.so. The directories and libs do exist however.
I´ll try disabling eaccelerator.

tail -20 /opt/lampp/logs/error_log
Code: Select all
[Thu Oct 04 20:14:35.607166 2012] [auth_basic:error] [pid 751] [client 192.168.1.4:52876] AH01618: user pma not found: /phpmyadmin
[Thu Oct 04 20:14:48.058637 2012] [auth_basic:error] [pid 1017] [client 192.168.1.4:52877] AH01618: user pma not found: /phpmyadmin
[Thu Oct 04 20:25:05.850340 2012] [mpm_prefork:notice] [pid 564] AH00169: caught SIGTERM, shutting down
[Thu Oct 04 20:30:02.420524 2012] [ssl:warn] [pid 1206] AH01906: RSA server certificate is a CA certificate (BasicConstraints: CA == TRUE !?)
[Thu Oct 04 20:30:02.421866 2012] [ssl:warn] [pid 1206] AH01909: RSA certificate configured for www.example.com:443 does NOT include an ID which matches the server name
[Thu Oct 04 20:30:03.188041 2012] [auth_digest:notice] [pid 1207] AH01757: generating secret for digest authentication ...
[Thu Oct 04 20:30:10.508131 2012] [ssl:warn] [pid 1207] AH01906: RSA server certificate is a CA certificate (BasicConstraints: CA == TRUE !?)
[Thu Oct 04 20:30:10.508832 2012] [ssl:warn] [pid 1207] AH01909: RSA certificate configured for www.example.com:443 does NOT include an ID which matches the server name
[Thu Oct 04 20:30:10.509994 2012] [lbmethod_heartbeat:notice] [pid 1207] AH02282: No slotmem from mod_heartmonitor
[Thu Oct 04 20:30:10.764462 2012] [mpm_prefork:notice] [pid 1207] AH00163: Apache/2.4.3 (Unix) OpenSSL/1.0.1c configured -- resuming normal operations
[Thu Oct 04 20:30:10.765341 2012] [core:notice] [pid 1207] AH00094: Command line: '/opt/lampp/bin/httpd -D SSL -E /opt/lampp/logs/error_log'
[Thu Oct 04 20:31:27.620395 2012] [mpm_prefork:notice] [pid 1207] AH00169: caught SIGTERM, shutting down
[Thu Oct 04 20:31:40.866072 2012] [ssl:warn] [pid 1754] AH01906: RSA server certificate is a CA certificate (BasicConstraints: CA == TRUE !?)
[Thu Oct 04 20:31:40.867278 2012] [ssl:warn] [pid 1754] AH01909: RSA certificate configured for www.example.com:443 does NOT include an ID which matches the server name
[Thu Oct 04 20:31:41.633744 2012] [auth_digest:notice] [pid 1755] AH01757: generating secret for digest authentication ...
[Thu Oct 04 20:31:52.498587 2012] [ssl:warn] [pid 1755] AH01906: RSA server certificate is a CA certificate (BasicConstraints: CA == TRUE !?)
[Thu Oct 04 20:31:52.499193 2012] [ssl:warn] [pid 1755] AH01909: RSA certificate configured for www.example.com:443 does NOT include an ID which matches the server name
[Thu Oct 04 20:31:52.500397 2012] [lbmethod_heartbeat:notice] [pid 1755] AH02282: No slotmem from mod_heartmonitor
[Thu Oct 04 20:31:52.739884 2012] [mpm_prefork:notice] [pid 1755] AH00163: Apache/2.4.3 (Unix) OpenSSL/1.0.1c configured -- resuming normal operations
[Thu Oct 04 20:31:52.757835 2012] [core:notice] [pid 1755] AH00094: Command line: '/opt/lampp/bin/httpd -D SSL -E /opt/lampp/logs/error_log'


tail -20 /opt/lampp/logs/php_error_log:
Code: Select all
[20-Dec-2010 13:18:30] PHP Warning:  PHP Startup: Unable to load dynamic library '/opt/lampp/lib/php/extensions/no-debug-non-zts-20090626/eaccelerator.so' - /opt/lampp/lib/php/extensions/no-debug-non-zts-20090626/eaccelerator.so: cannot open shared object file: No such file or directory in Unknown on line 0
[20-Dec-2010 13:18:47] PHP Warning:  PHP Startup: Unable to load dynamic library '/opt/lampp/lib/php/extensions/no-debug-non-zts-20090626/eaccelerator.so' - /opt/lampp/lib/php/extensions/no-debug-non-zts-20090626/eaccelerator.so: cannot open shared object file: No such file or directory in Unknown on line 0
[20-Dec-2010 13:19:07] PHP Warning:  PHP Startup: Unable to load dynamic library '/opt/lampp/lib/php/extensions/no-debug-non-zts-20090626/eaccelerator.so' - /opt/lampp/lib/php/extensions/no-debug-non-zts-20090626/eaccelerator.so: cannot open shared object file: No such file or directory in Unknown on line 0
[20-Dec-2010 13:21:03] PHP Warning:  PHP Startup: Unable to load dynamic library '/opt/lampp/lib/php/extensions/no-debug-non-zts-20090626/eaccelerator.so' - /opt/lampp/lib/php/extensions/no-debug-non-zts-20090626/eaccelerator.so: cannot open shared object file: No such file or directory in Unknown on line 0
[20-Dec-2010 13:21:25] PHP Warning:  PHP Startup: Unable to load dynamic library '/opt/lampp/lib/php/extensions/no-debug-non-zts-20090626/eaccelerator.so' - /opt/lampp/lib/php/extensions/no-debug-non-zts-20090626/eaccelerator.so: cannot open shared object file: No such file or directory in Unknown on line 0
[20-Dec-2010 18:32:41] PHP Warning:  PHP Startup: Unable to load dynamic library '/opt/lampp/lib/php/extensions/no-debug-non-zts-20090626/eaccelerator.so' - /opt/lampp/lib/php/extensions/no-debug-non-zts-20090626/eaccelerator.so: cannot open shared object file: No such file or directory in Unknown on line 0
[20-Dec-2010 18:33:10] PHP Warning:  PHP Startup: Unable to load dynamic library '/opt/lampp/lib/php/extensions/no-debug-non-zts-20090626/eaccelerator.so' - /opt/lampp/lib/php/extensions/no-debug-non-zts-20090626/eaccelerator.so: cannot open shared object file: No such file or directory in Unknown on line 0
[20-Dec-2010 22:55:06] PHP Warning:  PHP Startup: Unable to load dynamic library '/opt/lampp/lib/php/extensions/no-debug-non-zts-20090626/eaccelerator.so' - /opt/lampp/lib/php/extensions/no-debug-non-zts-20090626/eaccelerator.so: cannot open shared object file: No such file or directory in Unknown on line 0
[20-Dec-2010 22:55:29] PHP Warning:  PHP Startup: Unable to load dynamic library '/opt/lampp/lib/php/extensions/no-debug-non-zts-20090626/eaccelerator.so' - /opt/lampp/lib/php/extensions/no-debug-non-zts-20090626/eaccelerator.so: cannot open shared object file: No such file or directory in Unknown on line 0
[20-Dec-2010 23:21:39] PHP Warning:  PHP Startup: Unable to load dynamic library '/opt/lampp/lib/php/extensions/no-debug-non-zts-20090626/eaccelerator.so' - /opt/lampp/lib/php/extensions/no-debug-non-zts-20090626/eaccelerator.so: cannot open shared object file: No such file or directory in Unknown on line 0
[20-Dec-2010 23:21:55] PHP Warning:  PHP Startup: Unable to load dynamic library '/opt/lampp/lib/php/extensions/no-debug-non-zts-20090626/eaccelerator.so' - /opt/lampp/lib/php/extensions/no-debug-non-zts-20090626/eaccelerator.so: cannot open shared object file: No such file or directory in Unknown on line 0
[20-Dec-2010 23:22:16] PHP Warning:  PHP Startup: Unable to load dynamic library '/opt/lampp/lib/php/extensions/no-debug-non-zts-20090626/eaccelerator.so' - /opt/lampp/lib/php/extensions/no-debug-non-zts-20090626/eaccelerator.so: cannot open shared object file: No such file or directory in Unknown on line 0
[04-Oct-2012 19:43:56 UTC] PHP Warning:  PHP Startup: Unable to load dynamic library '/opt/lampp/lib/php/extensions/no-debug-non-zts-20100525/eaccelerator.so' - /opt/lampp/lib/php/extensions/no-debug-non-zts-20100525/eaccelerator.so: cannot open shared object file: No such file or directory in Unknown on line 0
[04-Oct-2012 19:46:09 UTC] PHP Warning:  PHP Startup: Unable to load dynamic library '/opt/lampp/lib/php/extensions/no-debug-non-zts-20100525/eaccelerator.so' - /opt/lampp/lib/php/extensions/no-debug-non-zts-20100525/eaccelerator.so: cannot open shared object file: No such file or directory in Unknown on line 0
[04-Oct-2012 19:47:28 UTC] PHP Warning:  PHP Startup: Unable to load dynamic library '/opt/lampp/lib/php/extensions/no-debug-non-zts-20100525/eaccelerator.so' - /opt/lampp/lib/php/extensions/no-debug-non-zts-20100525/eaccelerator.so: cannot open shared object file: No such file or directory in Unknown on line 0
[04-Oct-2012 19:52:36 UTC] PHP Warning:  PHP Startup: Unable to load dynamic library '/opt/lampp/lib/php/extensions/no-debug-non-zts-20100525/eaccelerator.so' - /opt/lampp/lib/php/extensions/no-debug-non-zts-20100525/eaccelerator.so: cannot open shared object file: No such file or directory in Unknown on line 0
[04-Oct-2012 20:25:03 UTC] PHP Warning:  PHP Startup: Unable to load dynamic library '/opt/lampp/lib/php/extensions/no-debug-non-zts-20100525/eaccelerator.so' - /opt/lampp/lib/php/extensions/no-debug-non-zts-20100525/eaccelerator.so: cannot open shared object file: No such file or directory in Unknown on line 0
[04-Oct-2012 20:29:57 UTC] PHP Warning:  PHP Startup: Unable to load dynamic library '/opt/lampp/lib/php/extensions/no-debug-non-zts-20100525/eaccelerator.so' - /opt/lampp/lib/php/extensions/no-debug-non-zts-20100525/eaccelerator.so: cannot open shared object file: No such file or directory in Unknown on line 0
[04-Oct-2012 20:31:25 UTC] PHP Warning:  PHP Startup: Unable to load dynamic library '/opt/lampp/lib/php/extensions/no-debug-non-zts-20100525/eaccelerator.so' - /opt/lampp/lib/php/extensions/no-debug-non-zts-20100525/eaccelerator.so: cannot open shared object file: No such file or directory in Unknown on line 0
[04-Oct-2012 20:31:36 UTC] PHP Warning:  PHP Startup: Unable to load dynamic library '/opt/lampp/lib/php/extensions/no-debug-non-zts-20100525/eaccelerator.so' - /opt/lampp/lib/php/extensions/no-debug-non-zts-20100525/eaccelerator.so: cannot open shared object file: No such file or directory in Unknown on line 0

magicpio
 
Posts: 8
Joined: 09. February 2006 23:18

Re: PHP scripts downloaded instead of executed after upgrade

Postby magicpio » 05. October 2012 20:48

Disabling eaccelerator helped. My site is back.
But why is eaccelerator broken (again, as with xampp 1.7.2)?

Thanks for the hint with the error logs.
magicpio
 
Posts: 8
Joined: 09. February 2006 23:18

Re: PHP scripts download instead of execute after upgrade So

Postby heberv » 09. October 2012 16:25

I have a similar error, unresolve until now.

My only error log are:

error.log:
[Tue Oct 09 11:17:11.106084 2012] [suexec:notice] [pid 18031] AH01232: suEXEC mechanism enabled (wrapper: /opt/lampp/bin/suexec)
[Tue Oct 09 11:17:12.544177 2012] [auth_digest:notice] [pid 18032] AH01757: generating secret for digest authentication ...
[Tue Oct 09 11:17:13.093995 2012] [lbmethod_heartbeat:notice] [pid 18032] AH02282: No slotmem from mod_heartmonitor
[Tue Oct 09 11:17:13.131909 2012] [mpm_prefork:notice] [pid 18032] AH00163: Apache/2.4.3 (Unix) OpenSSL/1.0.1c configured -- resuming normal operations
[Tue Oct 09 11:17:13.132030 2012] [core:notice] [pid 18032] AH00094: Command line: '/opt/lampp/bin/httpd -D SSL -D PHP5 -E /opt/lampp/logs/error_log'

I try many google internet things but still is not working.

Any sugerences ... any help.

Thank You.
Centos 6 64bit
lampp 1.7.7 upgrade to 1.8.0 to 1.8.1
heberv
 
Posts: 12
Joined: 09. October 2012 16:18
Operating System: Linux Centos 6

Re: PHP scripts download instead of execute after upgrade So

Postby heberv » 10. October 2012 13:34

Resolve. The problem is my cache and a php application line on .htaccess
heberv
 
Posts: 12
Joined: 09. October 2012 16:18
Operating System: Linux Centos 6

Re: PHP scripts download instead of execute after upgrade So

Postby bnedelcov » 14. November 2012 10:39

Hi I have the same problem and I cannot get it to work.

My error log reads:
[root@webserver upgrade]# tail -20 /opt/lampp/logs/error_log
[Wed Nov 14 09:24:20.071132 2012] [ssl:warn] [pid 25052] AH01906: RSA server certificate is a CA certificate (BasicConstraints: CA == TRUE !?)
[Wed Nov 14 09:24:20.071350 2012] [ssl:warn] [pid 25052] AH01909: RSA certificate configured for www.example.com:443 does NOT include an ID which matches the server name
[Wed Nov 14 09:24:20.071436 2012] [suexec:notice] [pid 25052] AH01232: suEXEC mechanism enabled (wrapper: /opt/lampp/bin/suexec)
[Wed Nov 14 09:24:20.112471 2012] [auth_digest:notice] [pid 25053] AH01757: generating secret for digest authentication ...
[Wed Nov 14 09:24:21.094137 2012] [ssl:warn] [pid 25053] AH01906: RSA server certificate is a CA certificate (BasicConstraints: CA == TRUE !?)
[Wed Nov 14 09:24:21.094212 2012] [ssl:warn] [pid 25053] AH01909: RSA certificate configured for www.example.com:443 does NOT include an ID which matches the server name
[Wed Nov 14 09:24:21.094315 2012] [lbmethod_heartbeat:notice] [pid 25053] AH02282: No slotmem from mod_heartmonitor
[Wed Nov 14 09:24:21.101037 2012] [mpm_prefork:notice] [pid 25053] AH00163: Apache/2.4.3 (Unix) OpenSSL/1.0.1c configured -- resuming normal operations
[Wed Nov 14 09:24:21.101115 2012] [core:notice] [pid 25053] AH00094: Command line: '/opt/lampp/bin/httpd -D SSL -E /opt/lampp/logs/error_log'
[Wed Nov 14 09:25:00.674716 2012] [mpm_prefork:notice] [pid 25053] AH00169: caught SIGTERM, shutting down
AH00548: NameVirtualHost has no effect and will be removed in the next release /opt/lampp/etc/extra/httpd-vhosts.conf:19
[Wed Nov 14 09:25:09.067795 2012] [ssl:warn] [pid 25589] AH01906: RSA server certificate is a CA certificate (BasicConstraints: CA == TRUE !?)
[Wed Nov 14 09:25:09.067998 2012] [ssl:warn] [pid 25589] AH01909: RSA certificate configured for www.example.com:443 does NOT include an ID which matches the server name
[Wed Nov 14 09:25:09.068077 2012] [suexec:notice] [pid 25589] AH01232: suEXEC mechanism enabled (wrapper: /opt/lampp/bin/suexec)
[Wed Nov 14 09:25:09.109258 2012] [auth_digest:notice] [pid 25590] AH01757: generating secret for digest authentication ...
[Wed Nov 14 09:25:10.073484 2012] [ssl:warn] [pid 25590] AH01906: RSA server certificate is a CA certificate (BasicConstraints: CA == TRUE !?)
[Wed Nov 14 09:25:10.073589 2012] [ssl:warn] [pid 25590] AH01909: RSA certificate configured for www.example.com:443 does NOT include an ID which matches the server name
[Wed Nov 14 09:25:10.073706 2012] [lbmethod_heartbeat:notice] [pid 25590] AH02282: No slotmem from mod_heartmonitor
[Wed Nov 14 09:25:10.080895 2012] [mpm_prefork:notice] [pid 25590] AH00163: Apache/2.4.3 (Unix) OpenSSL/1.0.1c configured -- resuming normal operations
[Wed Nov 14 09:25:10.080970 2012] [core:notice] [pid 25590] AH00094: Command line: '/opt/lampp/bin/httpd -D SSL -E /opt/lampp/logs/error_log'


the php error log is empty. Can you please help me as I am at a loss.

I can tell you that this problem only occured after updating to 1.8.0 version.

Best,

Bogdan.
bnedelcov
 
Posts: 1
Joined: 14. November 2012 10:36
Operating System: centos

Re: PHP scripts download instead of execute after upgrade So

Postby Nobbie » 14. November 2012 23:36

Undo the upgrade and restore your Backup.
Nobbie
 
Posts: 13183
Joined: 09. March 2008 13:04


Return to XAMPP for Linux

Who is online

Users browsing this forum: No registered users and 17 guests