php-install Digest 7 Jul 2001 04:39:15 -0000 Issue 349

Topics (messages 3423 through 3428):

Cybercash Intergration on FreeBSD
        3423 by: Joshua Coombs

getting php to work with apache
        3424 by: Robert Barish
        3425 by: Tim Johnson
        3426 by: Philip Snyder
        3427 by: Andrew Apold

PHP3 / Xitami installation problem under Win98
        3428 by: Sumit Rana

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]


----------------------------------------------------------------------


Before I start posting gobs of configure output, etc, has anyone successfully 
compiled mod_php4 on FreeBSD and linked in the Cybercash support libraries?

If so, any pointers, or what would you like to see for debug info to try and 
assist?

Joshua Coombs




Hello
I hope someone can help me.  When I created the script
                  <? phpinfo(); ?>
I get the exact output when I go to http://localhost/phpinfo.php3.  In
other words when I type go to the page I see <? phpinfo() ?>.   In my 
httpd.conf file I have the following: 
       <IfModule mod_php3.c>
       AddType application/x-httpd-php3 .php3
       AddType application/x-httpd-php3-source .phps
       AddType application/x-httpd-php3 .phtml
       </IfModule>
    
    # And for PHP 4.x, use:
    #
    <IfModule mod_php4.c>
    AddType application/x-httpd-php .php
    AddType application/x-httpd-php .php4
    AddType application/x-httpd-php-source .phps
    </IfModule>


So can someone instructed me, on where I went
wrong.  I am missing something.  Thanks

 Bob

----------------------------------------
Content-Type: text/plain; charset="iso-8859-15"; name="httpd.conf"
Content-Transfer-Encoding: base64
Content-Description: Apache config file
----------------------------------------




Have you tried taking out the spaces?  <?phpinfo()?>


Hello
I hope someone can help me.  When I created the script
                  <? phpinfo(); ?>
I get the exact output when I go to http://localhost/phpinfo.php3.  In
other words when I type go to the page I see <? phpinfo() ?>.   In my
httpd.conf file I have the following:
       <IfModule mod_php3.c>
       AddType application/x-httpd-php3 .php3
       AddType application/x-httpd-php3-source .phps
       AddType application/x-httpd-php3 .phtml
       </IfModule>

    # And for PHP 4.x, use:
    #
    <IfModule mod_php4.c>
    AddType application/x-httpd-php .php
    AddType application/x-httpd-php .php4
    AddType application/x-httpd-php-source .phps
    </IfModule>


So can someone instructed me, on where I went
wrong.  I am missing something.  Thanks

 Bob

----------------------------------------
Content-Type: text/plain; charset="iso-8859-15"; name="httpd.conf"
Content-Transfer-Encoding: base64
Content-Description: Apache config file
----------------------------------------






If you ask me, I'm guessing you compiled PHP 4.x. Just take another look at
your configuration file and it SHOULD all make sense.

In case it doesn't... you don't have PHP 3.x. Thats what the <IfModule
mod_php3.c> thing is for. You've got .php3 pages assigned to be parsed by
that module (and only if you are running Apache with that module) which is
exactly what you SHOULD have. However, what is the extension of your phpinfo
file? Why I do believe its .php3, which -gasp- is handled by the module you
don't have! So. Here's what you do. Change the filename to .php so it will
be parsed by PHP4 as is defined inside the <IfModule mod_php4.c> block.
Tada.

-Philip

-----Original Message-----
From: Tim Johnson [mailto:[EMAIL PROTECTED]]
Sent: Friday, July 06, 2001 12:51 PM
To: [EMAIL PROTECTED]
Subject: [PHP-INST] Re: getting php to work with apache


Have you tried taking out the spaces?  <?phpinfo()?>


Hello
I hope someone can help me.  When I created the script
                  <? phpinfo(); ?>
I get the exact output when I go to http://localhost/phpinfo.php3.  In
other words when I type go to the page I see <? phpinfo() ?>.   In my
httpd.conf file I have the following:
       <IfModule mod_php3.c>
       AddType application/x-httpd-php3 .php3
       AddType application/x-httpd-php3-source .phps
       AddType application/x-httpd-php3 .phtml
       </IfModule>

    # And for PHP 4.x, use:
    #
    <IfModule mod_php4.c>
    AddType application/x-httpd-php .php
    AddType application/x-httpd-php .php4
    AddType application/x-httpd-php-source .phps
    </IfModule>


So can someone instructed me, on where I went
wrong.  I am missing something.  Thanks

 Bob

----------------------------------------
Content-Type: text/plain; charset="iso-8859-15"; name="httpd.conf"
Content-Transfer-Encoding: base64
Content-Description: Apache config file
----------------------------------------



-- 
PHP Install Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]




At 04:50 PM 7/6/01 -0300, Tim Johnson wrote:
>Have you tried taking out the spaces?  <?phpinfo()?>
>
>
>Hello
>I hope someone can help me.  When I created the script
>                  <? phpinfo(); ?>

I doubt spaces would matter, heck, most of my phpinfo
reads 

<?
   phpinfo();
?>

but I'm rather anal about putting my statement block seperators
on individual lines (i.e., I'm one of the few I know who will
never do for.... { but instead always go
for...
{

BTW, was that an intentional omission of the semicolon?


>I get the exact output when I go to http://localhost/phpinfo.php3.  In
>other words when I type go to the page I see <? phpinfo() ?>.   In my
>httpd.conf file I have the following:
>       <IfModule mod_php3.c>
>       AddType application/x-httpd-php3 .php3
>       AddType application/x-httpd-php3-source .phps
>       AddType application/x-httpd-php3 .phtml
>       </IfModule>
>
>    # And for PHP 4.x, use:
>    #
>    <IfModule mod_php4.c>
>    AddType application/x-httpd-php .php
>    AddType application/x-httpd-php .php4
>    AddType application/x-httpd-php-source .phps
>    </IfModule>

as a test, try commenting out everything except the addtype for the .php3
(since you seem to be using php3), including the <IfModule...>  presumably
you know you have php3 and ought not need test for it while merely testing
what the problem is.  This should at least ensure that the addtype setting
gets set.  

If you are doing php4 (and I've seen some people install php4 and run examples
from a php3 site so I don't want to assume anything here), try renaming your
file to .php and try the same with the other.

(shrug) can't hurt to try.


=============================
"To dwell within Samsara, however, is to
 be subject to the works of those mighty
 among dreamers."

 - Mahasamatman, in Zelazny's "Lord of Light"

Andrew Apold





I am trying to install PHP3 with Xitami under Windows 98.

My Xitami web server has been working fine for some time now. I seem to have
made all the relevant changes to PHP3.INI.

I have created a simple file test.php and placed in c:\xitami\webpages
directory and giving the following address in my browser (IE5)

http://127.0.0.1/test.php

It gives the following error:

Fatal error: Unable to open c:\xitami\webpages\/ in - on line 0
No input file specified.

What could be the problem?

Sumit





Reply via email to