You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@httpd.apache.org by Malka Cymbalista <Ma...@weizmann.ac.il> on 2005/10/30 13:07:55 UTC

[users@httpd] Apache and PHP

We are having a strange problem with our PHP sites and I was wondering
of someone has any pointers to offer.
We are running apache 2.0.55 with mod_perl 2.0.1 and php 4.3.3 and
mod_ssl 2.0.55 on  a Sun Solaris machine.  Every now and then, when you
click on a URL that is a php script, instead of the file executing, a
File Download panel opens and it asks if you want to  save it to your
computer.  It is as if it does not recognize that it is a php file.
Sometimes it actually displays the code of the file. The really strange
thing is that it appears to happen randomly.  That is, some times the
same link  works perfectly well and the links open properky.  But
sometimes, it asks if you want to save the file. If you click on Cancel
and then click on the link again, it usually opens properly.
We have the following line in httpd.conf:
AddType application/x-httpd-php .php .phtml

Does that line belong in any particular place.  Originally it was in
the general part of the file and not in any <Directory> section.  I
added it to some of the <Directory> sections but it doesn't seem to have
made a diference.

Does anyone have any ideas about what is happening and how to fix the
problem?

Thanks for any help.


Malka Cymbalista
Webmaster, Weizmann Institute of Science
malki.cymbalista@weizmann.ac.il
08-934-3036

---------------------------------------------------------------------
The official User-To-User support forum of the Apache HTTP Server Project.
See <URL:http://httpd.apache.org/userslist.html> for more info.
To unsubscribe, e-mail: users-unsubscribe@httpd.apache.org
   "   from the digest: users-digest-unsubscribe@httpd.apache.org
For additional commands, e-mail: users-help@httpd.apache.org


Re: [users@httpd] Apache and PHP

Posted by Octavian Rasnita <or...@fcc.ro>.
From: "Boysenberry Payne" <bo...@humaniteque.com>
That's funny I did the opposite, started with PHP and went to MP
after a few years at PHP.

Just out of curiosity, why would one go from MP to PHP?  It seems
like you're giving up a lot in the move.

Boysenberry

---

I have started with perl CGI, ModPerl, then I have tried PHP. I have made
some benchmarks, saw that PHP is slower a little, there are not so many
libraries for PHP as for perl, I have found a bug in PHP core, I have seen
that while Perl can be used not only to create programs for web servers but
also create programs with GUI's for more OS's including Windows, I have
decided to stay with Perl.

Teddy



---------------------------------------------------------------------
The official User-To-User support forum of the Apache HTTP Server Project.
See <URL:http://httpd.apache.org/userslist.html> for more info.
To unsubscribe, e-mail: users-unsubscribe@httpd.apache.org
   "   from the digest: users-digest-unsubscribe@httpd.apache.org
For additional commands, e-mail: users-help@httpd.apache.org


Re: [users@httpd] Apache and PHP

Posted by Boysenberry Payne <bo...@humaniteque.com>.
That's funny I did the opposite, started with PHP and went to MP
after a few years at PHP.

Just out of curiosity, why would one go from MP to PHP?  It seems
like you're giving up a lot in the move.

Boysenberry

boysenberrys.com | habitatlife.com | selfgnosis.com

On Oct 31, 2005, at 1:44 PM, Joshua Kogut wrote:

> I too have strayed from the the road of perl in favor of my new love. 
> Php.
>
> On 10/31/05, Tom Cat <strycat@gmail.com > wrote:Check out
>>  http://www.linux-sottises.net/en_apache_install.php
>>
>> Using both PHP and mod_perl together has caused problems in the past
>> (http://slashdot.org/article.pl?sid=00/11/21/1720242 ), but I think
>> they will play nicely now.
>>
>> FYI, I ditched mod_perl in favor of a PHP a while ago.  If I really
>> need perl for a website do it with the cgi-bin directory.
>>
>> On 10/30/05, Malka Cymbalista < Malki.Cymbalista@weizmann.ac.il> 
>> wrote:
>> > We are having a strange problem with our PHP sites and I was 
>> wondering
>> > of someone has any pointers to offer.
>>  > We are running apache 2.0.55 with mod_perl 2.0.1 and php 4.3.3 and
>> > mod_ssl 2.0.55 on  a Sun Solaris machine.  Every now and then, when 
>> you
>> > click on a URL that is a php script, instead of the file executing, 
>> a
>> > File Download panel opens and it asks if you want to  save it to 
>> your
>> > computer.  It is as if it does not recognize that it is a php file.
>> > Sometimes it actually displays the code of the file. The really 
>> strange
>> > thing is that it appears to happen randomly.  That is, some times 
>> the
>> > same link  works perfectly well and the links open properky.  But
>> > sometimes, it asks if you want to save the file. If you click on 
>> Cancel
>> > and then click on the link again, it usually opens properly.
>> > We have the following line in httpd.conf:
>> > AddType application/x-httpd-php .php .phtml
>> >
>> > Does that line belong in any particular place.  Originally it was in
>> > the general part of the file and not in any <Directory> section.  I
>> > added it to some of the <Directory> sections but it doesn't seem to 
>> have
>> > made a diference.
>> >
>> > Does anyone have any ideas about what is happening and how to fix 
>> the
>> > problem?
>> >
>> > Thanks for any help.
>> >
>> >
>> > Malka Cymbalista
>> > Webmaster, Weizmann Institute of Science
>> > malki.cymbalista@weizmann.ac.il
>> > 08-934-3036
>> >
>> > 
>> ---------------------------------------------------------------------
>> > The official User-To-User support forum of the Apache HTTP Server 
>> Project.
>> > See <URL: http://httpd.apache.org/userslist.html> for more info.
>> > To unsubscribe, e-mail: users-unsubscribe@httpd.apache.org
>> >    "   from the digest: users-digest-unsubscribe@httpd.apache.org
>> > For additional commands, e-mail: users-help@httpd.apache.org
>> >
>> >
>>
>> ---------------------------------------------------------------------
>> The official User-To-User support forum of the Apache HTTP Server 
>> Project.
>> See <URL: http://httpd.apache.org/userslist.html> for more info.
>> To unsubscribe, e-mail: users-unsubscribe@httpd.apache.org
>>    "   from the digest: users-digest-unsubscribe@httpd.apache.org
>> For additional commands, e-mail: users-help@httpd.apache.org
>>
>
>
>
> -- 
> ||  jmkogut  ||
> email: jmkogut@gmail.com
> || Networking: Where all your problems are category 5. ||

Re: [users@httpd] Apache and PHP

Posted by Joshua Kogut <jm...@gmail.com>.
I too have strayed from the the road of perl in favor of my new love. Php.

On 10/31/05, Tom Cat <st...@gmail.com> wrote:
>
> Check out
> http://www.linux-sottises.net/en_apache_install.php
>
> Using both PHP and mod_perl together has caused problems in the past
> (http://slashdot.org/article.pl?sid=00/11/21/1720242), but I think
> they will play nicely now.
>
> FYI, I ditched mod_perl in favor of a PHP a while ago. If I really
> need perl for a website do it with the cgi-bin directory.
>
> On 10/30/05, Malka Cymbalista <Ma...@weizmann.ac.il> wrote:
> > We are having a strange problem with our PHP sites and I was wondering
> > of someone has any pointers to offer.
> > We are running apache 2.0.55 with mod_perl 2.0.1 and php 4.3.3 and
> > mod_ssl 2.0.55 on a Sun Solaris machine. Every now and then, when you
> > click on a URL that is a php script, instead of the file executing, a
> > File Download panel opens and it asks if you want to save it to your
> > computer. It is as if it does not recognize that it is a php file.
> > Sometimes it actually displays the code of the file. The really strange
> > thing is that it appears to happen randomly. That is, some times the
> > same link works perfectly well and the links open properky. But
> > sometimes, it asks if you want to save the file. If you click on Cancel
> > and then click on the link again, it usually opens properly.
> > We have the following line in httpd.conf:
> > AddType application/x-httpd-php .php .phtml
> >
> > Does that line belong in any particular place. Originally it was in
> > the general part of the file and not in any <Directory> section. I
> > added it to some of the <Directory> sections but it doesn't seem to have
> > made a diference.
> >
> > Does anyone have any ideas about what is happening and how to fix the
> > problem?
> >
> > Thanks for any help.
> >
> >
> > Malka Cymbalista
> > Webmaster, Weizmann Institute of Science
> > malki.cymbalista@weizmann.ac.il
> > 08-934-3036
> >
> > ---------------------------------------------------------------------
> > The official User-To-User support forum of the Apache HTTP Server
> Project.
> > See <URL:http://httpd.apache.org/userslist.html> for more info.
> > To unsubscribe, e-mail: users-unsubscribe@httpd.apache.org
> > " from the digest: users-digest-unsubscribe@httpd.apache.org
> > For additional commands, e-mail: users-help@httpd.apache.org
> >
> >
>
> ---------------------------------------------------------------------
> The official User-To-User support forum of the Apache HTTP Server Project.
> See <URL:http://httpd.apache.org/userslist.html> for more info.
> To unsubscribe, e-mail: users-unsubscribe@httpd.apache.org
> " from the digest: users-digest-unsubscribe@httpd.apache.org
> For additional commands, e-mail: users-help@httpd.apache.org
>
>


--
|| jmkogut ||
email: jmkogut@gmail.com
|| Networking: Where all your problems are category 5. ||

Re: [users@httpd] Apache and PHP

Posted by Tom Cat <st...@gmail.com>.
Check out
http://www.linux-sottises.net/en_apache_install.php

Using both PHP and mod_perl together has caused problems in the past
(http://slashdot.org/article.pl?sid=00/11/21/1720242), but I think
they will play nicely now.

FYI, I ditched mod_perl in favor of a PHP a while ago.  If I really
need perl for a website do it with the cgi-bin directory.

On 10/30/05, Malka Cymbalista <Ma...@weizmann.ac.il> wrote:
> We are having a strange problem with our PHP sites and I was wondering
> of someone has any pointers to offer.
> We are running apache 2.0.55 with mod_perl 2.0.1 and php 4.3.3 and
> mod_ssl 2.0.55 on  a Sun Solaris machine.  Every now and then, when you
> click on a URL that is a php script, instead of the file executing, a
> File Download panel opens and it asks if you want to  save it to your
> computer.  It is as if it does not recognize that it is a php file.
> Sometimes it actually displays the code of the file. The really strange
> thing is that it appears to happen randomly.  That is, some times the
> same link  works perfectly well and the links open properky.  But
> sometimes, it asks if you want to save the file. If you click on Cancel
> and then click on the link again, it usually opens properly.
> We have the following line in httpd.conf:
> AddType application/x-httpd-php .php .phtml
>
> Does that line belong in any particular place.  Originally it was in
> the general part of the file and not in any <Directory> section.  I
> added it to some of the <Directory> sections but it doesn't seem to have
> made a diference.
>
> Does anyone have any ideas about what is happening and how to fix the
> problem?
>
> Thanks for any help.
>
>
> Malka Cymbalista
> Webmaster, Weizmann Institute of Science
> malki.cymbalista@weizmann.ac.il
> 08-934-3036
>
> ---------------------------------------------------------------------
> The official User-To-User support forum of the Apache HTTP Server Project.
> See <URL:http://httpd.apache.org/userslist.html> for more info.
> To unsubscribe, e-mail: users-unsubscribe@httpd.apache.org
>    "   from the digest: users-digest-unsubscribe@httpd.apache.org
> For additional commands, e-mail: users-help@httpd.apache.org
>
>

---------------------------------------------------------------------
The official User-To-User support forum of the Apache HTTP Server Project.
See <URL:http://httpd.apache.org/userslist.html> for more info.
To unsubscribe, e-mail: users-unsubscribe@httpd.apache.org
   "   from the digest: users-digest-unsubscribe@httpd.apache.org
For additional commands, e-mail: users-help@httpd.apache.org