Slackware 10.2 and PHP5?

View: New views
2 Messages — Rating Filter:   Alert me  

Slackware 10.2 and PHP5?

by Richard Feldmann :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

Hi List,

Everything seems to have been installed OK, but ...

I'm getting the following error when restarting Apache after installing Midgard:

PHP Warning:  PHP Startup: Unable to load dynamic library '.:/usr/local/lib/php/
extensions/no-debug-non-zts-20020429/midgard.so' - .:/usr/local/lib/php/extensio
ns/no-debug-non-zts-20020429/midgard.so: cannot open shared object file: No such
 file or directory in Unknown on line 0
PHP 5.0.5 (cli) (built: Nov 23 2005 23:02:51)

I saw in the list archives that some people have gotten midgard working OK with PHP5, so I'm wondering what the issue is here?

My setup:

Slack 10.2
Apache 2.0.54 (installed using prefork)
PHP5
MySQL4

My PHP and Apache configure options, just in case:

PHP build:

'./configure' \
'--with-apxs2=/usr/sbin/apxs' \
'--with-mysqli=/usr/bin/mysql_config' \
'--with-mysql=/usr/include/mysql' \
'--with-mysql-sock=/var/run/mysql/mysql.sock' \
'--with-config-file-path=/etc/apache' \
'--enable-track-vars' \
'--enable-force-cgi-redirect' \
'--with-gettext' \
'--with-zlib' \
'--with-bz2' \
'--with-gd' \
'--with-openssl' \
'--enable-mbstring=all' \
'--with-mcrypt' \
'--enable-exif'

Apache build:

'./configure' \
'--enable-ssl' \
'--enable-rewrite' \
'--enable-speling' \
'--enable-deflate' \
'--with-mpm=prefork' \
'--enable-expires' \
'--enable-dav' \
'--enable-dav-fs' \
'--disable-status'

--
Regards,
Richard


attachment0 (196 bytes) Download Attachment

Re: Slackware 10.2 and PHP5?

by Richard Feldmann :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

Richard Feldmann spake thusly on Wed, Feb 08, 2006 at 10:28:28AM -0700:
> I'm getting the following error when restarting Apache after installing Midgard:
>
> PHP Warning:  PHP Startup: Unable to load dynamic library '.:/usr/local/lib/php/
> extensions/no-debug-non-zts-20020429/midgard.so' - .:/usr/local/lib/php/extensio
> ns/no-debug-non-zts-20020429/midgard.so: cannot open shared object file: No such
>  file or directory in Unknown on line 0
> PHP 5.0.5 (cli) (built: Nov 23 2005 23:02:51)
>
--- end quoted text ---

Ok, I fixed that problem. I just removed the ".:" from the beginning of the extension_dir string in php.ini and it was resolved. I'll mess around with it some more to make sure that this is the best solution.

Many thanks to hyy for the assistance in irc!

--
Regards,
Richard


attachment0 (196 bytes) Download Attachment