Skip site navigation (1)Skip section navigation (2)
Date:      Sat, 19 Feb 2005 22:20:54 -0500
From:      Gerard Samuel <fbsd-questions@trini0.org>
To:        Jeffery Fernandez <forums@jefferyfernandez.id.au>
Cc:        questions@freebsd.org
Subject:   Re: PHP
Message-ID:  <42180216.1020109@trini0.org>
In-Reply-To: <4217FE39.4030206@jefferyfernandez.id.au>
References:  <20050220022403.72598.qmail@web51710.mail.yahoo.com> <4217F98B.7070605@trini0.org> <4217FE39.4030206@jefferyfernandez.id.au>

next in thread | previous in thread | raw e-mail | index | archive | help
Jeffery Fernandez wrote:

> Gerard Samuel wrote:
>
>> Andrei Iarus wrote:
>>
>>> I have installed apache-1.3.33_1, php5-5.0.3_1. And I
>>> tried to run simple scripts like: <html>
>>> <head>
>>>  <title>PHP Test</title>
>>> </head>
>>> <body>
>>> <?php echo '<p>Hello World</p>'; ?>
>>> </body>
>>> </html>
>>> and the output was an unexpected one:
>>> Hello World
>>>
>>> '; ?>
>>> It also doesn`t outputs anything when using the
>>> phpversion() function. A possible bug? Before
>>> reporting this as a bug, I wanted to check if there
>>> was someone else with similar problems(or may be I did
>>> something wrong).
>>
>>
>>
>> First guess.  Apache doesn't know about <?php tags.
>> If you installed php via the port, apache is configured automatically.
>> So I have to ask.  Did you restart apache??
>> Just create a file (index.php), and in it put
>> <?php phpinfo(); ?>
>>
>> And see what it does...
>> _______________________________________________
>> freebsd-questions@freebsd.org mailing list
>> http://lists.freebsd.org/mailman/listinfo/freebsd-questions
>> To unsubscribe, send any mail to 
>> "freebsd-questions-unsubscribe@freebsd.org"
>>
>>
> You will have to add the following entries to the httpd.conf file for 
> apache to understand its a php file
>
> AddType application/x-httpd-php .php
> AddType application/x-httpd-php-source .phps
>
> I don't know if its any different for PHP5 but for PHP4 thats what you 
> need to add.


Forgot about that.
AddType application/x-httpd-php .php
AddType application/x-httpd-php-source .phps

is what I have (php 5.0.2), so I guess you are correct..



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?42180216.1020109>