Announcement

Collapse
No announcement yet.

other updating problems

Collapse
This topic has been answered.
X
X
 
  • Filter
  • Time
  • Show
Clear All
new posts

  • other updating problems

    Once again got the message that exim couldn't be built, and so I did the

    Code:
    da build remove_old_local libiconv
    but that didn't work. First I had to

    Code:
    da build remove_items
    Then I tried

    Code:
    da build all
    but that failed on nginx, because modsecurity wasn't installed, so I installed that first.

    When 'da build all' came to build php I got the complains

    Code:
    checking for PCRE headers location... configure: error: Could not find pcre.h in /usr/local


    For some reason da build pcre doesn't do anything. Could this be interferance from CloudLinux? I reinstalled pcre(2) with yum. But this wasn't good enough.

    Code:
    configure: error: Could not find libpcre.(a|so) in /usr/local
    checking for PCRE headers location... /usr/local
    checking for PCRE library location... install_php: failed to compile '/usr/local/directadmin/custombuild/cache/php-7.2.34.tar.gz' inside '/usr/local/directadmin/custombuild/tmp/tmp.vltNX9YTV0.php-7.2.34.tar.gz'
    And so PJP isn't getting built. The version that was installed already can't run, because

    Code:
    php: error while loading shared libraries: libjpeg.so.9: cannot open shared object file: No such file or directory
    da build restore_old_local libiconv doens't help either.

    I don't know what to do anymore. I've been at this for hours now.​
  • Answer selected by bogdan.sh at 03-26-2024, 08:15 AM.

    It was all resolved after long sessions of

    Code:
    package-cleanup --dupes | tail -n +3 | sort --version-sort | awk 'NR % 2 {print "rpm -e --justdb --nodeps " $1 } !(NR % 2) {match($0, "-[0-9]");print "yum -y reinstall --enablerepo=cloudlinux* " substr($0,0,RSTART-1)}' | sh

    and

    Code:
    package-cleanup --cleandupes
    Last edited by bogdan.sh; 03-26-2024, 08:15 AM.

    Comment


    • #2
      The more I search, the more issue seems to be related to DirectAdmin. Just few links which seems to be related: https://forum.directadmin.com/thread...-update.70248/ and https://forum.directadmin.com/thread...min-php.62552/ .

      At first please try building pcre with custombuild.

      Comment


      • #3
        Can't build pcre with custombuild.

        Code:
        # da build pcre
        +-----------------------------------------------------------+
        | DirectAdmin WebServices Installer |
        | Written by Martynas Bendorius and DirectAdmin |
        | Version: 2.0.0 |
        +-----------------------------------------------------------+
        | To build everything run: |
        | da build all |
        | |
        | NOTE: Command all will compile everything as it is set |
        | in the options.conf file, please take a look at |
        | "da build options"! |
        +-----------------------------------------------------------+
        | Install/update server components: |
        | da build apache |
        | da build awstats |
        | da build csf |
        | da build clamav |
        | da build composer |
        | da build dovecot |
        | da build exim |
        | da build imagemagick |
        | da build imapsync |
        | da build jailshell |
        | da build lego |
        | da build libmodsecurity |
        | da build litespeed |
        | da build mod_lsapi |
        | da build mod_proctitle |
        | da build mod_aclr2 |
        | da build mod_htscanner2 |
        | da build mod_fcgid |
        | da build modsecurity |
        | da build modsecurity_rules |
        | da build mysql |
        | da build netdata |
        | da build nginx |
        | da build nginx_apache |
        | da build openlitespeed |
        | da build pigeonhole |
        | da build php |
        | da build proftpd |
        | da build pureftpd |
        | da build redis |
        | da build rspamd |
        | da build spamassassin |
        | da build unit |
        | da build webalizer |
        | da build wp |
        +-----------------------------------------------------------+
        | Install/update PHP extensions: |
        | da build php_gmp |
        | da build php_igbinary |
        | da build php_ioncube |
        | da build php_imagick |
        | da build php_imap |
        | da build php_ldap |
        | da build php_opcache |
        | da build php_phalcon |
        | da build php_psr |
        | da build php_redis |
        | da build php_readline |
        | da build php_snuffleupagus |
        | da build php_suhosin |
        | da build php_xmlrpc |
        | da build php_zend |
        +-----------------------------------------------------------+
        | Components configuration options: |
        | da build exim_conf |
        | da build dovecot_conf |
        | da build blockcracking |
        | da build easy_spam_fighter |
        | da build php_ini |
        | da build rewrite_confs |
        | da build secure_php |
        | da build spamassassin_cron |
        | da build litespeed_license |
        | da build litespeed_license_migrate |
        +-----------------------------------------------------------+
        | Install/update web applications: |
        | da build phpmyadmin |
        | da build roundcube |
        | da build squirrelmail |
        +-----------------------------------------------------------+
        | CustomBuild related options/functions: |
        | da build create_options |
        | da build cron |
        | da build opt_help |
        | da build options_nobold |
        | da build list_removals |
        | da build remove_items |
        | da build set |
        | da build update_da |
        | da build update_versions |
        | da build update_webapps |
        | da build used_configs |
        | da build versions |
        +-----------------------------------------------------------+
        | Remove old build data: |
        | da build clean |
        | da build clean_old_webapps |
        +-----------------------------------------------------------+
        | Build everything what is set in the options.conf file: |
        | da build all |
        +-----------------------------------------------------------+
        | Build all PHP extensions set set in the php_extensions.conf file: |
        | da build php_extensions |
        +-----------------------------------------------------------+
        | Recommended for experienced users only (!): |
        | da build php_htscanner2 php_release |
        | da build set_service service ON|OFF|delete |
        +-----------------------------------------------------------+
        | You can pass a 2nd argument to automate the input: |
        | da build <option> d : do the default action |
        | da build <option> y : answer yes to all questions |
        | da build <option> n : answer no to all questions |
        +-----------------------------------------------------------+​
        Seems it's not in custombuild anymore. Also on out non-CloudLinux servers I can't build pcre with custombuild.

        There's no customization present for anything php related.

        /usr/local/php72/lib/php.conf.d/ has 2 files
        10-directadmin.ini
        Code:
        extension_dir=/usr/local/php72/lib/php/extensions/no-debug-non-zts-20170718
        zend_extension=/usr/local/php72/lib/php/extensions/no-debug-non-zts-20170718/opcache.so
        opcache.memory_consumption=128
        opcache.interned_strings_buffer=8
        opcache.max_accelerated_files=4000
        opcache.revalidate_freq=0
        opcache.enable_cli=1
        opcache.validate_permission=1
        opcache.use_cwd=1
        opcache.revalidate_path=1
        opcache.enable_file_override=1
        ​and
        50-webapps.ini
        Code:
        [PATH=/var/www/html]
        session.save_path=/var/www/tmp
        upload_tmp_dir=/var/www/tmp
        disable_functions=exec,system,passthru,shell_exec, proc_close,proc_open,dl,popen,show_source,posix_ki ll,posix_mkfifo,posix_getpwuid,posix_setpgid,posix _setsid,posix_setuid,posix_setgid,posix_seteuid,po six_setegid,posix_uname
        ​I don't see how these could interfere.

        libjepeg is installed
        Code:
        # whereis libjpeg
        libjpeg: /usr/lib64/libjpeg.so​

        Comment


        • #4
          Sorry for sending you to other location, but it still seems to be more DirectAdmin related. Here is the same case from the last week: https://forum.directadmin.com/thread...-update.70248/
          And the very last post contains a solution/link to clean-up the old libraries.

          Let me know how it goes.

          Comment


          • #5
            It was all resolved after long sessions of

            Code:
            package-cleanup --dupes | tail -n +3 | sort --version-sort | awk 'NR % 2 {print "rpm -e --justdb --nodeps " $1 } !(NR % 2) {match($0, "-[0-9]");print "yum -y reinstall --enablerepo=cloudlinux* " substr($0,0,RSTART-1)}' | sh

            and

            Code:
            package-cleanup --cleandupes
            Last edited by bogdan.sh; 03-26-2024, 08:15 AM.

            Comment


            • #6
              Interesting, since the original issue was not directly related to the duplicated packages that we have an article for. How did you found the solution?

              Comment


              • #7
                I contacted support.

                Comment

                Working...
                X