Apache 2.4.1 update - URGENT-

keisko

Verified User
Joined
Oct 31, 2011
Messages
42
It failed. I did everything but once I try to start httpd I get errors such as addhandler error etc..
 

keisko

Verified User
Joined
Oct 31, 2011
Messages
42
Starting httpd: AH00526: Syntax error on line 21 of /etc/httpd/conf/httpd.conf:
Invalid command 'User', perhaps misspelled or defined by a module not included in the server configuration


Failed loading /usr/local/lib/ioncube_loader_lin_5.3.so: /usr/local/lib/ioncube_loader_lin_5.3.so: undefined symbol: executor_globals
Failed loading /usr/local/lib/ZendGuardLoader.so: /usr/local/lib/ZendGuardLoader.so: undefined symbol: compiler_globals
Failed loading /usr/local/lib/ioncube_loader_lin_5.3.so: /usr/local/lib/ioncube_loader_lin_5.3.so: undefined symbol: executor_globals
Failed loading /usr/local/lib/ZendGuardLoader.so: /usr/local/lib/ZendGuardLoader.so: undefined symbol: compiler_globals
Failed loading /usr/local/lib/ioncube_loader_lin_5.3.so: /usr/local/lib/ioncube_loader_lin_5.3.so: undefined symbol: executor_globals
Failed loading /usr/local/lib/ZendGuardLoader.so: /usr/local/lib/ZendGuardLoader.so: undefined symbol: compiler_globals
 

daveyw

Verified User
Joined
Jan 5, 2008
Messages
702
Location
/dev/null
The title is uncorrect, its Apache 2.4.1 NOT DirectAdmin 2.4.1!

As told after updating tot Apache 2.4.x you need to rebuild ALL modules like PHP, mod_ruid2 (if you are using), Zend Optimizer, ionCube etc.

Please use the search option in this forum.
 

keisko

Verified User
Joined
Oct 31, 2011
Messages
42
The title is uncorrect, its Apache 2.4.1 NOT DirectAdmin 2.4.1!

As told after updating tot Apache 2.4.x you need to rebuild ALL modules like PHP, mod_ruid2 (if you are using), Zend Optimizer, ionCube etc.

Please use the search option in this forum.
is there any other command shall I run other than "build php n" ??
I did search already..
 

keisko

Verified User
Joined
Oct 31, 2011
Messages
42
I used 'build php y' several times.. nothing help
i used build apache.. nothing help
 

keisko

Verified User
Joined
Oct 31, 2011
Messages
42
You should rebuild Zend
Code:
./build zend
File already exists: ZendGuardLoader-php-5.3-linux-glibc23-x86_64.tar.gz
Failed loading /usr/local/lib/ioncube_loader_lin_5.3.so: /usr/local/lib/ioncube_loader_lin_5.3.so: undefined symbol: executor_globals
Failed loading /usr/local/lib/ZendGuardLoader.so: /usr/local/lib/ZendGuardLoader.so: undefined symbol: compiler_globals
Zend Guard Loader has been installed.

and If I try to restart httpd
I get
Code:
AH00526: Syntax error on line 2 of /etc/httpd/conf/extra/httpd-php-handlers.conf:
Invalid command 'AddHandler', perhaps misspelled or defined by a module not included in the server configuration
 

keisko

Verified User
Joined
Oct 31, 2011
Messages
42
looks like /usr/local/directadmin/custombuild/custom/ap2/ has still old httpd 2 config files..
 

keisko

Verified User
Joined
Oct 31, 2011
Messages
42
server down.. can't do anything.. can't get support.. we are still in business hours..
if custombuild doesn't ready for 2.4 yet why it's released?
 

smtalk

Administrator
Staff member
Joined
Aug 22, 2006
Messages
8,347
Location
LT, EU
It is ready, but your configs are not. "custom" directory functionality is created for sysadmins (experts) only, you shouldn't use it. If you have an old configure.apache file, which is incompatible with apache 2.4, it won't work. CustomBuild doesn't touch "custom" directory at all. Do:
Code:
cd /usr/local/directadmin/custombuild
mv custom custom_not_used
./build apache
./build php n
And it will work with no problems.
 

keisko

Verified User
Joined
Oct 31, 2011
Messages
42
It is ready, but your configs are not. "custom" directory functionality is created for sysadmins (experts) only, you shouldn't use it. If you have an old configure.apache file, which is incompatible with apache 2.4, it won't work. CustomBuild doesn't touch "custom" directory at all. Do:
Code:
cd /usr/local/directadmin/custombuild
mv custom custom_not_used
./build apache
./build php n
And it will work with no problems.
too late.. What I did;
deleted whole custombuild v1.1 folder.
re-installed custombuild v1.2
edited options.conf
updated
it works.. got a few errors but fixed myself.

but now server lags like a hell
 

arazit

Verified User
Joined
Aug 20, 2008
Messages
196
I get this error
I dont dave any custom config
I install directadmin today in this server
Failed loading /usr/local/lib/ioncube_loader_lin_5.3.so: /usr/local/lib/ioncube_loader_lin_5.3.so: undefined symbol: executor_globals
Failed loading /usr/local/lib/ZendGuardLoader.so: /usr/local/lib/ZendGuardLoader.so: undefined symbol: compiler_globals
 

arazit

Verified User
Joined
Aug 20, 2008
Messages
196
make[1]: Leaving directory `/usr/local/directadmin/custombuild/httpd-2.4.1'
Restoring certificate and key, and turning on httpd for DirectAdmins's check.
Restarting apache.
Stopping httpd: [ OK ]
Starting httpd: [Fri Mar 02 10:49:38.918675 2012] [so:warn] [pid 11485] AH01574: module php5_module is already loaded, skipping
[Fri Mar 02 10:49:38.922382 2012] [core:warn] [pid 11485] AH00117: Ignoring deprecated use of DefaultType in line 60 of /etc/httpd/conf/httpd.conf.
AH00548: NameVirtualHost has no effect and will be removed in the next release /etc/httpd/conf/ips.conf:6
 

DirectAdmin Support

Administrator
Staff member
Joined
Feb 27, 2003
Messages
8,937
Hello,

1) For the ZenGuardLoader.so, I'm not too sure. Try:
- Edit your php.ini and remove all mention of zend guard (likely at the bottom)
- Try re-installing it, eg: "./build zend" to see if it installs a different .so file.
- Found this related thread, but no solution yet: http://forums.zend.com/viewtopic.php?f=57&p=72163

2) I've added code to remove the NameVirtualHost entry from the ips.conf if Apache 2.4+ is used:
http://www.directadmin.com/features.php?id=1317

3) For the DefaultType error, I've left that for now, as it may be needed for backwards compatibility with older versions of apache (may change it later).

John
 

DirectAdmin Support

Administrator
Staff member
Joined
Feb 27, 2003
Messages
8,937
Googling more on the ZendGuard issue, I found this:
http://www.ioncube.com/faqs/loaders.php#9b
Q. What does undefined symbol: compiler_globals mean?
A. This can mean that PHP is built with "Thread Safety" enabled. Check a phpinfo page to verify, and if thread safety is enabled you should rename the thread safe Loader to the name of the non-thread safe Loader. So, if you are using PHP x.y.z on Linux, you should rename ioncube_loader_lin_x.y_ts.so Loader as ioncube_loader_lin_x.y.so in the ioncube directory. There will already be a non-ts Loader with that name, and it is best to remove that before renaming the ts version.
If you built PHP yourself, note that having threading enabled on Unix is usually unrequired and an error, and the --enable-experimental-zts configuration option should only be used if you know what it does and why you need it, and not just because it sounds good!
I have not tested it, but if you wanted to try the --enable-experimental-zts option, this is the guide to add it to php:
http://help.directadmin.com/item.php?id=252

John
 

Quonos

Verified User
Joined
Jul 30, 2009
Messages
23
Using the stock custombuild scripts, PHP's threading capabilities seem to be dependent on what Apache does. When I used Apache 2.2, PHP was non-zts. When I upgraded to Apache 2.4 (and recompiled PHP 5.4), this became zts. I'm hoping that someone can confirm this - it could be a bug in the custombuild scripts.

Using the stock custombuild scripts (version 1.2) on CentOS 5.7.

[edit]
Cool, it was actually a PHP bug. Fixed in 5.4.1
It can be fixed in 5.3.10/5.4.0 with this patch
Unless you're going to patch PHP, I strongly recommend against upgrading to Apache 2.4.
 
Last edited:

Terrorhawk

Verified User
Joined
Jan 29, 2007
Messages
32
to fix the
Failed loading /usr/local/lib/ioncube_loader_lin_5.3.so: /usr/local/lib/ioncube_loader_lin_5.3.so: undefined symbol: executor_globals

is very easy.

mv /usr/local/lib/ioncube_loader_lin_5.3.so /usr/local/lib/ioncube_loader_lin_5.3.so.org

download loaders from: http://www.ioncube.com/loaders.php

and upload the ioncube_loader_lin_5.3_ts.so file from the archive to /usr/local/lib/ and name it ioncube_loader_lin_5.3.so

check to see if it work (php -v)

Code:
 php -v
PHP 5.3.10 (cli) (built: Mar  6 2012 15:16:11)
Copyright (c) 1997-2012 The PHP Group
Zend Engine v2.3.0, Copyright (c) 1998-2012 Zend Technologies
    with the ionCube PHP Loader v4.0.12, Copyright (c) 2002-2011, by ionCube Ltd.
 

nobaloney

NoBaloney Internet Svcs - In Memoriam †
Joined
Jun 16, 2003
Messages
26,119
Location
California
Ioncube still doesn't work

Installing ioncube appears to work:
Code:
# ./build ioncube
mail-header-patch=yes is set in the options.conf, but is not required with this php version.
To enable the X-Mail header, set mail.add_x_header to 1 in your php.ini
File already exists:    ioncube_loaders_lin_x86-64.tar.gz
ionCube loader has been installed.
But phpinfo doesn't show it to be installed:

http://datest.namelessnet.net/phpinfo.php

Any ideas? As far as I can tell, it should be working. This is a 64-bit build; it worked fine on a 32-bit build last week.

Jeff
 

smtalk

Administrator
Staff member
Joined
Aug 22, 2006
Messages
8,347
Location
LT, EU
Installing ioncube appears to work:
Code:
# ./build ioncube
mail-header-patch=yes is set in the options.conf, but is not required with this php version.
To enable the X-Mail header, set mail.add_x_header to 1 in your php.ini
File already exists:    ioncube_loaders_lin_x86-64.tar.gz
ionCube loader has been installed.
But phpinfo doesn't show it to be installed:

http://datest.namelessnet.net/phpinfo.php

Any ideas? As far as I can tell, it should be working. This is a 64-bit build; it worked fine on a 32-bit build last week.

Jeff
Hi Jeff,

It was a PHP bug which is now fixed in CB on files1 server. Please try the following:
Code:
cd /usr/local/directadmin/custombuild
./build set downloadserver files1.directadmin.com
./build update
./build php n
 

NoBaloney2

NoBaloney Internet Svcs.
Joined
Jun 17, 2007
Messages
498
Location
California
More problems:
Code:
# ./build php n
mail-header-patch=yes is set in the options.conf, but is not required with this php version.
To enable the X-Mail header, set mail.add_x_header to 1 in your php.ini
File already exists:    php-5.3.10.tar.gz
MD5 Checksum on php-5.3.10.tar.gz passed.
Failed loading /usr/local/lib/ioncube_loader_lin_5.3.so:  /usr/local/lib/ioncube_loader_lin_5.3.so: undefined symbol: executor_globals
Failed loading /usr/local/lib/ZendGuardLoader.so:  /usr/local/lib/ZendGuardLoader.so: undefined symbol: compiler_globals
Failed loading /usr/local/lib/ioncube_loader_lin_5.3.so:  /usr/local/lib/ioncube_loader_lin_5.3.so: undefined symbol: executor_globals
Failed loading /usr/local/lib/ZendGuardLoader.so:  /usr/local/lib/ZendGuardLoader.so: undefined symbol: compiler_globals
Failed loading /usr/local/lib/ioncube_loader_lin_5.3.so:  /usr/local/lib/ioncube_loader_lin_5.3.so: undefined symbol: executor_globals
Failed loading /usr/local/lib/ZendGuardLoader.so:  /usr/local/lib/ZendGuardLoader.so: undefined symbol: compiler_globals
Failed loading /usr/local/lib/ioncube_loader_lin_5.3.so:  /usr/local/lib/ioncube_loader_lin_5.3.so: undefined symbol: executor_globals
Failed loading /usr/local/lib/ZendGuardLoader.so:  /usr/local/lib/ZendGuardLoader.so: undefined symbol: compiler_globals
Failed loading /usr/local/lib/ioncube_loader_lin_5.3.so:  /usr/local/lib/ioncube_loader_lin_5.3.so: undefined symbol: executor_globals
Failed loading /usr/local/lib/ZendGuardLoader.so:  /usr/local/lib/ZendGuardLoader.so: undefined symbol: compiler_globals
Found /usr/local/directadmin/custombuild/php-5.3.10.tar.gz
Extracting ...
Done.
Downloading             php-bug-61172-1.patch...
--2012-03-10 11:31:30--  http://files1.directadmin.com/services/custombuild/php-bug-61172-1.patch
Resolving files1.directadmin.com... 216.144.254.90
Connecting to files1.directadmin.com|216.144.254.90|:80... connected.
HTTP request sent, awaiting response... 200 OK
Length: 3074 (3.0K) [text/plain]
Saving to: `/usr/local/directadmin/custombuild/php-bug-61172-1.patch'

100%[=========================================================>] 3,074       --.-K/s   in 0.04s   

2012-03-10 11:31:30 (78.8 KB/s) - `/usr/local/directadmin/custombuild/php-bug-61172-1.patch' saved [3074/3074]

MD5 Checksum on php-bug-61172-1.patch passed.
Disabling asm/atomic in /usr/include/mysql/my_global.h
patching file sapi/apache2handler/config.m4
patching file sapi/apache2filter/config.m4
patching file configure.in
Forcing buildconf
buildconf: checking installation...
buildconf: You need autoconf 2.59 or lower to build this version of PHP.
           You are currently trying to use 2.63
           Most distros have separate autoconf 2.13 or 2.59 packages.
           On Debian/Ubuntu both autoconf2.13 and autoconf2.59 packages exist.
           Install autoconf2.13 and set the PHP_AUTOCONF env var to 
           autoconf2.13 and try again.
make: *** [buildmk.stamp] Error 1
Configuring php-5.3.10...
/usr/local/directadmin/custombuild/configure/ap2/configure.php5: line 3: ./configure: No such file or directory

*** There was an error while trying to configure php. Check the configure/ap2/configure.php5 file
This is the contents of my options.conf file:
Code:
#PHP settings. default_php possible values - 4 or 5, php5_ver - 5.2 or 5.3
default_php=5
php5_ver=5.3
php4_cli=no
php4_cgi=no
php5_cli=yes
php5_cgi=no
ioncube=yes
zend=yes
#Possible values - recommended or dist
php_ini_type=recommended

#Possible values - 5.0, 5.1, 5.5
mysql=5.5
mysql_inst=yes
mysql_backup=yes
mysql_backup_dir=/usr/local/directadmin/custombuild/mysql_backups

#Possible values - 1.3, 2.0 or 2.2
apache_ver=2.4
secure_htaccess=yes

#Web applications
phpmyadmin=yes
atmail=yes
squirrelmail=yes
roundcube=yes
uebimiau=yes

#Mail options
exim=yes
eximconf=no
clamav=yes
mailman=yes
spamassassin=yes
mail-header-patch=yes
dovecot=yes

#Statistics
awstats=yes
webalizer=yes

#FTP options
proftpd=yes
pureftpd=no

#Jailed shell (beta)
jail=no

#Autoconf/automake/libtool options
autoconf=yes
automake=yes
libtool=yes
curl=yes

#CustomBuild options
custombuild=1.1
autover=yes
bold=no
clean=yes
clean_old_tarballs=yes
clean_old_webapps=yes
downloadserver=files1.directadmin.com
cleanapache=no

#Cron settings
cron=yes
email=admin@host.sarasimi.com
notifications=yes
da_autoupdate=no
updates=no
webapps_updates=yes

#CustomBuild 1.2 settings
php6_cli=no
php6_cgi=no
php_ini=no
harden-symlinks-patch=no
new_zlib=no
I tried again, with ioncube=no. Same error. Something appears to have been broken.

I tried again with the files2 download server and ioncube=no. Same error. Something appears to have been recently broken, as this all worked without error yesterday; it just didn't install ioncube properly; now it's completely broken.

I didn't want to try just any source for the older version of autoconf; I don't know what else it may break.

Any ideas? Am I the only one having this problem? l And most importantly can you help me fix it? This machine should be delivered to client by Monday.

Thanks.

Jeff
 
Top