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....
|
|||||||
| FAQ | Members List | Calendar | Search | Today's Posts | Mark Forums Read |
|
|||
|
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 |
|
|||
|
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. |
|
|||
|
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? |
|
|||
|
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... |