The Community Forums

Interact with an entire community of cPanel & WHM users!
  1. This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn More.

Apache 2.4 compilation fails with: undefined symbol: unixd_config

Discussion in 'EasyApache' started by yannisc, Mar 19, 2013.

  1. yannisc

    yannisc Member

    Joined:
    Oct 10, 2006
    Messages:
    13
    Likes Received:
    0
    Trophy Points:
    1
    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
     
  2. cPanelKurtN

    cPanelKurtN Well-Known Member
    Staff Member

    Joined:
    Jan 29, 2013
    Messages:
    95
    Likes Received:
    1
    Trophy Points:
    8
    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?
     
  3. yannisc

    yannisc Member

    Joined:
    Oct 10, 2006
    Messages:
    13
    Likes Received:
    0
    Trophy Points:
    1
    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
     
  4. cPanelKurtN

    cPanelKurtN Well-Known Member
    Staff Member

    Joined:
    Jan 29, 2013
    Messages:
    95
    Likes Received:
    1
    Trophy Points:
    8
    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.
     
  5. yannisc

    yannisc Member

    Joined:
    Oct 10, 2006
    Messages:
    13
    Likes Received:
    0
    Trophy Points:
    1
    Here it is: apache2.4 build that produces error - Pastebin.com
     
  6. cPanelKurtN

    cPanelKurtN Well-Known Member
    Staff Member

    Joined:
    Jan 29, 2013
    Messages:
    95
    Likes Received:
    1
    Trophy Points:
    8
    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.
     
  7. yannisc

    yannisc Member

    Joined:
    Oct 10, 2006
    Messages:
    13
    Likes Received:
    0
    Trophy Points:
    1
    thank you!
     
  8. cPanelJamyn

    cPanelJamyn Social Engineer
    Staff Member

    Joined:
    Jan 29, 2009
    Messages:
    105
    Likes Received:
    2
    Trophy Points:
    0
Loading...

Share This Page