ID:               19729
 User updated by:  [EMAIL PROTECTED]
 Reported By:      [EMAIL PROTECTED]
-Status:           Suspended
+Status:           Closed
 Bug Type:         Apache2 related
 Operating System: Linux 2.4.16 #26 SMP
 PHP Version:      4.2.3
 New Comment:

It works !

In the httpd.conf file, I've only the line :
LoadModule php4_module        modules/libphp4.so
I added a new line in the mime.types :
application/x-httpd-php         php php3 phps
and it works... I dont know really why, but It seems ok.

Thank you.


Previous Comments:
------------------------------------------------------------------------

[2002-10-09 11:01:38] [EMAIL PROTECTED]

Apache2+PHP 4.2.x are nowhere near production quality.  Try the latest
CVS snapshot from snaps.php.net.  But, even that will not be very
stable.  We suggest you stick with Apache 1.3.x if you are going to use
PHP.

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

[2002-10-09 10:58:49] [EMAIL PROTECTED]

I stop and start the server evry time I make a test.

I've compiled with short-tags :
./configure  --with-apache2 --with-apxs2=/usr/local/apache2/bin/apxs
--with-pgsql --with-ldap --with-mysql=/usr/local/mysql --with-tsrm-pth
--enable-short-tags

I put the line
AddType application/x-httpd-php .php .php3 .phps
at the end of my http.conf file
And nothing...
The Type seems to be recognized : mozilla display the content of the
php file. If I dont add the Type; mozilla
ask me what to do with this unknow type file.
The module seems to be present, but it parse nothing...

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

[2002-10-09 10:26:44] [EMAIL PROTECTED]

Did you stop/start apache after changing this? And I don't mean
'restart' but real 'apachectl stop' and 'apachectl start' ?

Also, are you sure you don't have short-tags disabled?
Try this script:

test.php
<?php phpinfo(); ?>


And make sure that 'Addtype' line is LAST line in the apache conf..


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

[2002-10-09 09:56:20] [EMAIL PROTECTED]

If I put only the lines :
--
LoadModule php4_module        modules/libphp4.so
AddType application/x-httpd-php .php .php3 .phps
--
It's still not working. nada...

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

[2002-10-09 09:33:22] [EMAIL PROTECTED]

You only need the 'LoadModule' and 'AddType' lines..


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

The remainder of the comments for this report are too long. To view
the rest of the comments, please view the bug report online at
    http://bugs.php.net/19729

-- 
Edit this bug report at http://bugs.php.net/?id=19729&edit=1

Reply via email to