HTTPD service fails to start after upgrade php

becausjp

New member
Joined
Jan 7, 2009
Messages
3
Hi,

I've started to perform upgrades on my DirectAdmin server.
All went fine until I wanted to move to php 5.3.25

During this action the server mentioned it ran out of virtual memory and didn't finish the job.
This is the error I receive when trying to start apache service httpd:

"Starting httpd: Syntax error on line 46 of /usr/local/directadmin/data/users/admin/httpd.conf:
Invalid command 'php_admin_flag', perhaps misspelled or defined by a module not included in the server configuration"

After trying to resolve the matter, I know it is something to do with the php Zend & Optimiser together with the php.ini loader refering to an incorrect version.
I tried afterwards to update php using the custombuild again and received the next error:

"There is wrong default PHP in /usr/local/directadmin/custombuild/options.conf set."

I checked out the php version in options.conf:
php5_ver=5.3

PHP Ini content:

[Zend]
zend_extension=/usr/local/lib/ioncube/ioncube_loader_lin_5.3.so
zend_extension_manager.optimizer=/usr/local/Zend/lib/Optimizer-3.3.3
zend_extension_manager.optimizer_ts=/usr/local/Zend/lib/Optimizer_TS-3.3.3
zend_optimizer.version=3.3.3
zend_extension=/usr/local/Zend/lib/ZendExtensionManager.so
zend_extension_ts=/usr/local/Zend/lib/ZendExtensionManager_TS.so

When running command php -v, I receive this error:

Cannot load Zend Extension Manager - it was built with configuration 1.2.0, whereas running engine is API220090626,NTS
PHP 5.3.25 (cli) (built: May 16 2013 19:10:15)
Copyright (c) 1997-2013 The PHP Group
Zend Engine v2.3.0, Copyright (c) 1998-2013 Zend Technologies
with the ionCube PHP Loader v3.3.20, Copyright (c) 2002-2010, by ionCube Ltd.

Much appreciated any help to get my service web service up and running.

Thank you,
 
"There is wrong default PHP in /usr/local/directadmin/custombuild/options.conf set."

Make sure you've got

Code:
default_php=5

in options.conf


Cannot load Zend Extension Manager - it was built with configuration 1.2.0, whereas running engine is API220090626,NTS


Run

Code:
./build zend

as you probably upgraded from PHP 5.2. And PHP 5.3 has another Zend Guard Loader v3.3.
 
Nearly there

Hi,

I've set the php default to 5 instead of 5.3

Also rebuild Zend & config.

Now the appache service has started again.

Though there is one issue still not 100%, in the error log seems I swapped from custombuild 1.2 to 2.2 while doing an upgrade.

This is from the error.log:

Cannot load the ionCube PHP Loader - it was built with configuration 2.2.0, whereas running engine is API220090626,NTS
Cannot load Zend Extension Manager - it was built with configuration 1.2.0, whereas running engine is API220090626,NTS

The first one I could fix with changing the *.so loader

How can I move the Zend Extension Manager to be build with config 2.2.0 so it will run properly.

Thanks, :)
 
Remove all mentions of zend extension from php.ini and run again

Code:
./build zend

the errors would mean, that you are using old extensions, as you probably upgraded from PHP 5.2, and you should remove them and start using of those for PHP 5.3.
 
Hi zEItEr

Thank you for your assistance, that solved it completely: :):):)

Outcome of php -v now:

PHP 5.3.25 (cli) (built: May 16 2013 19:10:15)
Copyright (c) 1997-2013 The PHP Group
Zend Engine v2.3.0, Copyright (c) 1998-2013 Zend Technologies
with Zend Guard Loader v3.3, Copyright (c) 1998-2010, by Zend Technologies
 
Back
Top