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 > linux.debian.user > apache2 and php5
S'inscrire FAQ Membres Recherche Messages du jour Marquer les forums comme lus
linux.debian.user debian-user@lists.debian.org.

apache2 and php5

Réponse
 
LinkBack Outils de la discussion
Vieux 28/07/2007, 04h40   #1
Rick Pasotto
Aucun Avatar
 
Messages: n/a
Hébergeur:
Par défaut apache2 and php5

I have been happily using apache1.3 and php5 but a reboot caused things
to stop working.

I now have apache2 and libapache2-mod-php5 installed but apache is not
serving php documents. It serves html just fine. The php5.conf and
php5.load modules are enabled. Restarting apache2 gives no errors.

What do I have wrong? How can I get my php pages served?

--
"He who has never hoped can never despair."
-- George Bernard Shaw
Rick Pasotto rick@niof.net http://www.niof.net


--
To UNSUBSCRIBE, email to debian-user-REQUEST@lists.debian.org
with a subject of "unsubscribe". Trouble? Contact listmaster@lists.debian.org
  Réponse avec citation
Vieux 28/07/2007, 05h20   #2
Rick Pasotto
Aucun Avatar
 
Messages: n/a
Hébergeur:
Par défaut Re: apache2 and php5

On Fri, Jul 27, 2007 at 09:12:28PM -0700, Jeff D wrote:
> On Fri, 27 Jul 2007, Rick Pasotto wrote:
>
>> I have been happily using apache1.3 and php5 but a reboot caused things
>> to stop working.
>>
>> I now have apache2 and libapache2-mod-php5 installed but apache is not
>> serving php documents. It serves html just fine. The php5.conf and
>> php5.load modules are enabled. Restarting apache2 gives no errors.
>>
>> What do I have wrong? How can I get my php pages served?
>>
>> --
>> "He who has never hoped can never despair."
>> -- George Bernard Shaw
>> Rick Pasotto rick@niof.net http://www.niof.net

>
> What happens when you try to browse to a php page?


"The file is of type application/x-httpd-php and seamonkey doesn't know
how to handle this file type."

--
"The classic liberal understanding of freedom is this: every individual
should care for his own interests and mind his own business. No one
should deem himself his brother's keeper unless his brother
unequivocally asks him to. Every individual is a world unto himself, is
a being in himself and is presupposed to be the best judge of his own
affairs ..." -- Mieszyslaw Maneli, 1984
Rick Pasotto rick@niof.net http://www.niof.net


--
To UNSUBSCRIBE, email to debian-user-REQUEST@lists.debian.org
with a subject of "unsubscribe". Trouble? Contact listmaster@lists.debian.org
  Réponse avec citation
Vieux 28/07/2007, 05h20   #3
Jeff D
Aucun Avatar
 
Messages: n/a
Hébergeur:
Par défaut Re: apache2 and php5

On Fri, 27 Jul 2007, Rick Pasotto wrote:

> I have been happily using apache1.3 and php5 but a reboot caused things
> to stop working.
>
> I now have apache2 and libapache2-mod-php5 installed but apache is not
> serving php documents. It serves html just fine. The php5.conf and
> php5.load modules are enabled. Restarting apache2 gives no errors.
>
> What do I have wrong? How can I get my php pages served?
>
> --
> "He who has never hoped can never despair."
> -- George Bernard Shaw
> Rick Pasotto rick@niof.net http://www.niof.net


What happens when you try to browse to a php page?

-+-
8 out of 10 Owners who Expressed a Preference said Their Cats Preferred Techno.


--
To UNSUBSCRIBE, email to debian-user-REQUEST@lists.debian.org
with a subject of "unsubscribe". Trouble? Contact listmaster@lists.debian.org
  Réponse avec citation
Vieux 28/07/2007, 05h40   #4
Jeff D
Aucun Avatar
 
Messages: n/a
Hébergeur:
Par défaut Re: apache2 and php5

On Sat, 28 Jul 2007, Rick Pasotto wrote:

> On Fri, Jul 27, 2007 at 09:12:28PM -0700, Jeff D wrote:
>> On Fri, 27 Jul 2007, Rick Pasotto wrote:
>>
>>> I have been happily using apache1.3 and php5 but a reboot caused things
>>> to stop working.
>>>
>>> I now have apache2 and libapache2-mod-php5 installed but apache is not
>>> serving php documents. It serves html just fine. The php5.conf and
>>> php5.load modules are enabled. Restarting apache2 gives no errors.
>>>
>>> What do I have wrong? How can I get my php pages served?
>>>
>>> --
>>> "He who has never hoped can never despair."
>>> -- George Bernard Shaw
>>> Rick Pasotto rick@niof.net http://www.niof.net

>>
>> What happens when you try to browse to a php page?

>
> "The file is of type application/x-httpd-php and seamonkey doesn't know
> how to handle this file type."
>


try adding :
AddType application/x-httpd-php .php .phtml .php3
AddType application/x-httpd-php-source .phps

in your host file in /etc/apache2/sites-enabled/site-file

-+-
8 out of 10 Owners who Expressed a Preference said Their Cats Preferred Techno.


--
To UNSUBSCRIBE, email to debian-user-REQUEST@lists.debian.org
with a subject of "unsubscribe". Trouble? Contact listmaster@lists.debian.org
  Réponse avec citation
Vieux 28/07/2007, 06h00   #5
Jeff D
Aucun Avatar
 
Messages: n/a
Hébergeur:
Par défaut Re: apache2 and php5

On Sat, 28 Jul 2007, Rick Pasotto wrote:

> On Fri, Jul 27, 2007 at 09:12:28PM -0700, Jeff D wrote:
>> On Fri, 27 Jul 2007, Rick Pasotto wrote:
>>
>>> I have been happily using apache1.3 and php5 but a reboot caused things
>>> to stop working.
>>>
>>> I now have apache2 and libapache2-mod-php5 installed but apache is not
>>> serving php documents. It serves html just fine. The php5.conf and
>>> php5.load modules are enabled. Restarting apache2 gives no errors.
>>>
>>> What do I have wrong? How can I get my php pages served?
>>>
>>> --
>>> "He who has never hoped can never despair."
>>> -- George Bernard Shaw
>>> Rick Pasotto rick@niof.net http://www.niof.net

>>
>> What happens when you try to browse to a php page?

>
> "The file is of type application/x-httpd-php and seamonkey doesn't know
> how to handle this file type."
>
> --


just as a follow up, all you should really need to do is:
apt-get/aptitude install libapache2-mod-php5
a2enmod php5
/etc/init.d/apache2 reload

I seem to remember having that problem with one of my boxes recently and
just put the addtype into my server conf file, but you really shouldn't
have to. it should get activated in the mods-enabled php.conf file.

-+-
8 out of 10 Owners who Expressed a Preference said Their Cats Preferred Techno.


--
To UNSUBSCRIBE, email to debian-user-REQUEST@lists.debian.org
with a subject of "unsubscribe". Trouble? Contact listmaster@lists.debian.org
  Réponse avec citation
Vieux 28/07/2007, 06h00   #6
Rick Pasotto
Aucun Avatar
 
Messages: n/a
Hébergeur:
Par défaut Re: apache2 and php5

On Fri, Jul 27, 2007 at 09:32:19PM -0700, Jeff D wrote:
> On Sat, 28 Jul 2007, Rick Pasotto wrote:
>
>> On Fri, Jul 27, 2007 at 09:12:28PM -0700, Jeff D wrote:
>>> On Fri, 27 Jul 2007, Rick Pasotto wrote:
>>>
>>>> I have been happily using apache1.3 and php5 but a reboot caused things
>>>> to stop working.
>>>>
>>>> I now have apache2 and libapache2-mod-php5 installed but apache is not
>>>> serving php documents. It serves html just fine. The php5.conf and
>>>> php5.load modules are enabled. Restarting apache2 gives no errors.
>>>>
>>>> What do I have wrong? How can I get my php pages served?
>>>
>>> What happens when you try to browse to a php page?

>>
>> "The file is of type application/x-httpd-php and seamonkey doesn't know
>> how to handle this file type."
>>

>
> try adding :
> AddType application/x-httpd-php .php .phtml .php3
> AddType application/x-httpd-php-source .phps
>
> in your host file in /etc/apache2/sites-enabled/site-file


Nope. Those lines are already in the php5-conf file and it is enabled.
Is there some command that will give me the configuration of a running
apache2? Something like phpinfo()?

Everytime I reload I get this line in the error.log:

[notice] Apache/2.2.3 (Debian) PHP/5.2.3-1+b1 configured -- resuming normal operations

And there are lines like this in the access.log:

"GET / HTTP/1.0" 302 312 "-" "Apache/2.2.3 (Debian) PHP/5.2.3-1+b1 (internal dummy connection)"

--
"You can make more friends in two months by becoming interested in
other people than you can in two years by trying to get other
people interested in you." -- Dale Carnegie
Rick Pasotto rick@niof.net http://www.niof.net


--
To UNSUBSCRIBE, email to debian-user-REQUEST@lists.debian.org
with a subject of "unsubscribe". Trouble? Contact listmaster@lists.debian.org
  Réponse avec citation
Vieux 28/07/2007, 06h10   #7
Jeff D
Aucun Avatar
 
Messages: n/a
Hébergeur:
Par défaut Re: apache2 and php5

On Sat, 28 Jul 2007, Rick Pasotto wrote:

> On Fri, Jul 27, 2007 at 09:32:19PM -0700, Jeff D wrote:
>> On Sat, 28 Jul 2007, Rick Pasotto wrote:
>>
>>> On Fri, Jul 27, 2007 at 09:12:28PM -0700, Jeff D wrote:
>>>> On Fri, 27 Jul 2007, Rick Pasotto wrote:
>>>>
>>>>> I have been happily using apache1.3 and php5 but a reboot caused things
>>>>> to stop working.
>>>>>
>>>>> I now have apache2 and libapache2-mod-php5 installed but apache is not
>>>>> serving php documents. It serves html just fine. The php5.conf and
>>>>> php5.load modules are enabled. Restarting apache2 gives no errors.
>>>>>
>>>>> What do I have wrong? How can I get my php pages served?
>>>>
>>>> What happens when you try to browse to a php page?
>>>
>>> "The file is of type application/x-httpd-php and seamonkey doesn't know
>>> how to handle this file type."
>>>

>>
>> try adding :
>> AddType application/x-httpd-php .php .phtml .php3
>> AddType application/x-httpd-php-source .phps
>>
>> in your host file in /etc/apache2/sites-enabled/site-file

>
> Nope. Those lines are already in the php5-conf file and it is enabled.
> Is there some command that will give me the configuration of a running
> apache2? Something like phpinfo()?
>
> Everytime I reload I get this line in the error.log:
>
> [notice] Apache/2.2.3 (Debian) PHP/5.2.3-1+b1 configured -- resuming normal operations
>
> And there are lines like this in the access.log:
>
> "GET / HTTP/1.0" 302 312 "-" "Apache/2.2.3 (Debian) PHP/5.2.3-1+b1 (internal dummy connection)"
>
> --

apache2 -M will show you what modules apache is loading.

-+-
8 out of 10 Owners who Expressed a Preference said Their Cats Preferred Techno.


--
To UNSUBSCRIBE, email to debian-user-REQUEST@lists.debian.org
with a subject of "unsubscribe". Trouble? Contact listmaster@lists.debian.org
  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 04h30.


É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,17725 seconds with 15 queries