PHWinfo banniere

Titres
PORTAIL ANNUAIRE ARTICLES COMPARATEUR HÉBERGEURS DEVIS FORUMS RÉDUCTEUR D'URL
Précédent   PHWinfo > Forums Hébergement > Forum Serveur - Sécurité et techniques > alt.apache.configuration > Apache / PHP
S'inscrire FAQ Membres Recherche Messages du jour Marquer les forums comme lus
alt.apache.configuration Apache web server configuration issues.

Apache / PHP

Réponse
 
LinkBack Outils de la discussion
Vieux 05/06/2007, 20h52   #1
Rene Verstappen
Aucun Avatar
 
Messages: n/a
Hébergeur:
Par défaut Apache / PHP

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?
  Réponse avec citation
Vieux 06/06/2007, 08h17   #2
Davide Bianchi
Aucun Avatar
 
Messages: n/a
Hébergeur:
Par défaut Re: Apache / PHP

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!
  Réponse avec citation
Vieux 06/06/2007, 13h09   #3
Rene Verstappen
Aucun Avatar
 
Messages: n/a
Hébergeur:
Par défaut Re: Apache / PHP

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....
  Réponse avec citation
Vieux 06/06/2007, 13h24   #4
Davide Bianchi
Aucun Avatar
 
Messages: n/a
Hébergeur:
Par défaut Re: Apache / PHP

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
  Réponse avec citation
Vieux 06/06/2007, 20h06   #5
Rene Verstappen
Aucun Avatar
 
Messages: n/a
Hébergeur:
Par défaut Re: Apache / PHP

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!
  Réponse avec citation
Vieux 07/06/2007, 20h21   #6
szr
Aucun Avatar
 
Messages: n/a
Hébergeur:
Par défaut Re: Apache / PHP

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


  Réponse avec citation
Réponse


Outils de la discussion

Règles de messages
Vous ne pouvez pas créer de nouvelles discussions
Vous ne pouvez pas envoyer des réponses
Vous ne pouvez pas envoyer des pièces jointes
Vous ne pouvez pas modifier vos messages

Les balises BB sont activées : oui
Les smileys sont activés : oui
La balise [IMG] est activée : oui
Le code HTML peut être employé : non
Trackbacks are oui
Pingbacks are oui
Refbacks are oui


Fuseau horaire GMT +1. Il est actuellement 00h42.


Édité par : vBulletin® version 3.7.3
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
Search Engine Friendly URLs by vBSEO 3.2.0 RC5 Tous droits réservés.
Version française #16 par l'association vBulletin francophone
PHWinfo est un site Éducation Sans Frontières ©2000-2008
Ad Management by RedTyger
©Tous droits réservés par les parties respectives
Page generated in 0,11702 seconds with 14 queries