Apache httpd 2.4.1 Released

Stopping httpd: [FAILED]
Starting httpd: AH00526: Syntax error on line 28 of /etc/httpd/conf/httpd.conf:
Either all Options must start with + or -, or no Option may

Just edit that file, go to line 28 and add "+" before the options which do not have "+" in front of them. Save and restart apache - it will no longer show error.
 
Still reverting back to 2.2.
I'm getting way too many random 404 pages. :(

I'll check it out later.
 
Still reverting back to 2.2.
I'm getting way too many random 404 pages. :(

I'll check it out later.

Are you sure you had no custom configure.apache file, any additional apache modules or custom configs?
 
Hi,

I update my test server . I do ./build php too and I got this error:
Starting httpd: httpd: Syntax error on line 17 of /etc/httpd/conf/httpd.conf: Syntax error on line 1 of /etc/httpd/conf/extra/httpd-phpmodules.conf: Cannot load /usr/lib/apache/libphp6.so into server: /usr/lib/apache/libphp6.so: undefined symbol: unixd_config

Could you have any solution?
Thanks a lot!
 
Are you really using PHP6? I guess you should fix PHP preferences in /usr/local/directadmin/custombuild/options.conf
 
No. I don't use php6. default_php=5

But i check now the /etc/httpd/conf/extra/httpd-phpmodules.conf and it's content the LoadModule php6_module /usr/lib/apache/libphp6.so
This is very interesting... I never install the php6. I do only ./build php.

I commented the LoadModule php6_module /usr/lib/apache/libphp6.so and I got fcgid error:

Starting httpd: httpd: Syntax error on line 18 of /etc/httpd/conf/httpd.conf: Cannot load /usr/lib/apache/mod_fcgid.so into server: /usr/lib/apache/mod_fcgid.so: undefined symbol: unixd_config

Thanks!
 
What version do you see when run this

Code:
grep BUILDSCRIPT_VER= /usr/local/directadmin/custombuild/build

I guess, you need to switch back to 1.1.x or 1.2.x in /usr/local/directadmin/custombuild/options.conf and run

./build update
./build apache
./build php d
 
It's very interesting problem! I use the custombuild 1.2.32. I did do the updates:

./build update
./build apache
./build php d

And the problem is same:
Starting httpd: httpd: Syntax error on line 17 of /etc/httpd/conf/httpd.conf: Syntax error on line 1 of /etc/httpd/conf/extra/httpd-phpmodules.conf: Cannot load /usr/lib/apache/libphp6.so into server: /usr/lib/apache/libphp6.so: undefined symbol: unixd_config

But I don't use php6. If I comment the LoadModule php6_module /usr/lib/apache/libphp6.so. I got this error:

Starting httpd: httpd: Syntax error on line 18 of /etc/httpd/conf/httpd.conf: Cannot load /usr/lib/apache/mod_fcgid.so into server: /usr/lib/apache/mod_fcgid.so: undefined symbol: unixd_config


If I commented the mod_fcgid.so in /etc/httpd/conf/httpd.conf

I got the next error:

Starting httpd: httpd: Syntax error on line 19 of /etc/httpd/conf/httpd.conf: Cannot load /usr/lib/apache/mod_auth_mysql.so into server: /usr/lib/apache/mod_auth_mysql.so: undefined symbol: ap_requires


Why the libphp6.so get in to the config file? And the apache 2.4 doesn!t support mod_fcgid and mod_auth_mysql.so?

Thanks!
 
But I don't use php6. If I comment the LoadModule php6_module /usr/lib/apache/libphp6.so. I got this error:

Disable it in options.conf then, and show the full content of the file.
 
It is failed

Starting httpd: httpd: Syntax error on line 17 of /etc/httpd/conf/httpd.conf: Syntax error on line 1 of /etc/httpd/conf/extra/httpd-phpmodules.conf: Cannot load /usr/lib/apache/mod_suphp.so into server: /usr/lib/apache/mod_suphp.so: undefined symbol: ap_log_rerror
 
All directives in Options should start with "-" or "+":
Options +IncludesNoExec +Includes +SymLinksIfOwnerMatch +ExecCGI -Indexes

Order deny,allow
Deny from all

should be changed to:
Require all denied

do they mean in .htaccess files also or just httpd.conf files?
 
Starting httpd: httpd: Syntax error on line 17 of /etc/httpd/conf/httpd.conf: Syntax error on line 1 of /etc/httpd/conf/extra/httpd-phpmodules.conf: Cannot load /usr/lib/apache/mod_suphp.so into server: /usr/lib/apache/mod_suphp.so: undefined symbol: ap_log_rerror
Did you rebuild suPHP? Yes or No? If not: rebuild suPHP
 
I wanted to post an new custombuild error, but before i did i saw this topic.

Many of the errors mentioned here are also when you make an fresh install on a clean server when you select apache 2.4, normal when you run this i get no errors, but when you choose for apache 2.4 you get a bonus for fixing the errors before you done with the install.

I have it working now, but i didnt expect all these errors when i selected apache 2.4.


regards
 
@boeve webdesign:well you need to rebuild all modules and PHP. So thats the reason I guess for the errors :)
 
Just tried again but now I got an error when trying to run ./build php d

checking for mysql_close in -lmysqlclient... yes
checking for MySQL UNIX socket location... no
checking for MySQLi support... yes
checking whether to enable embedded MySQLi support... no
checking for mysql_set_server_option in -lmysqlclient... no
configure: error: wrong mysql library version or lib not found. Check config.log for more information.

*** There was an error while trying to configure php. Check the configure/suphp/configure.php5 file

I use Custombuild 1.2 + Apache 2.4.1 + PHP 5.3.10 + MySQL 5.5. PHP is set to CGI mode.
 
Last edited:
Doesn't seem to be the problem of apache 2.4.1. I got same error when revert back to 2.2. Maybe because I just update Zlib? Will try to check it out.

Update : Look like my problem is similar to here -> http://www.directadmin.com/forum/showthread.php?t=43011&p=218116 ( but I use CentOS 5.7 though )

My config.log shows :

configure:60979: checking for MySQL UNIX socket location
configure:61352: checking for MySQLi support
configure:61396: checking whether to enable embedded MySQLi support
configure:61547: checking for mysql_set_server_option in -lmysqlclient
configure:61566: gcc -o conftest -I/usr/local/include -g -O2 -fvisibility=hidden -Wl,-rpath,/usr/lib64 -L/usr/lib64 -L/usr/local/lib -Wl,-rpath,/usr/local/lib -L/usr/local/lib -Wl,-rpath,/usr/kerberos/lib64 -L/usr/kerberos/lib64 -lmysqlclient -lm -lrt -ldl conftest.c -lmysqlclient -lmysqlclient -lmcrypt -lltdl -liconv -lfreetype -lpng -lz -ljpeg -lcurl -lz -lpcre -lrt -lm -ldl -lnsl -lxml2 -lz -liconv -lm -lgssapi_krb5 -lkrb5 -lk5crypto -lcom_err -lssl -lcrypto -ldl -lz -lcurl -lxml2 -lz -liconv -lm -lssl -lcrypto -ldl -lz 1>&5
/usr/local/lib/libxml2.so: undefined reference to `gzdirect@ZLIB_1.2.2.3'
/usr/local/lib/libxml2.so: undefined reference to `gzopen64@ZLIB_1.2.3.3'
collect2: ld returned 1 exit status
configure: failed program was:
#line 61555 "configure"
#include "confdefs.h"
/* Override any gcc2 internal prototype to avoid an error. */
/* We use char because int might match the return type of a gcc2
builtin and then its argument prototype would still apply. */
char mysql_set_server_option();

int main() {
mysql_set_server_option()
; return 0; }
 
Last edited:
Back
Top