PHP Parse error on FreeBSD

Forum for questions and support relating to the 1.25.x releases only.
Post Reply
emoxam
Posts: 4
Joined: Tue May 27, 2014 9:09 am

PHP Parse error on FreeBSD

Post by emoxam » Tue May 27, 2014 9:16 am

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

trigger
Posts: 3
Joined: Wed May 28, 2014 3:04 am

Re: PHP Parse error on FreeBSD

Post by trigger » Wed May 28, 2014 4:50 am

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!

emoxam
Posts: 4
Joined: Tue May 27, 2014 9:09 am

Re: PHP Parse error on FreeBSD

Post by emoxam » Mon Jun 16, 2014 9:30 am

Still actual!!!

remet
Posts: 2
Joined: Wed Sep 03, 2014 4:04 pm

Re: PHP Parse error on FreeBSD

Post by remet » Wed Sep 03, 2014 4:32 pm

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.

emoxam
Posts: 4
Joined: Tue May 27, 2014 9:09 am

Re: PHP Parse error on FreeBSD

Post by emoxam » Wed Sep 03, 2014 5:15 pm

To update clang i must update world and kernel ? Right ?

remet
Posts: 2
Joined: Wed Sep 03, 2014 4:04 pm

Re: PHP Parse error on FreeBSD

Post by remet » Fri Sep 05, 2014 5:54 am

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.).

Doberman
Posts: 1
Joined: Sat Oct 11, 2014 5:00 am

Re: PHP Parse error on FreeBSD

Post by Doberman » Sat Oct 11, 2014 5:09 am

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:

Post Reply

Who is online

Users browsing this forum: No registered users and 2 guests