Install php 7.4 on cwp



  • @sandeep Good!

    Any forecasts? We're looking forward to it! Ha ha!



  • @sandeep Very very good news !



  • @JosePP released



  • @sandeep said in Install php 7.4 on cwp:

    @JosePP released

    Hi @sandeep,

    The update to PHP-FPM 7.4.x not work.

    Was also reported by another user in the official forum at this link:

    http://forum.centos-webpanel.com/index.php?topic=9192.0

    Thanks in advance for the support.



  • yes working on it right now



  • @sandeep said in Install php 7.4 on cwp:

    yes working on it right now

    Thanks for the support, you are the Number ONE !



  • @Automata actually some server having package config missing which are present in our test server, probably new php is released today



  • @sandeep Very good, congratulations for the work 🙂

    I am testing here and I identified 3 things that gave problem:

    • The oniguruma and oniguruma-devel packages were missing in the pre-installation, without it the installation ends at the time of the mbstring extension compilation.
    • At the end of the installation, the Ioncube.so files were missing in the /usr/local/ioncube/...
    • I realized that after reconfiguring the WebServer to use PHP 7.4, it did not assign the correct PHP socket variable in Apache files, and looking at the templates I saw that this line is an internal CWP variable, but I was able to manually change the settings files and use the correct Socket without problems.

    In the 2 first cases I installed it manually and it worked without problems and the 3 case i need some help 😞



  • @sandeep said in Install php 7.4 on cwp:

    @Automata actually some server having package config missing which are present in our test server, probably new php is released today

    Hi @sandeep ,

    I have installed latest CWP PRO update from CWP PRO v0.9.8.990 to CWP PRO v0.9.8.991 and the update to PHP-FPM v7.4.x not work.

    Please help to solve this problem.

    Thanks in advance for the support.



  • @Automata it is fixed already kindly resett he php 7.4 options
    alt text

    for ioncube its still in beta user need to manually download it and assign the extension.



  • @gpl-one update your server and try,



  • @sandeep for me not work i have deleted PHP-FPM 7.3 and i have installed and resetted the php 7.4 options.

    I have this error:

    No package 'oniguruma' found

    Consider adjusting the PKG_CONFIG_PATH environment variable if you
    installed software in a non-standard prefix.

    Alternatively, you may set the environment variables ONIG_CFLAGS
    and ONIG_LIBS to avoid the need to call pkg-config.
    See the pkg-config man page for more details.
    make: *** No targets specified and no makefile found. Stop.
    make: *** No rule to make target `install'. Stop.
    mkdir: cannot create directory '/opt/alt/php-fpm74/usr/var/sockets/': No such file or directory
    mkdir: cannot create directory '/opt/alt/php-fpm74/usr/etc/php-fpm.d/': No such file or directory
    mkdir: cannot create directory '/opt/alt/php-fpm74/usr/etc/php-fpm.d/users/': No such file or directory
    /usr/local/src/php-fpm-7.4.sh: line 98: /opt/alt/php-fpm74/usr/etc/php-fpm.d/users.conf: No such file or directory
    /usr/local/src/php-fpm-7.4.sh: line 99: /opt/alt/php-fpm74/usr/etc/php-fpm.conf: No such file or directory
    /usr/local/src/php-fpm-7.4.sh: line 101: /opt/alt/php-fpm74/usr/etc/php-fpm.d/cwpsvc.conf: No such file or directory
    cp: cannot stat 'sapi/fpm/php-fpm.service': No such file or directory
    sed: can't read /usr/lib/systemd/system/php-fpm74.service: No such file or directory
    sed: can't read /usr/lib/systemd/system/php-fpm74.service: No such file or directory
    Failed to execute operation: No such file or directory
    shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
    shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
    Skipping as php build failed
    shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
    Skipping as php build failed
    shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
    Skipping as php build failed
    exe:/opt/alt/php-fpm74/usr/sbin/php-fpm
    Redirecting to /bin/systemctl restart httpd.service

    Build Completed
    ###################

    Error:Can't add notification!

    screenshoot.png

    Please help me and thanks in advance for the support.



  • I have exactly the same problem, I can't get it installed.



  • @Automata said in Install php 7.4 on cwp:

    PKG_CONFIG_PATH

    @JosePP said in Install php 7.4 on cwp:

    I have exactly the same problem, I can't get it installed.

    yum list oniguruma oniguruma-devel
    
    cat /etc/yum.repos.d/epel.repo
    

    and check if the [epel] repo is enabled.

    whats the output for the commands ?



  • @sandeep

    yum list oniguruma oniguruma-devel

    Loaded plugins: fastestmirror
    Loading mirror speeds from cached hostfile

    cat /etc/yum.repos.d/epel.repo

    [epel]
    name=Extra Packages for Enterprise Linux 7 - $basearch
    #baseurl=http://download.fedoraproject.org/pub/epel/7/$basearch
    metalink=http://mirrors.fedoraproject.org/metalink?repo=epel-7&arch=$basearch
    failovermethod=priority
    enabled=1
    gpgcheck=1
    gpgkey=file:///etc/pki/rpm-gpg/RPM-GPG-KEY-EPEL-7

    [epel-debuginfo]
    name=Extra Packages for Enterprise Linux 7 - $basearch - Debug
    #baseurl=http://download.fedoraproject.org/pub/epel/7/$basearch/debug
    metalink=http://mirrors.fedoraproject.org/metalink?repo=epel-debug-7&arch=$basearch
    failovermethod=priority
    enabled=0
    gpgkey=file:///etc/pki/rpm-gpg/RPM-GPG-KEY-EPEL-7
    gpgcheck=1

    [epel-source]
    name=Extra Packages for Enterprise Linux 7 - $basearch - Source
    #baseurl=http://download.fedoraproject.org/pub/epel/7/SRPMS
    metalink=http://mirrors.fedoraproject.org/metalink?repo=epel-source-7&arch=$basearch
    failovermethod=priority
    enabled=0
    gpgkey=file:///etc/pki/rpm-gpg/RPM-GPG-KEY-EPEL-7
    gpgcheck=1



  • @JosePP thanks for the info

    export PKG_CONFIG_PATH=/usr/local/lib/pkgconfig:/usr/local/lib64/pkgconfig
    
    yum --enablerepo="epel" install  libmcrypt-devel oniguruma oniguruma-devel libtidy-devel
    

    run this commands and try to rebuild php 7.4



  • fixed no new version needed.





  • @JosePP great to know it is now installed, I've reported to head developer as some scripts are not executing from the gui selections.
    And he need to do changes as php 7.4 is different from other php versions.



  • @sandeep Thanks, yesterday I tested and see an error in a PHP file.

    But then I recompiled and it worked normally, only with that problem that I mentioned that the ioncube * .so was not being saved in the folder.


Log in to reply
 

Recent Topics