php-install Digest 3 Sep 2002 09:04:39 -0000 Issue 1006

Topics (messages 8305 through 8315):

Re: PHP, apache and Redhat 7.1
        8305 by: Peter Goggin
        8309 by: Chris Hewitt
        8311 by: Peter
        8315 by: Chris Hewitt

Re: redhat-apache-php
        8306 by: mhe.ruc.dk
        8307 by: Pierre-Alain Joye

Repeating tasks by time,Can anyone help?
        8308 by: Nima Dezhkam
        8310 by: mhe.ruc.dk

Re: Bug?
        8312 by: Ken Kyler
        8313 by: Phil Driscoll

Apache 2.x w/ mod_php
        8314 by: Jay Cornwall

Administrivia:

To subscribe to the digest, e-mail:
        [EMAIL PROTECTED]

To unsubscribe from the digest, e-mail:
        [EMAIL PROTECTED]

To post to the list, e-mail:
        [EMAIL PROTECTED]


----------------------------------------------------------------------
--- Begin Message ---
I have installed Redhat 7.2, Apache 1.3.26, php 4.2.2.

I can get the web server working, but it does not appear to interpret
embedded php code.


I have run /usr/bin/php -i >test.htm  and the file generated displays in the
browser. However even simple files with embedded php do not work.

For example:
<html>
<body>
Test script
<?php
echo "this is a test";
?>
</body>
</html>
 only displays the html portion.
In addition if I call the script test.php the browser fails to recognise it
as a valid script.
 Can anyone suggest where I should look for the problem.

I have a full site which I developed under win98 and now need to transfer it
to the linux machine.  None of the scripts which include embedded php or
which have type .php work on the linux machine so obviously I have not got
apache server correctly configures.

Regards

Peter Goggin

--- End Message ---
--- Begin Message ---
Peter,

It sounds like you have not added appropriate AddType and LoadModule 
lines in httpd.conf, or not restarted Apache.

HTH
Chris

Peter Goggin wrote:

>I have installed Redhat 7.2, Apache 1.3.26, php 4.2.2.
>
>I can get the web server working, but it does not appear to interpret
>embedded php code.
>---------------snip--------------------
>


--- End Message ---
--- Begin Message ---
I have the lines:
    LoadModule php4_module libexec/libphp4.so

   AddModule mod_php4.c


        AddType application/x-httpd-php .php .php4 .php3 .phtml
        AddType application/x-httpd-php-source .phps

I have stopped and restarted apache several times.

Regards

Peter Goggin
----- Original Message ----- 
From: "Chris Hewitt" <[EMAIL PROTECTED]>
To: "Peter Goggin" <[EMAIL PROTECTED]>
Cc: <[EMAIL PROTECTED]>
Sent: Tuesday, September 03, 2002 12:56 AM
Subject: Re: [PHP-INST] Re: PHP, apache and Redhat 7.1


> Peter,
> 
> It sounds like you have not added appropriate AddType and LoadModule 
> lines in httpd.conf, or not restarted Apache.
> 
> HTH
> Chris
> 
> Peter Goggin wrote:
> 
> >I have installed Redhat 7.2, Apache 1.3.26, php 4.2.2.
> >
> >I can get the web server working, but it does not appear to interpret
> >embedded php code.
> >---------------snip--------------------
> >
> 
> 
> 
> -- 
> PHP Install Mailing List (http://www.php.net/)
> To unsubscribe, visit: http://www.php.net/unsub.php
> 


---
Outgoing mail is certified Virus Free.
Checked by AVG anti-virus system (http://www.grisoft.com).
Version: 6.0.381 / Virus Database: 214 - Release Date: 2/08/02

--- End Message ---
--- Begin Message ---
Peter wrote:

>I have the lines:
>    LoadModule php4_module libexec/libphp4.so
>
>   AddModule mod_php4.c
>
>
>        AddType application/x-httpd-php .php .php4 .php3 .phtml
>        AddType application/x-httpd-php-source .phps
>
>I have stopped and restarted apache several times.
>
Peter,

I'm just trying to think of the possibilites for you. I now use RH 7.3 
and the supplied versions. php 4.2.2 is not the version supplied with RH 
7.2 so did you have the 4.0.6 that came with it working with the 
supplied Apache 1.3.20? Presumably you compiled php as an apache module? 
Does "httpd -l" show mod_so? Is httpd.conf the right one and in the 
right place (I tend to put some rubbish into httpd.conf and check that 
apache complains on restarting to check this)? The file layout used by 
RH for apache differs from the native apache layout. What were your 
configure lines for apache and php?

HTH
Chris

--- End Message ---
--- Begin Message ---
You need to configure your apache to use php as a cgi, whenever a php file is 
requested. Here is a link to a toturial. It is for installing in windows, but 
the configuration af apache should bring you there.

http://www.thickbook.com/extra/php_apachephp4_win.phtml


/Martin Hjort Eriksen

Citat Prometeo <[EMAIL PROTECTED]>:

> Ok, i installed apache_1.3.24 in this way:
> 1)./configure --prefix=/usr/local/apache --enable-shared=max
> --enable-module=most
> 2)make
> 3)mke install
> 
> so i installed php 4.2.2
> 1) ./configure -with-apxs=/usr/local/apache/bin/apxs
> 2)make
> 3)make install
> 
> i think it is all right.
> 
> i try localhost and it's ok.
> 
> i write <? phpinfo(); ?> with kedit
> and save it in /usr/local/apache/htdocs as index.php,
> but when i open it with my browser (konquenor), localhost/index.php
> there is
> <? phpinfo(); ?>
> 
> 
> i can't go on!!!!!!!!!!!!!!!!!
> 
> 
> --
> PHP Install Mailing List (http://www.php.net/)
> To unsubscribe, visit: http://www.php.net/unsub.php
> 
> 


--- End Message ---
--- Begin Message ---
On Mon, 02 Sep 2002 16:04:59 +0200 (CEST)
[EMAIL PROTECTED] wrote:

> You need to configure your apache to use php as a cgi, whenever a php file is 
> requested. Here is a link to a toturial. It is for installing in windows, but 
> the configuration af apache should bring you there.

not really :-)

<?php phpinfo(); ?>  works better ?

and check if you have these line in your http.conf

        AddType application/x-httpd-php .php .php4 .php3 .phtml
        AddType application/x-httpd-php-source .phps


hth

pa
--- End Message ---
--- Begin Message ---
Hello ,
I have a question , How can we repeat a job by time in
php? I mean does something like a timer exist in php,
which can repeat a task for example in every 5
minutes? 
And how can a program become resident on server, I
mean I have to write a php file, which should be
always active,it should have some timers(or with any
other ways) so that in certain intervals it should
make a query to the database.
Can anybody help How I can implement such a thing?
Thank you so much,
N.Dezhkam.

__________________________________________________
Do You Yahoo!?
Yahoo! Finance - Get real-time stock quotes
http://finance.yahoo.com
--- End Message ---
--- Begin Message ---
Don't make your php script resident in your memory. If you use linux, then use 
cron to make your script run every 5 minutes.'

/Martin

Citat Nima Dezhkam <[EMAIL PROTECTED]>:

> Hello ,
> I have a question , How can we repeat a job by time in
> php? I mean does something like a timer exist in php,
> which can repeat a task for example in every 5
> minutes? 
> And how can a program become resident on server, I
> mean I have to write a php file, which should be
> always active,it should have some timers(or with any
> other ways) so that in certain intervals it should
> make a query to the database.
> Can anybody help How I can implement such a thing?
> Thank you so much,
> N.Dezhkam.
> 
> __________________________________________________
> Do You Yahoo!?
> Yahoo! Finance - Get real-time stock quotes
> http://finance.yahoo.com
> 
> -- 
> PHP Install Mailing List (http://www.php.net/)
> To unsubscribe, visit: http://www.php.net/unsub.php
> 
> 



mvh

Martin Hjort Eriksen
Studenterrådet, Roskilde Universitetscenter
--- End Message ---
--- Begin Message ---
> Any chance that there's a silly setting for auto_append_file or
> auto_prepend_file in php.ini?

Good thought Phil - I disabled the auto_append_file and auto_prepend_file
and got the same result.

Ken

--- End Message ---
--- Begin Message ---
On Monday 02 September 2002 10:23 pm, Ken Kyler wrote:
> > Any chance that there's a silly setting for auto_append_file or
> > auto_prepend_file in php.ini?
>
> Good thought Phil - I disabled the auto_append_file and auto_prepend_file
> and got the same result.
Sadly tha last of my good thoughts on the subject. Anyone else got any bright 
ideas?
-- 
Phil Driscoll
--- End Message ---
--- Begin Message ---
Hi

I've compiled and installed the latest stable version of mod_php (4.2.2 
wouldn't compile without errors) with (Linux) Apache 2.0.40, and it seems to 
be working fine.

My .php files are parsed correctly, but I was wondering if I can do the same 
for embedded PHP (<?php ... ?>) in .html files?

I've tried adding this to my httpd.conf:
  AddType application/x-httpd-php .html

But the PHP code remains unparsed, and all the pages are returned with type 
application/x-httpd-php (which makes my browser ask if I wish to save the 
page, rather than viewing it :/).

Any ideas?

Cheers,
Jay

-- 
http://www.evilrealms.net/ - Systems Administrator
http://www.ic.ac.uk/ - Imperial College, student and developer
--- End Message ---

Reply via email to