The Community Forums

Interact with an entire community of cPanel & WHM users!
  1. This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn More.

phpsuexec Wont Work. PLEASE HELP!!!

Discussion in 'General Discussion' started by nitromax, Jul 19, 2005.

  1. nitromax

    nitromax Well-Known Member

    Joined:
    Feb 12, 2002
    Messages:
    189
    Likes Received:
    0
    Trophy Points:
    16
    I am trying to enable phpsuexec on our server, but when I run /scripts/easyapache and use setting #6 as I always do, I get the following output, and phpsuexec doesnot work:

    01:32:36 URL:http://layer1.cpanel.net/buildapache/1/mod_ssl-2.8.22-1.3.33.tar.gz [754606/754606] -> "mod_ssl-2.8.22-1.3.33.tar.gz" [1]
    Untarring modssl....
    patching file pkg.sslmod/libssl.module
    configure mod_ssl-2.8.22-1.3.33...(--with-apache=../apache_1.3.33 --with-ssl=/usr --enable-module=expires --enable-shared=expires --add-module=../mod_frontpage.c --enable-suexecphp --enable-module=rewrite --enable-shared=rewrite --enable-suexec --suexec-logfile=/usr/local/apache/logs/suexec_log --suexec-caller=nobody --suexec-uidmin=100 --suexec-gidmin=100 --suexec-docroot=/ --suexec-userdir=public_html)................Done
    ** failed. The below error output from the compilation
    ** test will give you an idea what is failing. Note that
    ** Apache requires an ANSI C Compiler, such as gcc.

    ======== Error Output for sanity check ========
    cd ..; gcc -DLINUX=22 -DHAVE_SET_DUMPABLE -I/usr/include/db1 -DMOD_SSL=208122 -DUSE_HSREGEX -DEAPI `./apaci` -L/usr/lib -o helpers/dummy helpers/dummy.c -lm -lndbm -lssl -lcrypto -lexpat -ldl
    /usr/lib/libssl.so: undefined reference to `sk_X509_NAME_new_null'
    /usr/lib/libssl.so: undefined reference to `sk_X509_NAME_set'
    /usr/lib/libssl.so: undefined reference to `sk_X509_NAME_pop_free'
    /usr/lib/libssl.so: undefined reference to `sk_X509_NAME_value'
    /usr/lib/libssl.so: undefined reference to `sk_X509_NAME_push'
    /usr/lib/libssl.so: undefined reference to `sk_X509_NAME_num'
    /usr/lib/libssl.so: undefined reference to `sk_X509_pop_free'
    /usr/lib/libssl.so: undefined reference to `sk_X509_free'
    /usr/lib/libssl.so: undefined reference to `sk_X509_NAME_dup'
    /usr/lib/libssl.so: undefined reference to `sk_X509_value'
    /usr/lib/libssl.so: undefined reference to `sk_X509_num'
    /usr/lib/libssl.so: undefined reference to `sk_X509_new_null'
    /usr/lib/libssl.so: undefined reference to `sk_X509_shift'
    /usr/lib/libssl.so: undefined reference to `sk_X509_NAME_set_cmp_func'
    /usr/lib/libssl.so: undefined reference to `sk_X509_push'
    /usr/lib/libssl.so: undefined reference to `sk_X509_NAME_free'
    /usr/lib/libssl.so: undefined reference to `sk_X509_NAME_new'
    /usr/lib/libssl.so: undefined reference to `sk_X509_NAME_find'
    /usr/lib/libssl.so: undefined reference to `HMAC_cleanup'
    collect2: ld returned 1 exit status
    make: *** [dummy] Error 1
    ============= End of Error Report =============

    Aborting!
    ./configure:Error: APACI failed
    configure apache_1.3.33...(--enable-module=ssl --enable-module=expires --enable-shared=expires --add-module=../mod_frontpage.c --enable-suexecphp --enable-module=rewrite --enable-shared=rewrite --enable-suexec --suexec-logfile=/usr/local/apache/logs/suexec_log --suexec-caller=nobody --suexec-uidmin=100 --suexec-gidmin=100 --suexec-docroot=/ --suexec-userdir=public_html).............Done
    ** failed. The below error output from the compilation
    ** test will give you an idea what is failing. Note that
    ** Apache requires an ANSI C Compiler, such as gcc.

    ======== Error Output for sanity check ========
    cd ..; gcc -DLINUX=22 -DHAVE_SET_DUMPABLE -I/usr/include/db1 -DMOD_SSL=208122 -DUSE_HSREGEX -DEAPI `./apaci` -L/usr/lib -o helpers/dummy helpers/dummy.c -lm -lndbm -lssl -lcrypto -lexpat -ldl
    /usr/lib/libssl.so: undefined reference to `sk_X509_NAME_new_null'
    /usr/lib/libssl.so: undefined reference to `sk_X509_NAME_set'
    /usr/lib/libssl.so: undefined reference to `sk_X509_NAME_pop_free'
    /usr/lib/libssl.so: undefined reference to `sk_X509_NAME_value'
    /usr/lib/libssl.so: undefined reference to `sk_X509_NAME_push'
    /usr/lib/libssl.so: undefined reference to `sk_X509_NAME_num'
    /usr/lib/libssl.so: undefined reference to `sk_X509_pop_free'
    /usr/lib/libssl.so: undefined reference to `sk_X509_free'
    /usr/lib/libssl.so: undefined reference to `sk_X509_NAME_dup'
    /usr/lib/libssl.so: undefined reference to `sk_X509_value'
    /usr/lib/libssl.so: undefined reference to `sk_X509_num'
    /usr/lib/libssl.so: undefined reference to `sk_X509_new_null'
    /usr/lib/libssl.so: undefined reference to `sk_X509_shift'
    /usr/lib/libssl.so: undefined reference to `sk_X509_NAME_set_cmp_func'
    /usr/lib/libssl.so: undefined reference to `sk_X509_push'
    /usr/lib/libssl.so: undefined reference to `sk_X509_NAME_free'
    /usr/lib/libssl.so: undefined reference to `sk_X509_NAME_new'
    /usr/lib/libssl.so: undefined reference to `sk_X509_NAME_find'
    /usr/lib/libssl.so: undefined reference to `HMAC_cleanup'
    collect2: ld returned 1 exit status
    make: *** [dummy] Error 1
    ============= End of Error Report =============

    Aborting!




    Does anyone know how I fix this and get phpsuexec to work?
     
  2. chirpy

    chirpy Well-Known Member

    Joined:
    Jun 15, 2002
    Messages:
    13,475
    Likes Received:
    20
    Trophy Points:
    38
    Location:
    Go on, have a guess
    You mentioned in your other post about installing a newer openssl - this may well be the issue at hand. What you could do is to download and compile the older openssl (i.e. run "make" but not "make install") but do not install it) and then modify the appropriate scripts in /home/cpapachebuild to use that older compiled version rather than the live one. Might not work, but might.
     
  3. nitromax

    nitromax Well-Known Member

    Joined:
    Feb 12, 2002
    Messages:
    189
    Likes Received:
    0
    Trophy Points:
    16
    Thanks for your suggestion!

    It turns out, however, that upon doing a "whereis openssl", when checking the 2 instances where openssl resides that they were 2 different versions. So I removed and symlinked the older version to the newest one and the errors mentioned above dissapeard.

    Still having other errors now, but making progress... Now getting this:


    make -j 1 apache_1.3.33.................................Done
    make[4]: *** [ssl_engine_pphrase.o] Error 1
    make[3]: *** [all] Error 1
    make[2]: *** [subdirs] Error 1
    make[1]: *** [build-std] Error 2
    make: *** [build] Error 2
    make apache_1.3.33...(install)....Done
    make[5]: *** [ssl_engine_pphrase.o] Error 1
    make[4]: *** [all] Error 1
    make[3]: *** [subdirs] Error 1
    make[2]: *** [build-std] Error 2
    make[1]: *** [build] Error 2
    make: *** [install-all] Error 2


    I might mention that I upgraded to openssl 0.9.8 which was released on July 5th I believe. I'm wondering if I need to update or reinstall the openssl engine, which as far as I know has not been updated?
     
    #3 nitromax, Jul 26, 2005
    Last edited: Jul 26, 2005
Loading...

Share This Page