Jump to content


Photo

getting an "undefined symbol php_write" when attempting to start apache with php


  • Please log in to reply
1 reply to this topic

#1 gudmunson

gudmunson
  • Members
  • PipPip
  • Member
  • 17 posts

Posted 02 August 2006 - 11:03 PM

Hey All,

I had a fully functional web server, and I attempted to install gd as well as libjpeg so that I could use some image manipulation functions. My php ./configure/make/make install didn't give any errors. When I attempt to start apache2, I get the following error:

$ ./apachectl start
httpd: Syntax error on line 425 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 "php_write"
$

I have added the following lines at the end of httpd.conf (the line numbers are obviously not there :):

[line 425] LoadModule php5_module modules/libphp5.so
[line 426] AddHandler php5-script php
[line 427] AddModule mod_php5.c

I have also checked and modules/libphp5.so is there:

$ ls -l libphp5.so
-rwxr-xr-x  1 gudmunsn  wheel  979694 Aug  2 15:37 libphp5.so
$

Any idea how to fix this? I am stumped.



#2 gudmunson

gudmunson
  • Members
  • PipPip
  • Member
  • 17 posts

Posted 03 August 2006 - 03:44 PM

Ok I fixed it. Apparently using the GD library and compiling can sometimes break your php installation. Once I deleted the original php source dir and untar'd it again, I could configure and gd now works.




0 user(s) are reading this topic

0 members, 0 guests, 0 anonymous users