Welcome!

Welcome to Satlover forums, full of great people, ideas and excitement.

Please register if you would like to take part. link..

Register Now

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
 
  • Time
  • Show
Clear All
new posts

  • whinpo
    replied
    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

    Leave a comment:


  • Bazinga
    replied
    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.1

    Leave a comment:


  • whinpo
    replied
    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 informed

    Leave a comment:


  • Bazinga
    replied
    Re: PHP Webserver on DM800? can it be done?

    Originally posted by whinpo
    try to put yourself in the same situation as when we had the msg :

    and then copy the file in the /srv/php/lib/php/extensions/no-debug-non-zts-20020429/usr/lib/ directory
    thats what I already done, I copied 'libcurl.so.4.1.1' file to

    srv/php/lib/php/extensions/no-debug-non-zts-20020429/usr/lib/

    Leave a comment:


  • whinpo
    replied
    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 0
    and then copy the file in the /srv/php/lib/php/extensions/no-debug-non-zts-20020429/usr/lib/ directory

    Leave a comment:


  • Bazinga
    replied
    Re: PHP Webserver on DM800? can it be done?

    Originally posted by whinpo
    yep
    copy the file where it tries to load it from
    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:


  • whinpo
    replied
    Re: PHP Webserver on DM800? can it be done?

    yep
    copy the file where it tries to load it from

    Leave a comment:


  • Bazinga
    replied
    Re: PHP Webserver on DM800? can it be done?

    Originally posted by whinpo
    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.1
    libcurl.so.4.1.1 is a file not a folder

    so do you mean copy it to /srv/php/lib/php/extensions/no-debug-non-zts-20020429/usr/lib/ ?

    Leave a comment:


  • whinpo
    replied
    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.1

    Leave a comment:


  • Bazinga
    replied
    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
    (the commands you posted did not work)

    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:


  • whinpo
    replied
    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 easier

    Leave a comment:


  • Bazinga
    replied
    Re: PHP Webserver on DM800? can it be done?

    Originally posted by whinpo
    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
    How do you make a symbolic link?

    i tried this command in ftp software FlashFxp, command not recognised

    Originally posted by whinpo
    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
    How you do make a symbolic link?

    i tried this command in ftp software FlashFxp, command not recognised

    EDIT: its OK, i Figured it out.

    Leave a comment:


  • whinpo
    replied
    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
    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

    Leave a comment:


  • Bazinga
    replied
    Re: PHP Webserver on DM800? can it be done?

    Originally posted by whinpo
    try to add [PHP] to the beginning of your php.ini file

    and check the logs of the server when it starts
    this from error_log

    [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)
    access_log did not produce any

    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
    i think this might be relavent:

    /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
    I think I know what to do but I wont risk it, I will wait for expert advice.

    @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.ico

    Leave a comment:


  • whinpo
    replied
    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 starts

    Leave a comment:

Working...