Apache / PHP
am 05.06.2007 21:52:11 von Janice
Hi all,
I have installed apache2.0, MySQL5.1-Server and PHP5 on my FreeBSD 6.2
server. Apache works oke, PHP doesn't. Every time I try to start an
..php page it asks me if I would like to download or open the file. I
have added these lines to my httpsd.conf file;
AddType application/x-httpd-php .php
AddType application/x-httpd-php-source .phps
Is there anyone fimiliar with this behavior?
Re: Apache / PHP
am 06.06.2007 09:17:44 von unknown
Post removed (X-No-Archive: yes)
Re: Apache / PHP
am 06.06.2007 14:09:51 von Janice
Davide Bianchi schreef:
> On 2007-06-05, Rene Verstappen wrote:
>> server. Apache works oke, PHP doesn't. Every time I try to start an
>> .php page it asks me if I would like to download or open the file. I
>> have added these lines to my httpsd.conf file;
>
> Yes, but do you load the php module somewhere? Or is it compiled
> built-in?
>
> Davide
>
You mean this part;
LoadModule php5_module libexec/apache/libphp5.so
AddModule mod_php5.c
DirectoryIndex index.php index.html
AddType application/x-httpd-php .php
AddType application/x-httpd-php-source .phps
Well, at first I didn't, after I add it apache started with an error;
> Syntax error on line 1052 of /usr/local/etc/apache2/httpd.conf:
> Cannot load /usr/local/libexec/apache/libphp5.so into server: Cannot
> open "/usr/local/libexec/apache/libphp5.so"
The file libphp5.so doens't even exist on my server I found out after a
find command....
Re: Apache / PHP
am 06.06.2007 14:24:45 von unknown
Post removed (X-No-Archive: yes)
Re: Apache / PHP
am 06.06.2007 21:06:00 von Janice
Davide Bianchi schreef:
> On 2007-06-06, Rene Verstappen wrote:
>> Well, at first I didn't, after I add it apache started with an error;
>>
>>> Syntax error on line 1052 of /usr/local/etc/apache2/httpd.conf:
>>> Cannot load /usr/local/libexec/apache/libphp5.so into server: Cannot
>>> open "/usr/local/libexec/apache/libphp5.so"
>> The file libphp5.so doens't even exist on my server I found out after a
>> find command....
>
> Then you miss some part of your php installation. See the documentation
> for your porting (I'm not aware of how BSD works) and maybe ask in some
> bsd-related group.
>
> Davide
Unstalling the php port and reinstalling it again did the trick! ;)
Re: Apache / PHP
am 07.06.2007 21:21:57 von szr
Rene Verstappen wrote:
> Hi all,
>
> I have installed apache2.0, MySQL5.1-Server and PHP5 on my FreeBSD 6.2
> server. Apache works oke, PHP doesn't. Every time I try to start an
> .php page it asks me if I would like to download or open the file. I
> have added these lines to my httpsd.conf file;
>
> AddType application/x-httpd-php .php
> AddType application/x-httpd-php-source .phps
>
> Is there anyone fimiliar with this behavior?
Do you also have
LoadModule php4_module "/path/to/php/module"
...
AddModule mod_php4.c
(or the equivilent for the cgi version) ?
--
szr