Problems after ./build all

THN Data

Verified User
Joined
Jun 2, 2013
Messages
39
Hi.

My server stopped working after a run the ./build all command.

When trying to run service httpd restart I get.
Code:
server:/usr/local/directadmin/custombuild# service httpd restart
Stopping httpd:
Starting httpd: httpd: Syntax error on line 37 of /etc/httpd/conf/httpd.conf: Cannot load /usr/lib/apache/libphp5.so into server: /usr/lib/apache/libphp5.so: undefined symbol: unixd_config

It I run the ./build php I get.
Code:
Installing PEAR environment:      /usr/local/lib/php/
PHP Warning:  Unknown: open_basedir restriction in effect. File(pear/install-pear-nozlib.phar) is not within the allowed path(s): (/tmp) in Unknown on line 0
PHP Warning:  Phar::mapPhar(): open_basedir restriction in effect. File(/usr/local/directadmin/custombuild/php-5.5.0RC1/pear/install-pear-nozlib.phar) is not within the allowed path(s): (/tmp) in /usr/local/directadmin/custombuild/php-5.5.0RC1/pear/install-pear-nozlib.phar on line 1119
PHP Warning:  require_once(): open_basedir restriction in effect. File(install-pear-nozlib.phar) is not within the allowed path(s): (/tmp) in /usr/local/directadmin/custombuild/php-5.5.0RC1/pear/install-pear-nozlib.phar on line 1236
PHP Warning:  require_once(): open_basedir restriction in effect. File(install-pear-nozlib.phar/index.php) is not within the allowed path(s): (/tmp) in /usr/local/directadmin/custombuild/php-5.5.0RC1/pear/install-pear-nozlib.phar on line 1236
PHP Warning:  require_once(phar://install-pear-nozlib.phar/index.php): failed to open stream: phar error: invalid url or non-existent phar "phar://install-pear-nozlib.phar/index.php" in /usr/local/directadmin/custombuild/php-5.5.0RC1/pear/install-pear-nozlib.phar on line 1236
make[1]: *** [install-pear-installer] Error 255
make: *** [install-pear] Error 2

How do I get the server back online again?

Best regards
Jukka
 
Also my info from Directadmin

Apache 2.4.4 *** Stopped ***
DirectAdmin 1.43.0 Running
Exim 4.80.1 Running
MySQL 5.5.9 Running
Named 9.7.3 Running
ProFTPd 1.3.3d Running
sshd Running
dovecot 2.2.2 Running
Php 5.5.0RC1 Installed
 
Please try:
Code:
cd /usr/local/directadmin/custombuild
./build update
mv /usr/local/lib/php.ini /usr/local/lib/php.ini.back
./build php n
mv /usr/local/lib/php.ini.back /usr/local/lib/php.ini
/etc/init.d/httpd restart
 
Hi

Thanks for a very prompt replay.

But in the end of ./build php n I get.
Code:
Starting httpd: httpd: Syntax error on line 38 of /etc/httpd/conf/httpd.conf: Syntax error on line 4 of /etc/httpd/conf/extra/httpd-phpmodules.conf: Cannot load /usr/lib/apache/libphp5.so in server: /usr/lib/apache/libphp5.so: undefined symbol: unixd_config

And the same after /etc/init.d/httpd restart.
Code:
server:/usr/local/directadmin/custombuild# /etc/init.d/httpd restart
Stopping httpd:
Starting httpd: httpd: Syntax error on line 38 of /etc/httpd/conf/httpd.conf: Syntax error on line 4 of /etc/httpd/conf/extra/httpd-phpmodules.conf: Cannot load /usr/lib/apache/libphp5.so in server: /usr/lib/apache/libphp5.so: undefined symbol: unixd_config

Anyting more to test?

Best regards
Jukka
 
Hi

Thanks for a very prompt replay.

But in the end of ./build php n I get.
Code:
Starting httpd: httpd: Syntax error on line 38 of /etc/httpd/conf/httpd.conf: Syntax error on line 4 of /etc/httpd/conf/extra/httpd-phpmodules.conf: Cannot load /usr/lib/apache/libphp5.so in server: /usr/lib/apache/libphp5.so: undefined symbol: unixd_config

And the same after /etc/init.d/httpd restart.
Code:
server:/usr/local/directadmin/custombuild# /etc/init.d/httpd restart
Stopping httpd:
Starting httpd: httpd: Syntax error on line 38 of /etc/httpd/conf/httpd.conf: Syntax error on line 4 of /etc/httpd/conf/extra/httpd-phpmodules.conf: Cannot load /usr/lib/apache/libphp5.so in server: /usr/lib/apache/libphp5.so: undefined symbol: unixd_config

Anyting more to test?

Best regards
Jukka

This error just tells you that mod_php is compiled for Apache 2.2 and is not compatible with 2.4. You need to get PHP reinstalled, but it seems it still did not finish. Please post the last 20-25 lines of "./build php n" and try removing /usr/lib/apache/libphp5.so before doing "./build php n" (rm -f /usr/lib/apache/libphp5.so).
 
More Code..

Thanks for assisting me.

Here is the code from ./Build php n
Code:
Installing PHP SAPI module:       apache2handler
/var/www/build/instdso.sh SH_LIBTOOL='/var/www/build/libtool' libphp5.la /usr/lib/apache
/var/www/build/libtool --mode=install install libphp5.la /usr/lib/apache/
libtool: install: install .libs/libphp5.so /usr/lib/apache/libphp5.so
libtool: install: install .libs/libphp5.lai /usr/lib/apache/libphp5.la
libtool: install: warning: remember to run `libtool --finish /usr/local/directadmin/custombuild/php-5.5.0RC1/libs'
chmod 755 /usr/lib/apache/libphp5.so
[activating module `php5' in /etc/httpd/conf/httpd.conf]
Installing shared extensions:     /usr/local/lib/php/extensions/no-debug-non-zts-20121212/
Installing PHP CLI binary:        /usr/local/bin/
Installing PHP CLI man page:      /usr/local/php/man/man1/
Installing PHP CGI binary:        /usr/local/bin/
Installing build environment:     /usr/local/lib/php/build/
Installing header files:          /usr/local/include/php/
Installing helper programs:       /usr/local/bin/
  program: phpize
  program: php-config
Installing man pages:             /usr/local/php/man/man1/
  page: phpize.1
  page: php-config.1
Installing PEAR environment:      /usr/local/lib/php/
[PEAR] Archive_Tar    - already installed: 1.3.11
[PEAR] Console_Getopt - already installed: 1.3.1
[PEAR] PEAR           - already installed: 1.9.4
Wrote PEAR system config file at: /usr/local/etc/pear.conf
You may want to add: /usr/local/lib/php to your php.ini include_path
[PEAR] Structures_Graph- already installed: 1.0.4
[PEAR] XML_Util       - already installed: 1.2.1
/usr/local/directadmin/custombuild/php-5.5.0RC1/build/shtool install -c ext/phar/phar.phar /usr/local/bin
ln -s -f /usr/local/bin/phar.phar /usr/local/bin/phar
Installing PDO headers:          /usr/local/include/php/ext/pdo/
Copying php.ini..
Adding date.timezone = "CEST" to /usr/local/lib/php.ini, please change it by yourself to fit your own needs.
PHP 5.5.0RC1 Installed.
Stopping httpd:
Starting httpd: httpd: Syntax error on line 38 of /etc/httpd/conf/httpd.conf: Syntax error on line 4 of /etc/httpd/conf/extra/httpd-phpmodules.conf: Cannot load /usr/lib/apache/libphp5.so in server: /usr/lib/apache/libphp5.so: undefined symbol: unixd_config

Rewriting all users httpd.conf files, please wait...
Debug mode. Level 10

dataskq: command: action=rewrite&value=httpd
Restarting apache.
Stopping httpd:
Starting httpd: httpd: Syntax error on line 38 of /etc/httpd/conf/httpd.conf: Syntax error on line 4 of /etc/httpd/conf/extra/httpd-phpmodules.conf: Cannot load /usr/lib/apache/libphp5.so in server: /usr/lib/apache/libphp5.so: undefined symbol: unixd_config

I try the thing you wrote and will post back after doing that.

Best regards
Jukka
 
New error

Hi again

Now I got a new error. Think I had this a couple of hours ago also.

Code:
Build complete.
Don't forget to run 'make test'.

Make Complete
Making PHP 5.5 installation compatible with php.ini file
Installing php...
Installing PHP SAPI module:       apache2handler
/var/www/build/instdso.sh SH_LIBTOOL='/var/www/build/libtool' libphp5.la /usr/lib/apache
/var/www/build/libtool --mode=install install libphp5.la /usr/lib/apache/
libtool: install: install .libs/libphp5.so /usr/lib/apache/libphp5.so
libtool: install: install .libs/libphp5.lai /usr/lib/apache/libphp5.la
libtool: install: warning: remember to run `libtool --finish /usr/local/directadmin/custombuild/php-5.5.0RC1/libs'
chmod 755 /usr/lib/apache/libphp5.so
[activating module `php5' in /etc/httpd/conf/httpd.conf]
Installing shared extensions:     /usr/local/lib/php/extensions/no-debug-non-zts-20121212/
Installing PHP CLI binary:        /usr/local/bin/
Installing PHP CLI man page:      /usr/local/php/man/man1/
Installing PHP CGI binary:        /usr/local/bin/
Installing build environment:     /usr/local/lib/php/build/
Installing header files:          /usr/local/include/php/
Installing helper programs:       /usr/local/bin/
  program: phpize
  program: php-config
Installing man pages:             /usr/local/php/man/man1/
  page: phpize.1
  page: php-config.1
Installing PEAR environment:      /usr/local/lib/php/
PHP Warning:  Unknown: open_basedir restriction in effect. File(pear/install-pear-nozlib.phar) is not within the allowed path(s): (/tmp) in Unknown on line 0
PHP Warning:  Phar::mapPhar(): open_basedir restriction in effect. File(/usr/local/directadmin/custombuild/php-5.5.0RC1/pear/install-pear-nozlib.phar) is not within the allowed path(s): (/tmp) in /usr/local/directadmin/custombuild/php-5.5.0RC1/pear/install-pear-nozlib.phar on line 1119
PHP Warning:  require_once(): open_basedir restriction in effect. File(install-pear-nozlib.phar) is not within the allowed path(s): (/tmp) in /usr/local/directadmin/custombuild/php-5.5.0RC1/pear/install-pear-nozlib.phar on line 1236
PHP Warning:  require_once(): open_basedir restriction in effect. File(install-pear-nozlib.phar/index.php) is not within the allowed path(s): (/tmp) in /usr/local/directadmin/custombuild/php-5.5.0RC1/pear/install-pear-nozlib.phar on line 1236
PHP Warning:  require_once(phar://install-pear-nozlib.phar/index.php): failed to open stream: phar error: invalid url or non-existent phar "phar://install-pear-nozlib.phar/index.php" in /usr/local/directadmin/custombuild/php-5.5.0RC1/pear/install-pear-nozlib.phar on line 1236
make[1]: *** [install-pear-installer] Error 255
make: *** [install-pear] Error 2

Regards
Jukka
 
Downgrading to PHP 5.4 might help in this case (with moved php.ini file).
 
Thanks for your help. Now the server runs smooth again.

Best Regards
Jukka
 
Back
Top