1. Please take a little time for this simple survey! Thank you for participating!
    Dismiss Notice
  2. Dear Pleskians, please read this carefully! New attachments and other rules Thank you!
    Dismiss Notice
  3. Dear Pleskians, I really hope that you will share your opinion in this Special topic for chatter about Plesk in the Clouds. Thank you!
    Dismiss Notice

plesk 7.5.4 php mod

Discussion in 'Plesk for Linux - 8.x and Older' started by bob00010, Aug 29, 2005.

  1. bob00010

    bob00010 Guest

    I'm having trouble getting the php5 module to work correctly with plesk 7.5.4

    I'm not a linux expert I'm still a newbie I'm guessing this is why I haven't seen this in the forum

    could someone give me the correct ./configure parameters

    ./configure --without-sqlite --with-apxs=/usr/local/psa/admin/bin/apxs --with-xmlrpc --libexecdir=/usr/local/psa/admin/libexec --disable-sqlite --sbindir=/usr/local/psa/admin/sbin --bindir=/usr/local/psa/admin/bin --includedir=/usr/local/psa/admin/include --disable-libtool-lock --libdir=/usr/local/psa/lib

    when I try to start the psa service I get this error
    [root@www php-5.1.0RC1]# /etc/init.d/psa start
    Starting psa-spamassassin service: [ OK ]
    Syntax error on line 231 of /usr/local/psa/admin/conf/httpsd.conf:
    Cannot load /usr/local/psa/admin/libexec/libphp5.so into server: /usr/local/psa/admin/libexec/libphp5.so: undefined symbol: top_module
    /usr/local/psa/admin/bin/httpsdctl start: httpd could not be started
    Starting Plesk: [FAILED]
    [root@www php-5.1.0RC1]#

    when I check the file there are more undefined symbols

    [root@www php-5.1.0RC1]# ldd -r /usr/local/psa/admin/libexec/libphp5.so
    libcrypt.so.1 => /lib/libcrypt.so.1 (0x0087f000)
    libresolv.so.2 => /lib/libresolv.so.2 (0x003fc000)
    libm.so.6 => /lib/tls/libm.so.6 (0x00a35000)
    libdl.so.2 => /lib/libdl.so.2 (0x005f4000)
    libnsl.so.1 => /lib/libnsl.so.1 (0x00d00000)
    libxml2.so.2 => /usr/lib/libxml2.so.2 (0x0040e000)
    libz.so.1 => /usr/lib/libz.so.1 (0x0050e000)
    libc.so.6 => /lib/tls/libc.so.6 (0x005f7000)
    /lib/ld-linux.so.2 => /lib/ld-linux.so.2 (0x009f3000)
    undefined symbol: ap_rwrite (/usr/local/psa/admin/libexec/libphp5.so)
    undefined symbol: ap_rflush (/usr/local/psa/admin/libexec/libphp5.so)
    undefined symbol: ap_should_client_block (/usr/local/psa/admin/libexec/libphp5.so)
    undefined symbol: ap_signal (/usr/local/psa/admin/libexec/libphp5.so)
    undefined symbol: ap_hard_timeout (/usr/local/psa/admin/libexec/libphp5.so)
    undefined symbol: ap_get_client_block (/usr/local/psa/admin/libexec/libphp5.so)
    undefined symbol: ap_reset_timeout (/usr/local/psa/admin/libexec/libphp5.so)
    undefined symbol: ap_table_get (/usr/local/psa/admin/libexec/libphp5.so)
    undefined symbol: ap_table_set (/usr/local/psa/admin/libexec/libphp5.so)
    undefined symbol: ap_table_add (/usr/local/psa/admin/libexec/libphp5.so)
    undefined symbol: ap_pstrdup (/usr/local/psa/admin/libexec/libphp5.so)
    undefined symbol: ap_send_http_header (/usr/local/psa/admin/libexec/libphp5.so)
    undefined symbol: ap_send_error_response (/usr/local/psa/admin/libexec/libphp5.so)
    undefined symbol: ap_log_error (/usr/local/psa/admin/libexec/libphp5.so)
    undefined symbol: ap_block_alarms (/usr/local/psa/admin/libexec/libphp5.so)
    undefined symbol: ap_register_cleanup (/usr/local/psa/admin/libexec/libphp5.so)
    undefined symbol: ap_unblock_alarms (/usr/local/psa/admin/libexec/libphp5.so)
    undefined symbol: ap_user_id (/usr/local/psa/admin/libexec/libphp5.so)
    undefined symbol: ap_group_id (/usr/local/psa/admin/libexec/libphp5.so)
    undefined symbol: ap_auth_type (/usr/local/psa/admin/libexec/libphp5.so)
    undefined symbol: ap_getword (/usr/local/psa/admin/libexec/libphp5.so)
    undefined symbol: ap_uudecode (/usr/local/psa/admin/libexec/libphp5.so)
    undefined symbol: ap_getword_nulls_nc (/usr/local/psa/admin/libexec/libphp5.so)
    undefined symbol: ap_setup_client_block (/usr/local/psa/admin/libexec/libphp5.so)
    undefined symbol: ap_add_common_vars (/usr/local/psa/admin/libexec/libphp5.so)
    undefined symbol: ap_add_cgi_vars (/usr/local/psa/admin/libexec/libphp5.so)
    undefined symbol: ap_kill_timeout (/usr/local/psa/admin/libexec/libphp5.so)
    undefined symbol: ap_update_mtime (/usr/local/psa/admin/libexec/libphp5.so)
    undefined symbol: ap_set_last_modified (/usr/local/psa/admin/libexec/libphp5.so)
    undefined symbol: ap_set_etag (/usr/local/psa/admin/libexec/libphp5.so)
    undefined symbol: ap_add_version_component (/usr/local/psa/admin/libexec/libphp5.so)
    undefined symbol: ap_child_terminate (/usr/local/psa/admin/libexec/libphp5.so)
    undefined symbol: ap_get_server_version (/usr/local/psa/admin/libexec/libphp5.so)
    undefined symbol: ap_user_name (/usr/local/psa/admin/libexec/libphp5.so)
    undefined symbol: ap_max_requests_per_child (/usr/local/psa/admin/libexec/libphp5.so)
    undefined symbol: ap_server_root (/usr/local/psa/admin/libexec/libphp5.so)
    undefined symbol: top_module (/usr/local/psa/admin/libexec/libphp5.so)
    undefined symbol: ap_sub_req_lookup_uri (/usr/local/psa/admin/libexec/libphp5.so)
    undefined symbol: ap_destroy_sub_req (/usr/local/psa/admin/libexec/libphp5.so)
    undefined symbol: ap_run_sub_req (/usr/local/psa/admin/libexec/libphp5.so)
    undefined symbol: ap_pstrndup (/usr/local/psa/admin/libexec/libphp5.so)
    undefined symbol: ap_table_setn (/usr/local/psa/admin/libexec/libphp5.so)
    undefined symbol: ap_loaded_modules (/usr/local/psa/admin/libexec/libphp5.so)
    [root@www php-5.1.0RC1]#

    Any help would be greatly appreciated
  2. hardweb

    hardweb Guest

    You compiled PHP against the admin server libraries, which is incorrect. That's the problem.
  3. faris

    faris Guest

    There are two versions of Apache (and PHP) on a Plesk box.

    One is used exclusively for the control panel itself. The other use used by websites.

    So you need to be careful when compiling your own to make sure it is all linked to the "user" one rarher than the "admin" one.

    The /usr/local/psa one is the "admin" one.

  4. bob00010

    bob00010 Guest

    I am trying to link it to the admin one, since the new plesk versions control panel is programmed in php5 to increase speed
    after the upgrade I have been unable to access the plesk control panel because it needs the php5 mod installed for the plesk service to run

    this is why I am trying to compile for the admin one

    I changed the libdir to every possible one I could think of and I still have the same problem
  5. dm__@

    dm__@ Guest

    It would be impossible to use adimn's apache php: looks it heavily patched, fixed, stripped down and so on.
  6. bob00010

    bob00010 Guest

    I'm not trying to use it, I'm trying to install php5 for the admin one because the plesk update didn't install the php5 mod so I am trying to do that so I can access the plesk control panel
  7. dm__@

    dm__@ Guest

    Admin interface uses internal PHP, statically linked with apache.
  8. Spyder

    Spyder Regular Pleskian

    Jan 13, 2003
    Likes Received:
    And in FreeBSD the servers are in..

    /usr/local/psa/admin/bin - httpd and php
    /usr/local/psa/admin/conf - conf files

    - User

    /usr/local/psa/apache/bin - httpd and php
    /usr/local/psa/apache/conf - conf files