Apache loading PHP module - undefined symbol: unixd_config
24,749
Solution 1
I used the following and built libphp5.so
on my own:
<FilesMatch \.php$>
SetHandler application/x-httpd-php
</FilesMatch>
PHPIniDir "/path/to/php/lib"
Solution 2
The Apache API changed from 2.2 to 2.4, with unixd_config
renamed to ap_unixd_config
(see API changes from 2.2 to 2.4).
You need a PHP module version that is compatible with Apache 2.4, else stay with Apache 2.2.
Related videos on Youtube
Author by
Fractaliste
Updated on September 18, 2022Comments
-
Fractaliste over 1 year
I'm configuring a new web server on a RedHat 6.5 and am trying to enable the
php5
module on Apache 2.4.6:LoadModule php5_module /usr/path/to/libphp5.so AddType application/x-httpd-php .php
- When I check
httpd.conf
with Apache, I get the following error about theLoadModule
's line:Cannot load /usr/path/to/libphp5.so into server: /usr/path/to/libphp5.so: undefined symbol: unixd_config
I wonder if the problem is because I have two PHP versions installed? The one Apache should use is the alias
php55
; what is the configuration for it? - When I check
-
Fractaliste over 9 yearsAnd where can I get the good module version?
-
Zimmi over 9 yearsFor sure the right versions is available in Red Hat packages, unfortunately I can't help you further with this (I'm always with Debian). If you install standard packages you should be allright.
-
Nullpointer over 7 years@Zimm I've same issue in debian7, php 5.6 and apache2.4.10 any multiple time installed php and apache and module but still same issue. Can you tell me how to solve it ?