Re: [PHP] Firefox/IE (sometimes) wants to download .php files from my Apache2 server

2004-12-27 Thread Rinke Hoekstra
Dear Richard,
Thank you for your most extensive an excellent suggestions! I will have 
a look at it once my holidays are over... (or when I start itching too 
badly)

Thanks again.
-Rinke
Richard Lynch wrote:
Rinke Hoekstra wrote:
I have a rather odd problem. Since a few days, my otherwise perfect SuSe
9.0 Apache2 server started to do some funny stuff.
In general, php works fine, and I can do anything I want... after a
little while Firefox/IE starts asking me whether I want to download/run
the php file instead of rendering it in the browser.

When this does happen, do you get your PHP source if you download it, or
does PHP actually get invoked, and you get the HTML output?
Try it several times, as there may be timing issues, and you may get
different results based on weird browser behaviour with respect to asking
for a URL *twice* when prompting for a download.
EG: browser asks for URL, triggers bug, asks you if you want to download,
asks for URL again but doesn't trigger bug and gets output you expect.

Sometimes even this doesn't happen, and I just get a regular Apache2
page stating 'Object not found' (with accompanying lines in my server's
error_log). A few minutes later, everything works fine again.
(restarting apache also tends to help)

Sounds like something is killing the PHP Module (or is it CGI?) in your
server...

I think the biggest problem is that it is intermittent: sometimes it
works, and sometimes it doesn't... no way for me to diagnose it.
weird.

Try throwing Apache Benchmark (ab) at it, or some other load-inducing
software.
My hypotheses is that it's happening under load because...
Your OS has a limit on the number of processes that can run, and Apache is
going okay, but PHP as CGI is hitting that wall.  If you are running PHP
as Module, and not CGI, this hypothesis is obviously bogus.
Some module in PHP is not thread-safe, and your PHP Module is dying out,
but Apache is managing to sort of stagger along...  Seems unlikely,
however...
It's also possible that some third piece of software is somehow killing
PHP threads or something, but that would be tough to do...
You might also be hitting some other sort of limit and some bad coding. 
For example, if your Apache/MySQL/PHP setup limits the number of MySQL
connections (see /etc/my.cnf) to *FEWER* than the number of Apache
children (see httpd.conf) and if you PHP code just sort of dies with no
output when MySQL can't be connected to (find your mysql_connect code in
PHP) then you could maybe get this kind of behaviour from some browsers
when they get nothing back from the web server because your code sent
nothing out.  MySQL should have *more* connections available than you have
Apache children.  Just a few more, so you can use the 'mysql' monitor
program even if every Apache child is using a MySQL connection.  This is
most obvious when you use mysql_pconnect, since at that point, each Apache
child ends up with its own MySQL connection, for all intents and purposes.

You may also want to be more specific in your versions of Apache and PHP
if you re-post after more testing.
Hopefully you've got a Development Server you can test this all on...
--
--
Rinke Hoekstra [EMAIL PROTECTED]
T: +31-20-5253499F: +31-20-5253495
Leibniz Center for Law,Law Faculty
University of Amsterdam,   PO Box 1030
1000 BA  Amsterdam,The Netherlands
--
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php


[PHP] Firefox/IE (sometimes) wants to download .php files from my Apache2 server

2004-12-23 Thread Rinke Hoekstra
Hi All,
I have a rather odd problem. Since a few days, my otherwise perfect SuSe 
9.0 Apache2 server started to do some funny stuff.
In general, php works fine, and I can do anything I want... after a 
little while Firefox/IE starts asking me whether I want to download/run 
the php file instead of rendering it in the browser.
Sometimes even this doesn't happen, and I just get a regular Apache2 
page stating 'Object not found' (with accompanying lines in my server's 
error_log). A few minutes later, everything works fine again.
(restarting apache also tends to help)

I think the biggest problem is that it is intermittent: sometimes it 
works, and sometimes it doesn't... no way for me to diagnose it.
weird.

Any ideas?
Cheers,
Rinke
--
--
Rinke Hoekstra [EMAIL PROTECTED]
T: +31-20-5253499F: +31-20-5253495
Leibniz Center for Law,Law Faculty
University of Amsterdam,   PO Box 1030
1000 BA  Amsterdam,The Netherlands
--
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php


[PHP] Re: Firefox/IE (sometimes) wants to download .php files from my Apache2 server

2004-12-23 Thread Rinke Hoekstra
Addendum: it's php 4.3.3 I'm running...
Thomas Munz wrote:
I have the same problem.
This problem occured i PHP crashes.
Do you upgrad your PHP to a newer version or do you compile a PHP source and 
have RPMs installed?


Hi All,
I have a rather odd problem. Since a few days, my otherwise perfect SuSe
9.0 Apache2 server started to do some funny stuff.
In general, php works fine, and I can do anything I want... after a
little while Firefox/IE starts asking me whether I want to download/run
the php file instead of rendering it in the browser.
Sometimes even this doesn't happen, and I just get a regular Apache2
page stating 'Object not found' (with accompanying lines in my server's
error_log). A few minutes later, everything works fine again.
(restarting apache also tends to help)
I think the biggest problem is that it is intermittent: sometimes it
works, and sometimes it doesn't... no way for me to diagnose it.
weird.
Any ideas?
Cheers,
Rinke
--
--
Rinke Hoekstra [EMAIL PROTECTED]
T: +31-20-5253499F: +31-20-5253495
Leibniz Center for Law,Law Faculty
University of Amsterdam,   PO Box 1030
1000 BA  Amsterdam,The Netherlands
--

--
--
Rinke Hoekstra [EMAIL PROTECTED]
T: +31-20-5253499F: +31-20-5253495
Leibniz Center for Law,Law Faculty
University of Amsterdam,   PO Box 1030
1000 BA  Amsterdam,The Netherlands
--
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php


[PHP] Re: Firefox/IE (sometimes) wants to download .php files from my Apache2 server

2004-12-23 Thread Rinke Hoekstra
Thanks for your answer: the word 'crash' might give me some more 
pointers in google.

When the problems started I hadn't done anything. I tried to fix it by 
using the auto-updater of SuSE to install the latest php4 rpm... this
didn't solve my problem.
Hmm

-Rinke
Thomas Munz wrote:
I have the same problem.
This problem occured i PHP crashes.
Do you upgrad your PHP to a newer version or do you compile a PHP source and 
have RPMs installed?


Hi All,
I have a rather odd problem. Since a few days, my otherwise perfect SuSe
9.0 Apache2 server started to do some funny stuff.
In general, php works fine, and I can do anything I want... after a
little while Firefox/IE starts asking me whether I want to download/run
the php file instead of rendering it in the browser.
Sometimes even this doesn't happen, and I just get a regular Apache2
page stating 'Object not found' (with accompanying lines in my server's
error_log). A few minutes later, everything works fine again.
(restarting apache also tends to help)
I think the biggest problem is that it is intermittent: sometimes it
works, and sometimes it doesn't... no way for me to diagnose it.
weird.
Any ideas?
Cheers,
Rinke
--
--
Rinke Hoekstra [EMAIL PROTECTED]
T: +31-20-5253499F: +31-20-5253495
Leibniz Center for Law,Law Faculty
University of Amsterdam,   PO Box 1030
1000 BA  Amsterdam,The Netherlands
--

--
--
Rinke Hoekstra [EMAIL PROTECTED]
T: +31-20-5253499F: +31-20-5253495
Leibniz Center for Law,Law Faculty
University of Amsterdam,   PO Box 1030
1000 BA  Amsterdam,The Netherlands
--
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php


[PHP] Re: Firefox/IE (sometimes) wants to download .php files from my Apache2 server

2004-12-23 Thread Rinke Hoekstra
If it works most of the time, just not all the time... it can't really 
be the mime-types, or can it?

-Rinke
Stephan Fiedler wrote:
Hi Rinke,
check Mime-Types..
Stephan
Rinke Hoekstra wrote:
Hi All,
I have a rather odd problem. Since a few days, my otherwise perfect 
SuSe 9.0 Apache2 server started to do some funny stuff.
In general, php works fine, and I can do anything I want... after a 
little while Firefox/IE starts asking me whether I want to 
download/run the php file instead of rendering it in the browser.
Sometimes even this doesn't happen, and I just get a regular Apache2 
page stating 'Object not found' (with accompanying lines in my 
server's error_log). A few minutes later, everything works fine again.
(restarting apache also tends to help)

I think the biggest problem is that it is intermittent: sometimes it 
works, and sometimes it doesn't... no way for me to diagnose it.
weird.

Any ideas?
Cheers,
Rinke

--
--
Rinke Hoekstra [EMAIL PROTECTED]
T: +31-20-5253499F: +31-20-5253495
Leibniz Center for Law,Law Faculty
University of Amsterdam,   PO Box 1030
1000 BA  Amsterdam,The Netherlands
--
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php


[PHP] Re: Firefox/IE (sometimes) wants to download .php files from my Apache2 server

2004-12-23 Thread Rinke Hoekstra
Thomas Munz wrote:
This is not an Mime-type problem.
What apache version your runnging.
Apache/2.0.48
What RPMs of PHP4 you have installed?
 What PHP Apache module you have installed?
apache2-mod_php4 version 4.3.3
mod_php4-core version 4.3.3
phpdoc 4.3.0
Thanks for all the help!
-Rinke

If it works most of the time, just not all the time... it can't really
be the mime-types, or can it?
-Rinke
Stephan Fiedler wrote:
Hi Rinke,
check Mime-Types..
Stephan
Rinke Hoekstra wrote:
Hi All,
I have a rather odd problem. Since a few days, my otherwise perfect
SuSe 9.0 Apache2 server started to do some funny stuff.
In general, php works fine, and I can do anything I want... after a
little while Firefox/IE starts asking me whether I want to
download/run the php file instead of rendering it in the browser.
Sometimes even this doesn't happen, and I just get a regular Apache2
page stating 'Object not found' (with accompanying lines in my
server's error_log). A few minutes later, everything works fine again.
(restarting apache also tends to help)
I think the biggest problem is that it is intermittent: sometimes it
works, and sometimes it doesn't... no way for me to diagnose it.
weird.
Any ideas?
Cheers,
   Rinke
--
--
Rinke Hoekstra [EMAIL PROTECTED]
T: +31-20-5253499F: +31-20-5253495
Leibniz Center for Law,Law Faculty
University of Amsterdam,   PO Box 1030
1000 BA  Amsterdam,The Netherlands
--

--
--
Rinke Hoekstra [EMAIL PROTECTED]
T: +31-20-5253499F: +31-20-5253495
Leibniz Center for Law,Law Faculty
University of Amsterdam,   PO Box 1030
1000 BA  Amsterdam,The Netherlands
--
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php


[PHP] Re: Firefox/IE (sometimes) wants to download .php files from my Apache2 server

2004-12-23 Thread Rinke Hoekstra
Hmm... no? Now that you mention it, that's actually quite weird.
These are the standard SuSE php packages, mysql works out-of-the-box.
I did not compile, but everything worked fine until now.

Thomas Munz wrote:
Not more PHP modules?
like
php4-4.3.3
php4-mysql-4.3.3
php4-zlib-4.3.3
??
Do you compile PHP4?
...

Thomas Munz wrote:
This is not an Mime-type problem.
What apache version your runnging.
Apache/2.0.48

What RPMs of PHP4 you have installed?
 What PHP Apache module you have installed?
apache2-mod_php4 version 4.3.3
mod_php4-core version 4.3.3
phpdoc 4.3.0
Thanks for all the help!
-Rinke

If it works most of the time, just not all the time... it can't really
be the mime-types, or can it?
-Rinke
Stephan Fiedler wrote:
Hi Rinke,
check Mime-Types..
Stephan
Rinke Hoekstra wrote:
Hi All,
I have a rather odd problem. Since a few days, my otherwise perfect
SuSe 9.0 Apache2 server started to do some funny stuff.
In general, php works fine, and I can do anything I want... after a
little while Firefox/IE starts asking me whether I want to
download/run the php file instead of rendering it in the browser.
Sometimes even this doesn't happen, and I just get a regular Apache2
page stating 'Object not found' (with accompanying lines in my
server's error_log). A few minutes later, everything works fine again.
(restarting apache also tends to help)
I think the biggest problem is that it is intermittent: sometimes it
works, and sometimes it doesn't... no way for me to diagnose it.
weird.
Any ideas?
Cheers,
  Rinke
--
--
Rinke Hoekstra [EMAIL PROTECTED]
T: +31-20-5253499F: +31-20-5253495
Leibniz Center for Law,Law Faculty
University of Amsterdam,   PO Box 1030
1000 BA  Amsterdam,The Netherlands
--
--
--
Rinke Hoekstra [EMAIL PROTECTED]
T: +31-20-5253499F: +31-20-5253495
Leibniz Center for Law,Law Faculty
University of Amsterdam,   PO Box 1030
1000 BA  Amsterdam,The Netherlands
--

--
--
Rinke Hoekstra [EMAIL PROTECTED]
T: +31-20-5253499F: +31-20-5253495
Leibniz Center for Law,Law Faculty
University of Amsterdam,   PO Box 1030
1000 BA  Amsterdam,The Netherlands
--
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php


[PHP] Re: Firefox/IE (sometimes) wants to download .php files from my Apache2 server

2004-12-23 Thread Rinke Hoekstra
Ok, thanx. I'll do that...
-Rinke
Raditha Dissanayake wrote:
Rinke Hoekstra wrote:
Addendum: it's php 4.3.3 I'm running...
It's a pretty ancient version upgrade to a new version and try compiling 
from source. It's very likely that your webserver error log will contain 
a message that tells you why exactly this is happening.

I have a rather odd problem. Since a few days, my otherwise perfect 
SuSe
9.0 Apache2 server started to do some funny stuff.
In general, php works fine, and I can do anything I want... after a
little while Firefox/IE starts asking me whether I want to download/run
the php file instead of rendering it in the browser.
Sometimes even this doesn't happen, and I just get a regular Apache2
page stating 'Object not found' (with accompanying lines in my server's
error_log). A few minutes later, everything works fine again.
(restarting apache also tends to help)



--
--
Rinke Hoekstra [EMAIL PROTECTED]
T: +31-20-5253499F: +31-20-5253495
Leibniz Center for Law,Law Faculty
University of Amsterdam,   PO Box 1030
1000 BA  Amsterdam,The Netherlands
--
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php