Apache doesn"t render php pages
Apache doesn"t render php pages
am 16.01.2008 14:43:54 von Giovanni
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
Re: Apache doesn"t render php pages
am 16.01.2008 14:54:35 von unknown
Post removed (X-No-Archive: yes)
Re: Apache doesn"t render php pages
am 16.01.2008 15:33:12 von Jim G
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" wrote in message
news:slrnfos37e.385.davideyeahsure@fogg.onlyforfun.net...
> On 2008-01-16, Giovanni 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.
Re: Apache doesn"t render php pages
am 16.01.2008 19:55:04 von Giovanni
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?
Re: Apache doesn"t render php pages
am 16.01.2008 20:09:44 von unknown
Post removed (X-No-Archive: yes)
Re: Apache doesn"t render php pages
am 16.01.2008 21:55:57 von Giovanni
Ok, I found the problem. I had to replace "" with "
But now I don't remember where change this setting... do you?
Re: Apache doesn"t render php pages
am 16.01.2008 22:08:38 von Giovanni
On 16 Gen, 21:55, Giovanni wrote:
> Ok, I found the problem. I had to replace "" with "
> 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...