Page 1 of 1

PHP Parse error on FreeBSD

Posted: Tue May 27, 2014 9:16 am
by emoxam
Hi all. I have zoneminder-1.25.0_3 installed from the ports
on FreeBSD 9.1-RELEASE #1 r244693
When i try to open my ZM page i got an error at httpd-error.log

Code: Select all

[Mon May 26 23:35:16 2014] [error] [client 192.168.1.1] PHP Parse error:  syntax error, unexpected $end in /usr/local/www/apache22/data/zm/data/includes/functions.php on line 2437
and the web page shows me http error 500

i found that i must change short_open_tag to On
nevermind what php.ini tells me about this option i did

Code: Select all

; short_open_tag
;   Default Value: On
;   Development Value: Off
;   Production Value: Off
short_open_tag = On
short_open_tag = On at the /usr/local/etc/php.ini

So i run "/usr/local/etc/rc.d/apache22 restart"
and nothing changes..
What else should i check ?
Thank you

Re: PHP Parse error on FreeBSD

Posted: Wed May 28, 2014 4:50 am
by trigger
Hi emoxam!

Sorry for offtopic, but I'm try to install ZM on FreeBSD 10-STABLE and have errors ( topic ). As I see, you are successfully install ZM on 9-STABLE, so can you please provide for me some info, which maybe helps me.

As I found ( here ) my errors can be triggered with high gcc version (My system has clang by default, and from ports installs gcc47), so can you please give me that info:
pkg info | grep gcc
cc -v

Thank you!

Re: PHP Parse error on FreeBSD

Posted: Mon Jun 16, 2014 9:30 am
by emoxam
Still actual!!!

Re: PHP Parse error on FreeBSD

Posted: Wed Sep 03, 2014 4:32 pm
by remet
If it's still actual I have ZM on FreeBSD 9.2-STABLE #2 r262482.
GCC I'm using is 4.2.1 20070831 patched and platform is amd64.
I had no problem with compiling ZM.

My guess is that it has a problem with Clang.

Re: PHP Parse error on FreeBSD

Posted: Wed Sep 03, 2014 5:15 pm
by emoxam
To update clang i must update world and kernel ? Right ?

Re: PHP Parse error on FreeBSD

Posted: Fri Sep 05, 2014 5:54 am
by remet
Clang is default on 10.0.
I have one machine on 10.0 just now, I'll try to compile ZM 1.25 (from ports) there during the weekend and I'll post you the result.

Maybe, post here what you have in make.conf (CFLAGS=, etc.).

Re: PHP Parse error on FreeBSD

Posted: Sat Oct 11, 2014 5:09 am
by Doberman
As I found ( here ) my errors can be triggered with high gcc version (My system has clang by default, and from ports installs gcc47), so can you please give me that info: