|
|
|
|
||||||
| linux.debian.user debian-user@lists.debian.org. |
![]() |
|
|
LinkBack | Outils de la discussion |
|
|
#1 |
|
Messages: n/a
Hébergeur: |
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 |
|
|
|
#2 |
|
Messages: n/a
Hébergeur: |
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 |
|
|
|
#3 |
|
Messages: n/a
Hébergeur: |
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 |
|
|
|
#4 |
|
Messages: n/a
Hébergeur: |
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 |
|
|
|
#5 |
|
Messages: n/a
Hébergeur: |
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 |
|
|
|
#6 |
|
Messages: n/a
Hébergeur: |
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 |
|
|
|
#7 |
|
Messages: n/a
Hébergeur: |
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 |
|
![]() |
| Outils de la discussion | |
|
|