Find the answer to your Linux question:
Results 1 to 3 of 3
Enjoy an ad free experience by logging in. Not a member yet? Register.
  1. #1

    Configuring PHP to work with apache


    I am trying to make php and apache work together, but after configuring php to work with apache I get the following error message when I restart apache:
    httpd: Syntax error on line 54 of /usr/local/apache2/conf/httpd.conf: Cannot load /usr/local/apache2/modules/libphp5.so into server: /usr/local/apache2/modules/libphp5.so: undefined symbol: zend_parse_parameters.
    If I remove line 54 it works fine, but that's the line that I load the php 5 module.
    LoadModule php5_module modules/libphp5.so
    Does anyone know what's causing this problem.
    Any help would be appreciated.

  2. #2
    I had similar on line 279 or so i dnt remember. try reinstalling php .. may work.

  3. #3

    A possible solution

    -->
    I was getting the same error as you, and have noticed this message in PHP's configure script:

    Code:
    configure: warning: bison versions supported for regeneration of the Zend/PHP parsers: 1.28 1.35 1.75 1.875 2.0 2.1 2.2 2.3 2.4 2.4.1 (found: none).
    After installing bison, I had to reinstall PHP from distclean. (PHP 5.3.1 from source)

    Code:
    make distclean
    configure ...
    make
    make install
    This has cured the error message from apache, and now it works.

$spacer_open
$spacer_close

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •