Sun 26 Aug 2007
After re-installing php 5, I got a wired error when starting apache 2:
Cannot load /.../libphp5.so into server: /.../libphp5.so: undefined symbol: _efree
Google suggested that, lots of people have the exact error, but not a single page contains what caused this error or how to solve it. In addition, this error also happens with php 4 and apache 1.
After some hard time Trial and error, I found the issue: due to some reasons, the make install to install php 5 does not actually copy over the libphp5.la files to the right place. After manually copying the la file, apache 2 can be started happily with php 5 enabled.
RSS feed for comments on this post. TrackBack this post
September 6th, 2007 at 5:13 pm
I am still having the same problem. Even though I copied libphp5.la to the /usr/local/apache2/modules directory. then did a chmod 755 on it. I still get the error:
httpd: Syntax error on line 54 of /usr/local/apache2/conf/httpd.conf: Cannot l
oad /usr/local/apache2/modules/libphp5.so into server: /usr/local/apache2/modu
les/libphp5.so: undefined symbol: _efree
any suggestions.
September 7th, 2007 at 1:13 am
try to remove libphp5.so and libphp5.la under /usr/local/apache2/modules, and copy over the compiled ones
October 12th, 2007 at 1:40 pm
I also had this problem… nothing online seemed to help.
What worked for me was to do a `gmake clean` before recompiling php. Clean will remove all files compiled from the previous build forcing the new build ro recompile all the files… hope this helps.
Ivan
December 25th, 2007 at 3:38 pm
Thanks Ivan, worked for me:
`make clean`
or
`gmake clean`
or w/e you want to use.