On Mon, Dec 01, 2008 at 04:06:24PM +0100, Peter Haag wrote:
>
> COMMSOCKET is set while installing NfSen and set in conf.php. It's the only
> bootstrap variable needed, so the frontend,
> knows where to talk to the backend. so the conf.php should like something
> like:
>
> <?
> /* This file was automatically created by the NfSen install.pl script */
>
> $COMMSOCKET = "/data/nfsen/var/run/nfsen.comm";
>
> $DEBUG=0;
>
> ?>
>
> There is one obstacle: You may replace '<?' bei '<?php' if shorttags is off
> in your php config. otherwise the content is
> not properly read.
> ...
> As Debug seams to to work too, it's most likely the short tag issue - see
> above.
Hi Peter,
Thanks much for the hint about "short tags" and replacing "<?" with
"<?php" in conf.php.
I did that change and now it works! :-)
Background-info: It seems like conf.php is the only php-file in the
web-directory of nfsen that had "<?" - all others have "<?php", so
there's no problem with short tags disabled for these files - only for
conf.php.
The second point, maybe this is a FreeBSD specific issue, is that
changing the "short_open_tag" setting to "On" in php.ini isn't
sufficient. I also had to restart my apache server in order for the
change in php.ini to take effect. I did numerous tests and never saw
any change whether short tags was on or off. Only when the webserver
is restarted the changes to php.ini (/usr/local/etc/php.ini) take
effect.
So to summarize here's what I did to make nfsen work under FreeBSD -
maybe the following receipe will help others too:
o) Install apache (/usr/ports/www/apache22)
o) Install php (/usr/ports/lang/php5)
During make configure select "Build Apache module" so that an apache
module is generated during php-build
During build of php the necessary statement about getting php5-support
into apache is automagically inserted in httpd.conf
o) Insert the following two lines in httpd.conf:
AddType application/x-httpd-php .php .phtml .html
AddType application/x-httpd-php-source .phps
so that .php-sources are interpreted by apache
o) In your webroot-directory: set a softlink (ln -s ...) to where the
nfsen php-files are installed ("nfsen web directory")
o) Make sure PHP understands "short tags":
Variant a:
"short_open_tag = On" in /usr/local/etc/php.ini and - important -
restart your web server
or
Variant b:
edit /usr/local/www/nfsen/conf.php
and change the first line from "<?" to "<?php"
(all other .php-files of nfsen seem to use "<?php" anyway)
Thanks to all, esp. to Peter Haag for getting me on the right track
with this problem!
-ewald
-------------------------------------------------------------------------
This SF.Net email is sponsored by the Moblin Your Move Developer's challenge
Build the coolest Linux based applications with Moblin SDK & win great prizes
Grand prize is a trip for two to an Open Source event anywhere in the world
http://moblin-contest.org/redirect.php?banner_id=100&url=/
_______________________________________________
Nfsen-discuss mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/nfsen-discuss