Apache 2.4 compilation fails with: undefined symbol: unixd_config

yannisc

Member
Oct 10, 2006
13
0
151
When I try to compile with apache 2.4, I get the following error:

httpd: Syntax error on line 40 of /usr/local/apache/conf/httpd.conf.1363727552: Syntax error on line 9 of /usr/local/apache/conf/php.conf: Cannot load modules/libphp5.so into server: /usr/local/apache/modules/libphp5.so: undefined symbol: unixd_config
 

KurtN.

Well-Known Member
Jan 29, 2013
95
1
83
cPanel Access Level
Root Administrator
Hi yannisc,

Please provide more information. For example, the portion of both configuration files it's complaining about (line 40 of httpd.conf and line 9 of your php.conf).

Additionally, did you upgrade from 2.2 to 2.4 recently?
 

yannisc

Member
Oct 10, 2006
13
0
151
Hi yannisc,

Please provide more information. For example, the portion of both configuration files it's complaining about (line 40 of httpd.conf and line 9 of your php.conf).

Additionally, did you upgrade from 2.2 to 2.4 recently?
This is the first time I try to upgrade to 2.4. I'm currently on 2.2.

line 40 of httpd.conf loads php.conf and line 9 of php.conf says:

LoadModule php5_module modules/libphp5.so
 

KurtN.

Well-Known Member
Jan 29, 2013
95
1
83
cPanel Access Level
Root Administrator
The error you're seeing is due to the fact that Apache 2.4 renamed an internal data structure from unixd_config to ap_unixd_config that your version of PHP is still looking for (link here).

Can you copy and paste the profile you're using to build Apache 2.4? Feel free to use any one of the online pastebin like websites out there.
 

KurtN.

Well-Known Member
Jan 29, 2013
95
1
83
cPanel Access Level
Root Administrator
The reason you're having this issue is because it seems PHP 5.2 isn't compatible with Apache 2.4 because it's using a (now) deprecated Apache API. The developers at PHP are no longer supporting 5.2, and thus it is unlikely that there will be any updates to rectify this in the future.

Your options are to either change PHP versions, or remain at Apache 2.2.

In the mean time, I'll submit a case internally to rectify this in the future.