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 doesn't render php pages
S'inscrire FAQ Membres Recherche Messages du jour Marquer les forums comme lus
alt.apache.configuration Apache web server configuration issues.

Apache doesn't render php pages

Réponse
 
LinkBack Outils de la discussion
Vieux 16/01/2008, 13h43   #1
Giovanni
Aucun Avatar
 
Messages: n/a
Hébergeur:
Par défaut Apache doesn't render php pages

Hi there. I've a problem with Apache. When I point to a php page, this
is not renderized. I.e. in the source code of page, I see all php
code!

I'm using LAMP (opensuse 10.3)
I don't know if could be useful but some day ago I installed tomcat
too...
Any idea?
tnx in advance, Giovanni
  Réponse avec citation
Vieux 16/01/2008, 13h54   #2
Davide Bianchi
Aucun Avatar
 
Messages: n/a
Hébergeur:
Par défaut Re: Apache doesn't render php pages

On 2008-01-16, Giovanni <blastingproton@gmail.com> wrote:
> Hi there. I've a problem with Apache. When I point to a php page, this
> is not renderized. I.e. in the source code of page, I see all php
> code!


Obviously your php installation isn't correct, you missed to load the
php module in apache.
Check if you have a 'LoadModule phpsomething' in your httpd.conf file.

Davide

--
Windows 95: Proof that P. T. Barnum was right.
  Réponse avec citation
Vieux 16/01/2008, 14h33   #3
Jim G
Aucun Avatar
 
Messages: n/a
Hébergeur:
Par défaut Re: Apache doesn't render php pages

I have run into this many times. It appears that your php.conf did not get
created or does not exist. Take a look in your /etc/httpd/conf.d folder. You
should have a few conf files there. perl.conf, python.conf php.conf etc...If
the php.conf is not listed, let me know what version of php you installed
and I can past it here for you. What OS is this?

To get the version of php just do this from shell

php -v


Jim


"Davide Bianchi" <davideyeahsure@onlyforfun.net> wrote in message
news:slrnfos37e.385.davideyeahsure@fogg.onlyforfun .net...
> On 2008-01-16, Giovanni <blastingproton@gmail.com> wrote:
>> Hi there. I've a problem with Apache. When I point to a php page, this
>> is not renderized. I.e. in the source code of page, I see all php
>> code!

>
> Obviously your php installation isn't correct, you missed to load the
> php module in apache.
> Check if you have a 'LoadModule phpsomething' in your httpd.conf file.
>
> Davide
>
> --
> Windows 95: Proof that P. T. Barnum was right.


  Réponse avec citation
Vieux 16/01/2008, 18h55   #4
Giovanni
Aucun Avatar
 
Messages: n/a
Hébergeur:
Par défaut Re: Apache doesn't render php pages

Tnx you all.
So...the grep for php in httpd.conf is this:
# |-- sysconfig.d/loadmodule.conf . . . . .[*] load these modules
# | |--mod_userdir.conf . . . . . . . . enable UserDir (if
mod_userdir is loaded)
# | `-- loadmodule.conf
Include /etc/apache2/sysconfig.d/loadmodule.conf


In the folder there only is php5.conf...
Now I'd search where apache should load it, is not?
  Réponse avec citation
Vieux 16/01/2008, 19h09   #5
Davide Bianchi
Aucun Avatar
 
Messages: n/a
Hébergeur:
Par défaut Re: Apache doesn't render php pages

On 2008-01-16, Giovanni <blastingproton@gmail.com> wrote:
> Tnx you all.
> So...the grep for php in httpd.conf is this:
> Include /etc/apache2/sysconfig.d/loadmodule.conf


> In the folder there only is php5.conf...


And in that conf file what there is? is php5.conf loaded specifically?
what if you add an include /wherever/it/is/php5.conf in your httpd.conf?

Davide

--
I'm locked in a maze of little projects, all of which suck.
-- Chris "Saundo" Saunderson on alt.sysadmin.recovery
  Réponse avec citation
Vieux 16/01/2008, 20h55   #6
Giovanni
Aucun Avatar
 
Messages: n/a
Hébergeur:
Par défaut Re: Apache doesn't render php pages

Ok, I found the problem. I had to replace "<?" with "<?php" tag...
But now I don't remember where change this setting... do you?

  Réponse avec citation
Vieux 16/01/2008, 21h08   #7
Giovanni
Aucun Avatar
 
Messages: n/a
Hébergeur:
Par défaut Re: Apache doesn't render php pages

On 16 Gen, 21:55, Giovanni <blastingpro...@gmail.com> wrote:
> Ok, I found the problem. I had to replace "<?" with "<?php" tag...
> But now I don't remember where change this setting... do you?


It's all right!
For opensuse 10.3 users:

edit:
/etc/php5/apache2/php.ini

and change
short_open_tag = Off

to
short_open_tag = On

obviously restart apache
/etc/init.d/apache2 restart

Greetings...
  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 09h54.


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