apache

hi
i only need localhost for testing some php
now i get
[Wed Apr 28 18:44:57 2010] [error] [client ::1] Symbolic link not allowed or link target not accessible: /srv/www/htdocs

what do i have to do?
thanks

Hi
In the default-server.conf do you have the option set to
‘FollowSymlinks’?


Cheers Malcolm °¿° (Linux Counter #276890)
SUSE Linux Enterprise Desktop 11 (x86_64) Kernel 2.6.27.45-0.1-default
up 13 days 6:10, 5 users, load average: 0.15, 0.36, 0.34
GPU GeForce 8600 GTS Silent - CUDA Driver Version: 195.36.15

no where is that?

it shows html now but still no php altough i installed modphp5
Im not sure could be that running php4 scripts is a problem? all default 11.2
Thanks

Hi
The configuration files are down in /etc/apache2

You can check the loaded modules via;


apache2ctl -M

If php5 isn’t there you need to add is to
the /etc/apache2/sysconfig.d/loadmodule.conf file


Cheers Malcolm °¿° (Linux Counter #276890)
SUSE Linux Enterprise Desktop 11 (x86_64) Kernel 2.6.27.45-0.1-default
up 13 days 6:33, 5 users, load average: 0.21, 0.71, 0.66
GPU GeForce 8600 GTS Silent - CUDA Driver Version: 195.36.15

In any case you should use long PHP tags <?php, the short ones <? do not function any longer.

The right place to do it is /etc/sysconfig/apache2, add php5 to the variable APACHE_MODULES.

authz_default_module (shared)
authz_user_module (shared)
autoindex_module (shared)
cgi_module (shared)
dir_module (shared)
env_module (shared)
expires_module (shared)
include_module (shared)
log_config_module (shared)
mime_module (shared)
negotiation_module (shared)
setenvif_module (shared)
ssl_module (shared)
userdir_module (shared)
php5_module (shared)
Syntax OK
linux-os4n:/home/michael/Dokumente #

still not working. >:(

Obviously it’s not working or you wouldn’t be posting, right? How about some details? We’re not clairvoyant.

PHP showing instead of HTML? Did you pay attention to what hcvv wrote about using full tags of the form <?php ?> This is very common in old PHP scripts.

html is showing but not php

php scripts always worked. limbo etc. nothing works
what do i have to change from default suse apache for php?

What did you install? The entire LAMP webserver pattern?

And have you checked the settings in Yast?

apache & modphp need anything else?

sysconfigeditor in yast? seems all fine