Learn about Centmin Mod LEMP Stack today
Become a Member

Install Alias commands don't work on Alma Linux 9 new installation from OVH

Discussion in 'Install & Upgrades or Pre-Install Questions' started by pamamolf, Apr 12, 2025.

  1. pamamolf

    pamamolf Premium Member Premium Member

    4,100
    428
    83
    May 31, 2014
    Ratings:
    +837
    Local Time:
    12:07 PM
    Nginx-1.26.x
    MariaDB 10.6.x
    Hi,

    I tried on OVH new server RISE1 using the basic Alma Linux 9 and after the centiminmod latest beta installation the following:


    I enabled the root user using:

    Code:
    sudo su -
    Then i enable direct password root login as i was not able to connect as root.

    Then i tried to use:

    Code:
    ngxrestart
    nprestart
    mysqlrestart
    and i got for all something like:

    Code:
    /usr/bin/mysqlstop: line 1: service: command not found
    Code:
    [root@server ~]# echo $SHELL
    /bin/bash
    Code:
    [root@server ~]# alias
    alias cp='cp -i'
    alias egrep='egrep --color=auto'
    alias fgrep='fgrep --color=auto'
    alias grep='grep --color=auto'
    alias l.='ls -d .* --color=auto'
    alias ll='ls -l --color=auto'
    alias ls='ls --color=auto'
    alias mv='mv -i'
    alias rm='rm -i'
    alias xzegrep='xzegrep --color=auto'
    alias xzfgrep='xzfgrep --color=auto'
    alias xzgrep='xzgrep --color=auto'
    alias zegrep='zegrep --color=auto'
    alias zfgrep='zfgrep --color=auto'
    alias zgrep='zgrep --color=auto'
    Thanks in advance !
     
    Last edited: Apr 12, 2025
  2. pamamolf

    pamamolf Premium Member Premium Member

    4,100
    428
    83
    May 31, 2014
    Ratings:
    +837
    Local Time:
    12:07 PM
    Nginx-1.26.x
    MariaDB 10.6.x
    I just reinstall using Alamalinux 8 and all are working as expected.

    So it seems a specific issue with Alma Linux 9.
     
  3. Jon Snow

    Jon Snow Active Member

    854
    172
    43
    Jun 30, 2017
    Ratings:
    +260
    Local Time:
    6:07 AM
    Nginx 1.13.9
    MariaDB 10.1.31
    I've been using nprestart on Alma9 without issue
    Code (Text):
    nprestart
    Redirecting to /bin/systemctl restart nginx.service
    Restarting php-fpm (via systemctl) [  OK  ]

    I'm logged in as root.
     
  4. pamamolf

    pamamolf Premium Member Premium Member

    4,100
    428
    83
    May 31, 2014
    Ratings:
    +837
    Local Time:
    12:07 PM
    Nginx-1.26.x
    MariaDB 10.6.x
    Me too on another server on OVH i have Alma Linux 9 and alias work as expected :)

    I don't know now why they don't work on this new build. Maybe a new Alma Linux image?
     
    Last edited: Apr 12, 2025
  5. eva2000

    eva2000 Administrator Staff Member

    55,164
    12,249
    113
    May 24, 2014
    Brisbane, Australia
    Ratings:
    +18,825
    Local Time:
    7:07 PM
    Nginx 1.27.x
    MariaDB 10.x/11.4+
    Interesting indeed. I suspect it's provider's EL9 OS image as still only one reporting the issue. Though not everyone using Centmin Mod would be on this forum :D
     
  6. pamamolf

    pamamolf Premium Member Premium Member

    4,100
    428
    83
    May 31, 2014
    Ratings:
    +837
    Local Time:
    12:07 PM
    Nginx-1.26.x
    MariaDB 10.6.x
    I got a new RIDE 1 server and did the same install of Basic Alma Linux 9.

    Code:
    NSD_INSTALL='n'
    NGINX_SUB='n'
    NGINX_ADDITION='n'
    NGINX_IMAGEFILTER='n'
    NGINX_HTTPCONCAT='n'
    NGINX_PAGESPEED='n'
    NGINX_DYNAMICTLS='y'
    NGINX_HPACK='y'
    NGINX_SSL_CACHE='y'
    CLOUDFLARE_ZLIB='n'
    PHP_PGO='n'
    PHP_TUNING='n'
    PHP_OVERWRITECONF='n'
    AUTOTUNE_CLIENTMAXBODY='n'
    REDIS_SERVER_INSTALL='y'
    LETSENCRYPT_DETECT='y'
    ACME_DEFAULT_CA='letsencrypt'
    DUALCERTS='y'
    SELFSIGNEDSSL_ECDSA='y'
    DEVTOOLSETTEN='y'
    MENUEXIT_ALWAYS_YUMCHECK='y'
    DISABLE_IPVSIX='n'
    ENABLEMOTD='n'
    MYSQLADMIN_SHELL='y'
    After the installation i got:

    Code:
    [root@server ~]# nprestart
    /usr/bin/nprestart: line 1: service: command not found
    Restarting php-fpm (via systemctl) [  OK  ]
    [root@server ~]# mysqlrestart
    /usr/bin/mysqlrestart: line 1: service: command not found

    From the setup logs i can see as errors:

    Code:
    Removed:
      libicu-devel-67.1-9.el9.x86_64                                             
    
    Complete!
    Error: Unable to find a match: recode recode-devel
    Code:
    No match for argument: t1lib-devel
    Error: Unable to find a match: t1lib t1lib-devel
    I am pretty sure that all users that will do a new installation of Alma Linux 9 they will face the same issue now....

    Code:
    [root@server ~]# cat /etc/os-release
    NAME="AlmaLinux"
    VERSION="9.5 (Teal Serval)"
    ID="almalinux"
    ID_LIKE="rhel centos fedora"
    VERSION_ID="9.5"
    PLATFORM_ID="platform:el9"
    PRETTY_NAME="AlmaLinux 9.5 (Teal Serval)"
    ANSI_COLOR="0;34"
    LOGO="fedora-logo-icon"
    CPE_NAME="cpe:/o:almalinux:almalinux:9::baseos"
    HOME_URL="https://almalinux.org/"
    DOCUMENTATION_URL="https://wiki.almalinux.org/"
    BUG_REPORT_URL="https://bugs.almalinux.org/"
    
    ALMALINUX_MANTISBT_PROJECT="AlmaLinux-9"
    ALMALINUX_MANTISBT_PROJECT_VERSION="9.5"
    REDHAT_SUPPORT_PRODUCT="AlmaLinux"
    REDHAT_SUPPORT_PRODUCT_VERSION="9.5"
    SUPPORT_END=2032-06-01
     
  7. pamamolf

    pamamolf Premium Member Premium Member

    4,100
    428
    83
    May 31, 2014
    Ratings:
    +837
    Local Time:
    12:07 PM
    Nginx-1.26.x
    MariaDB 10.6.x
    I just install Alma Linux 8 and all are working as expected again.
     
  8. eva2000

    eva2000 Administrator Staff Member

    55,164
    12,249
    113
    May 24, 2014
    Brisbane, Australia
    Ratings:
    +18,825
    Local Time:
    7:07 PM
    Nginx 1.27.x
    MariaDB 10.x/11.4+
    RIDE = RISE OVH right? same fix as above? I should of already fixed that in 140.00beta01 to ensure it inserts correctly hmmm
     
  9. pamamolf

    pamamolf Premium Member Premium Member

    4,100
    428
    83
    May 31, 2014
    Ratings:
    +837
    Local Time:
    12:07 PM
    Nginx-1.26.x
    MariaDB 10.6.x
    Yes.

    RISE-S-1
    AMD Ryzen 7 9700X - 8c/16t - 3.8GHz/5.5GHz


    The fix was to install Alma Linux 8 instead of the 9.

    It seems that the alias was ok only for php this time.
     
  10. pamamolf

    pamamolf Premium Member Premium Member

    4,100
    428
    83
    May 31, 2014
    Ratings:
    +837
    Local Time:
    12:07 PM
    Nginx-1.26.x
    MariaDB 10.6.x
    Can you please provide me a way to add them manually?

    Thanks in advance !
     
  11. eva2000

    eva2000 Administrator Staff Member

    55,164
    12,249
    113
    May 24, 2014
    Brisbane, Australia
    Ratings:
    +18,825
    Local Time:
    7:07 PM
    Nginx 1.27.x
    MariaDB 10.x/11.4+
    They're apart of code at https://github.com/centminmod/centminmod/blob/140.00beta01/inc/shortcuts_install.inc in function called shortcutsinstall which is ran at end of initial Centmin Mod install https://github.com/search?q=repo:centminmod/centminmod shortcutsinstall&type=code

    but they're dynamically determined based on Centmin Mod configuration at initial install time - specifically these lines for EL8/EL9 https://github.com/centminmod/centminmod/blob/140.00beta01/inc/shortcuts_install.inc#L198-L271

    there's a specific check that can force trigger the shortcutsinstall function
    Code (Text):
    if [[ "$INITIALINSTALL" != [yY] && ! -f /usr/bin/customconfig ]]; then
    shortcutsinstall
    fi
    

    so what you can do is backup /usr/bin/customconfig and then temp remove it then run centmin.sh menu via centmin shortcut and it will detect that /usr/bin/customconfig is missing and re-run shortcutsinstall routine to setup command shortcuts and then move backup back to
    Code (Text):
    \cp -af /usr/bin/customconfig /usr/bin/customconfig.backup
    rm -f /usr/bin/customconfig
    centmin
    \cp -af /usr/bin/customconfig.backup /usr/bin/customconfig