OpenNetAdmin

Track. Automate. Configure.

Home About Features Community Develop
Download this project as a tar.gz file

PHP Requirements

helqud

28-05-2010 12:10:57

I'm trying to install OpenNetAdmin version v10.05.27 on a Centos 4 box.

docs/INSTALL doesn't list a php version requirement.

http://opennetadmin.com/docs/installation says "PHP version 4 or newer"

When I follow the install instructions & try to open the initial web page it comes up blank. My apache error_log shows this:[client 127.0.0.1] PHP Parse error: parse error, unexpected T_STATIC, expecting T_OLD_FUNCTION or T_FUNCTION or T_VAR or '}' in /opt/ona/www/include/adodb5/adodb.inc.php on line 434

My gut tells me that I really need php5. Is this correct, or have I missed an obvious step?

Relevant packages that are installed:
php-snmp-4.3.9-3.29
php-odbc-4.3.9-3.29
php-mysql-4.3.9-3.29
php-adodb-4.52-1
php-4.3.9-3.29
php-pear-4.3.9-3.29

Thanks in advance!

Matt

28-05-2010 13:48:22

The short answer is yes, it really should be PHP5.

I had upgraded to the newer ADODB drivers and I believe it requires 5 now. There are a few other things that have crept in feature wise that will require something newer than 4.

I will update the requirements doc to say 5.. also the check in the installer for php version will be incremented.

I have yet to gauge how annoying of a requirement it will be for people. I would hope that by now most people are in the php5 realm but I realize that there are situations where that is not possible.

I will try and do an assessment on it and see if it is something that can be worked around or if the requirement should really stand.

If you cant upgrade to php5 you might try a v09.x.x version of ONA until I can look into it more.

helqud

28-05-2010 16:01:44

I generally try to keep with the "vendor provided" packages, and for centos4/rhel4 that means php4. That distribution is getting pretty long in the tooth though, and all new machines are using rhel5.

Anyways - I installed php5 & then re-tried ONA. Things worked without any issue - so now on to the fun part: configuring.

Matt

29-05-2010 10:25:47

Ok so I looked at it again and apparently when I upgraded the adodb driver last time I was not really paying much attention to the fact that they offer two versions.. one that is php5 only and one that supports both 4 and 5.

At this point, anyone requiring the use of php4 should be able to get the latest adodb code from https://sourceforge.net/projects/adodb/ ... p-4-and-5/.

Then you can put it in /opt/ona/www/include and then adjust the symbolic link /opt/ona/www/include/adodb to point at the new adodb directory. It currently points at adodb5. Obviously this has not been tested but I dont see any reason it would cause issues.

Unless I hear a ton of objections, I will probably just leave the php5 requirement in for now. If you think it should not require php5 then let me know!