Re: PHP Webserver on DM800? can it be done?
ok
in fact I was tired...
I didn't well readl the lessage :
that means the lib we're trying to add is not the good one...
try :
ipkg list | grep libc
you should find php-curl which is the one we need to install
Alert: Don't Use Hotmail Email Accounts for registration
Collapse
Before Access to all Forums and Trial accounts you must need to activate your account Email address
PHP Webserver on DM800? can it be done?
Collapse
X
-
Re: PHP Webserver on DM800? can it be done?
to get that exact error message that you mentioned, all i had to do is remove the front " / " from
php.ini
like this
extension=usr/lib/libcurl.so.4.1.1Leave a comment:
-
Re: PHP Webserver on DM800? can it be done?
but you need to get back at the situation I mentioned in my previous post (where we had the error message), it was the best situation we've had
so : delete the file in /srv/php.......
put the php.ini as it was when we had the error message
you first need to obtain the same error message as we've had.
after that copy the file to the location it searches it
I'm going to bed, keep me informedLeave a comment:
-
Re: PHP Webserver on DM800? can it be done?
srv/php/lib/php/extensions/no-debug-non-zts-20020429/usr/lib/Leave a comment:
-
Re: PHP Webserver on DM800? can it be done?
try to put yourself in the same situation as when we had the msg :
PHP Warning: Unknown(): Unable to load dynamic library '/srv/php/lib/php/extensions/no-debug-non-zts-20020429/usr/lib/libcurl.so.4.1.1' - /srv/php/lib/php/extensions/no-debug-non-zts-20020429/usr/lib/libcurl.so.4.1.1: cannot open shared object file: No such file or directory in Unknown on line 0Leave a comment:
-
Re: PHP Webserver on DM800? can it be done?
ok removed the symbolic link and copied the actual file. made no difference.
[Thu Aug 25 21:43:11 2011] [warn] child process 17862 did not exit, sending another SIGHUP
[Thu Aug 25 21:43:11 2011] [warn] child process 17863 did not exit, sending another SIGHUP
[Thu Aug 25 21:43:13 2011] [notice] SIGHUP received. Attempting to restart
PHP Warning: Unknown(): Invalid library (maybe not a PHP library) '/usr/lib/libcurl.so.4.1.1' in Unknown on line 0
[Thu Aug 25 21:43:13 2011] [notice] Apache/1.3.41 (Unix) PHP/4.4.9 configured -- resuming normal operations
[Thu Aug 25 21:43:13 2011] [notice] Accept mutex: sysvsem (Default: sysvsem)Leave a comment:
-
Re: PHP Webserver on DM800? can it be done?
yep
copy the file where it tries to load it fromLeave a comment:
-
Re: PHP Webserver on DM800? can it be done?
so do you mean copy it to /srv/php/lib/php/extensions/no-debug-non-zts-20020429/usr/lib/ ?Leave a comment:
-
Re: PHP Webserver on DM800? can it be done?
in php.ini :
[PHP]
extension=/usr/lib/libcurl.so.4.1.1
and copy the file file to /srv/php/lib/php/extensions/no-debug-non-zts-20020429/usr/lib/libcurl.so.4.1.1Leave a comment:
-
Re: PHP Webserver on DM800? can it be done?
I created symbolic link of usr/
to
/media/hdd/srv/php/lib/php/extensions/no-debug-non-zts-20020429/
and changed the php.ini file
[PHP]
extension=usr/lib/libcurl.so.4.1.1
retarted apache and here is the log:
[Thu Aug 25 21:11:19 2011] [notice] SIGHUP received. Attempting to restart
PHP Warning: Unknown(): Invalid library (maybe not a PHP library) 'usr/lib/libcurl.so.4.1.1' in Unknown on line 0
[Thu Aug 25 21:11:20 2011] [notice] Apache/1.3.41 (Unix) PHP/4.4.9 configured -- resuming normal operations
[Thu Aug 25 21:11:20 2011] [notice] Accept mutex: sysvsem (Default: sysvsem)Leave a comment:
-
Re: PHP Webserver on DM800? can it be done?
you need to connect with telnet or ssh in order to easily be able to enter commands.
btw if the link doesn't work, you can copy the file...that's easierLeave a comment:
-
Re: PHP Webserver on DM800? can it be done?
it's trying to load curl... so we're one step forward
great
it doesn't find the file, in fact it searches '/srv/php/lib/php/extensions/no-debug-non-zts-20020429/usr/lib/libcurl.so.4.1.1' but we tell him /usr/lib/libcurl.so.4.1.1
can you paste me the php.ini please?
I think you didn't put the leading / in /usr/lib/libcurl.so.4.1.1
if the file is ok, we'll try a
ln -s /usr/lib/libcurl.so.4.1.1 /srv/php/lib/php/extensions/no-debug-non-zts-20020429/usr/lib/libcurl.so.4.1.1
to create a symbolic link to the file.
so you've got to
1) check the path in the php.ini : must be /usr/lib/libcurl.so.4.1.1 (with the leading /)
2) if file is ok and it still doesn't work : create the link with the ln command
I think we're near the solution
i tried this command in ftp software FlashFxp, command not recognised
it's trying to load curl... so we're one step forward
great
it doesn't find the file, in fact it searches '/srv/php/lib/php/extensions/no-debug-non-zts-20020429/usr/lib/libcurl.so.4.1.1' but we tell him /usr/lib/libcurl.so.4.1.1
can you paste me the php.ini please?
I think you didn't put the leading / in /usr/lib/libcurl.so.4.1.1
if the file is ok, we'll try a
ln -s /usr/lib/libcurl.so.4.1.1 /srv/php/lib/php/extensions/no-debug-non-zts-20020429/usr/lib/libcurl.so.4.1.1
to create a symbolic link to the file.
so you've got to
1) check the path in the php.ini : must be /usr/lib/libcurl.so.4.1.1 (with the leading /)
2) if file is ok and it still doesn't work : create the link with the ln command
I think we're near the solution
i tried this command in ftp software FlashFxp, command not recognised
EDIT: its OK, i Figured it out.Leave a comment:
-
Re: PHP Webserver on DM800? can it be done?
it's trying to load curl... so we're one step forward
great
PHP Warning: Unknown(): Unable to load dynamic library '/srv/php/lib/php/extensions/no-debug-non-zts-20020429/usr/lib/libcurl.so.4.1.1' - /srv/php/lib/php/extensions/no-debug-non-zts-20020429/usr/lib/libcurl.so.4.1.1: cannot open shared object file: No such file or directory in Unknown on line 0
can you paste me the php.ini please?
I think you didn't put the leading / in /usr/lib/libcurl.so.4.1.1
if the file is ok, we'll try a
ln -s /usr/lib/libcurl.so.4.1.1 /srv/php/lib/php/extensions/no-debug-non-zts-20020429/usr/lib/libcurl.so.4.1.1
to create a symbolic link to the file.
so you've got to
1) check the path in the php.ini : must be /usr/lib/libcurl.so.4.1.1 (with the leading /)
2) if file is ok and it still doesn't work : create the link with the ln command
I think we're near the solutionLeave a comment:
-
Re: PHP Webserver on DM800? can it be done?
[Thu Aug 25 18:15:32 2011] [warn] child process 7027 did not exit, sending another SIGHUP
[Thu Aug 25 18:15:32 2011] [warn] child process 7028 did not exit, sending another SIGHUP
[Thu Aug 25 18:15:32 2011] [warn] child process 7029 did not exit, sending another SIGHUP
[Thu Aug 25 18:15:32 2011] [warn] child process 7030 did not exit, sending another SIGHUP
[Thu Aug 25 18:15:32 2011] [warn] child process 7031 did not exit, sending another SIGHUP
[Thu Aug 25 18:15:34 2011] [notice] SIGHUP received. Attempting to restart
[Thu Aug 25 18:15:34 2011] [notice] Apache/1.3.41 (Unix) PHP/4.4.9 configured -- resuming normal operations
[Thu Aug 25 18:15:34 2011] [notice] Accept mutex: sysvsem (Default: sysvsem)
heres the error log when php.ini is spelt correctly:
[Thu Aug 25 18:22:24 2011] [warn] child process 7185 did not exit, sending another SIGHUP
[Thu Aug 25 18:22:24 2011] [warn] child process 7186 did not exit, sending another SIGHUP
[Thu Aug 25 18:22:24 2011] [warn] child process 7187 did not exit, sending another SIGHUP
[Thu Aug 25 18:22:24 2011] [warn] child process 7188 did not exit, sending another SIGHUP
[Thu Aug 25 18:22:24 2011] [warn] child process 7189 did not exit, sending another SIGHUP
[Thu Aug 25 18:22:26 2011] [notice] SIGHUP received. Attempting to restart
PHP Warning: Unknown(): Unable to load dynamic library '/srv/php/lib/php/extensions/no-debug-non-zts-20020429//usr/lib/libcurl.so.4.1.1' - /srv/php/lib/php/extensions/no-debug-non-zts-20020429//usr/lib/libcurl.so.4.1.1: cannot open shared object file: No such file or directory in Unknown on line 0
[Thu Aug 25 18:22:26 2011] [notice] Apache/1.3.41 (Unix) PHP/4.4.9 configured -- resuming normal operations
[Thu Aug 25 18:22:26 2011] [notice] Accept mutex: sysvsem (Default: sysvsem)
[Thu Aug 25 18:22:39 2011] [error] [client 192.168.1.64] File does not exist: /srv/apache/htdocs/favicon.ico
/srv/php/bin/php-config
#! /bin/sh
prefix="/srv/php"
version="4.4.9"
includedir="${prefix}/include/php"
includes="-I$includedir -I$includedir/main -I$includedir/TSRM -I$includedir/Zend"
ldflags=" -rdynamic"
libs="-lcrypt -lcrypt -lresolv -lm -ldl -lnsl -lcrypt -lcrypt "
extension_dir='/srv/php/lib/php/extensions/no-debug-non-zts-20020429'
case "$1" in
--prefix)
echo $prefix;;
--includes)
echo $includes;;
--ldflags)
echo $ldflags;;
--libs)
echo $libs;;
--extension-dir)
echo $extension_dir;;
--version)
echo $version;;
*)
echo "Usage: $0 [--prefix|--includes|--ldflags|--libs|--extension-dir|--version]"
exit 1;;
esac
exit 0
@whinpo
I just realized what you mean, I thought you meant rename php.ini
I added [PHP] begining of php.ini
and here is the error log:
[Thu Aug 25 18:57:14 2011] [warn] child process 9597 did not exit, sending another SIGHUP
[Thu Aug 25 18:57:14 2011] [warn] child process 9598 did not exit, sending another SIGHUP
[Thu Aug 25 18:57:14 2011] [warn] child process 9599 did not exit, sending another SIGHUP
[Thu Aug 25 18:57:14 2011] [warn] child process 9600 did not exit, sending another SIGHUP
[Thu Aug 25 18:57:14 2011] [warn] child process 9601 did not exit, sending another SIGHUP
[Thu Aug 25 18:57:16 2011] [notice] SIGHUP received. Attempting to restart
PHP Warning: Unknown(): Unable to load dynamic library '/srv/php/lib/php/extensions/no-debug-non-zts-20020429/usr/lib/libcurl.so.4.1.1' - /srv/php/lib/php/extensions/no-debug-non-zts-20020429/usr/lib/libcurl.so.4.1.1: cannot open shared object file: No such file or directory in Unknown on line 0
[Thu Aug 25 18:57:16 2011] [notice] Apache/1.3.41 (Unix) PHP/4.4.9 configured -- resuming normal operations
[Thu Aug 25 18:57:16 2011] [notice] Accept mutex: sysvsem (Default: sysvsem)
[Thu Aug 25 18:57:23 2011] [error] [client 192.168.1.64] File does not exist: /srv/apache/htdocs/favicon.ico
[Thu Aug 25 18:57:25 2011] [error] [client 192.168.1.64] File does not exist: /srv/apache/htdocs/favicon.ico
[Thu Aug 25 18:57:26 2011] [error] [client 192.168.1.64] File does not exist: /srv/apache/htdocs/favicon.ico
[Thu Aug 25 18:57:29 2011] [error] [client 192.168.1.64] File does not exist: /srv/apache/htdocs/favicon.icoLeave a comment:
-
Re: PHP Webserver on DM800? can it be done?
try to add [PHP] to the beginning of your php.ini file
and check the logs of the server when it startsLeave a comment:
Leave a comment: