Apache doesn't render php pages

This is a discussion on Apache doesn't render php pages within the Apache Web Server forums, part of the Web Server and Related Forums category; Hi there. I've a problem with Apache. When I point to a php page, this is not renderized. I....


Go Back   Usenet Forums > Web Server and Related Forums > Apache Web Server

FAQ Members List Calendar Search Today's Posts Mark Forums Read
  #1 (permalink)  
Old 01-16-2008
Giovanni
 
Posts: n/a
Default 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
  #2 (permalink)  
Old 01-16-2008
Jim G
 
Posts: n/a
Default 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.


  #3 (permalink)  
Old 01-16-2008
Giovanni
 
Posts: n/a
Default 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?
  #4 (permalink)  
Old 01-16-2008
Giovanni
 
Posts: n/a
Default 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?

  #5 (permalink)  
Old 01-16-2008
Giovanni
 
Posts: n/a
Default 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...
 
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are Off
[IMG] code is Off
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On



All times are GMT +1. The time now is 03:58 PM.


Powered by vBulletin® Version 3.7.3
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
Content Relevant URLs by vBSEO 3.0.0