PHP on linux can't find mysql/gd/curl .so files
Posted: Mon Jan 14, 2008 5:35 pm
I've been trying to set up a old computer as a server running linux (ubuntu 7.10-server to be specific) and have successfully installed apache, mysql, openssh, proftpd and samba. I have, however, run into a problem with php as it complains about missing .so files for mysql, gd2 and curl. I've downloaded and installed (./configure, make && make install) gd2 and curl along with a binary release of mysql 5, but can't find any .so-files anywhere?
PHP (5.2.5) has been configured with the following:
Locations of the different packages:
Apache (2.2.6): /usr/local/apache
MySQL (5.0.45-linux-i686-glibc23): /usr/local/mysql
curl (7.17.1): default
gd (2.0.35): default
Error log for apache when starting up:
php.ini excerpt:
Am I missing something simple here?
Cheers
PHP (5.2.5) has been configured with the following:
Code: Select all
./configure --with-apxs2=/usr/local/apache/bin/apxs --with-libxml-dir --with-curl --with-gd --enable-gd-native-ttf --with-gettext --with-mysql=/usr/local/mysql --enable-mbstringApache (2.2.6): /usr/local/apache
MySQL (5.0.45-linux-i686-glibc23): /usr/local/mysql
curl (7.17.1): default
gd (2.0.35): default
Error log for apache when starting up:
Code: Select all
PHP Warning: PHP Startup: Unable to load dynamic library './php_curl.so' - ./php_curl.so: cannot open shared object file: No such file or directory in Unknown on line 0
PHP Warning: PHP Startup: Unable to load dynamic library './php_gd2.so' - ./php_gd2.so: cannot open shared object file: No such file or directory in Unknown on line 0
PHP Warning: PHP Startup: Unable to load dynamic library './php_mysql.so' - ./php_mysql.so: cannot open shared object file: No such file or directory in Unknown on line 0
[Tue Jan 15 00:13:15 2008] [notice] Apache/2.2.6 (Unix) PHP/5.2.5 configured -- resuming normal operations
Code: Select all
;include_path = ".:/php/includes"
doc_root =
user_dir =
extension_dir = "./"
extension=php_curl.so
extension=php_gd2.so
extension=php_mysql.so
Cheers