|
|
|
|
||||||
| alt.apache.configuration Apache web server configuration issues. |
![]() |
|
|
LinkBack | Outils de la discussion |
|
|
#1 |
|
Messages: n/a
Hébergeur: |
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? |
|
|
|
#2 |
|
Messages: n/a
Hébergeur: |
On 2007-06-05, Rene Verstappen <no@mail.com> 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 -- Windows is the best GUI - It always sticks! |
|
|
|
#3 |
|
Messages: n/a
Hébergeur: |
Davide Bianchi schreef:
> On 2007-06-05, Rene Verstappen <no@mail.com> 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 <IfModule mod_php5.c> DirectoryIndex index.php index.html </IfModule> <IfModule mod_php5.c> AddType application/x-httpd-php .php AddType application/x-httpd-php-source .phps </IfModule> 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.... |
|
|
|
#4 |
|
Messages: n/a
Hébergeur: |
On 2007-06-06, Rene Verstappen <no@mail.com> 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 -- "In a small way, Windows NT is a Unix." -Bill Gates Because of the way it resembles something decent that's been emasculated? --adamsc |
|
|
|
#5 |
|
Messages: n/a
Hébergeur: |
Davide Bianchi schreef:
> On 2007-06-06, Rene Verstappen <no@mail.com> 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! ![]() |
|
|
|
#6 |
|
Messages: n/a
Hébergeur: |
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 |
|
![]() |
| Outils de la discussion | |
|
|