Discover Centmin Mod today
Register Now

Stable Branch create missing pure-ftpd dhparam file

Discussion in 'Centmin Mod Github Commits' started by eva2000, Apr 3, 2017.

  1. eva2000

    eva2000 Administrator Staff Member

    58,893
    12,490
    113
    May 24, 2014
    Brisbane, Australia
    Ratings:
    +19,122
    Local Time:
    11:18 AM
    Nginx 1.31.x
    MariaDB 10.x/11.4+/12.3+
    create missing pure-ftpd dhparam file

    Seems pure-ftpd now complains if the DH paramater file /etc/ssl/private/pure-ftpd-dhparams.pem is missing in CentOS 7
    Code (Text):
    # journalctl -u pure-ftpd --no-pager |sed -e "s|$(hostname)|hostname|g"
    -- Logs begin at Sun 2017-04-02 19:27:22 UTC, end at Sun 2017-04-02 21:03:47 UTC. --
    Apr 02 20:16:44 hostname systemd[1]: Starting Pure-FTPd FTP server...
    Apr 02 20:16:44 hostname systemd[1]: PID file /var/run/pure-ftpd.pid not readable (yet?) after start.
    Apr 02 20:16:44 hostname pure-ftpd[21215]: (?@?) [DEBUG] Couldn't load the DH parameters file /etc/ssl/private/pure-ftpd-dhparams.pem
    

    manual fix which depending on server hardware specs/speed will take some time to create with SSH command below
    Code (Text):
    time openssl dhparam -out /etc/ssl/private/pure-ftpd-dhparams.pem 2048
    service pure-ftpd restart
    


    Continue reading...

    Centmin Mod Github Current Stable branch



     
  2. eva2000

    eva2000 Administrator Staff Member

    58,893
    12,490
    113
    May 24, 2014
    Brisbane, Australia
    Ratings:
    +19,122
    Local Time:
    11:18 AM
    Nginx 1.31.x
    MariaDB 10.x/11.4+/12.3+
    for existing centmin mod users when they have updated their code via centmin.sh menu option 23 submenu option 2, the next centmin.sh run afterwards will prompt to create the missing file

    example
    Code (Text):
    ./centmin.sh
    
    pure-ftpd: one time setup /etc/ssl/private/pure-ftpd-dhparams.pem file
    may take a while to create...
    pure-ftpd: /etc/ssl/private/pure-ftpd-dhparams.pem created
    
     
  3. pamamolf

    pamamolf Well-Known Member

    4,125
    429
    83
    May 31, 2014
    Ratings:
    +841
    Local Time:
    4:18 AM
    Nginx-1.29.x
    MariaDB 10.6.x
    I just updated and i am getting now at latest Centminmod beta 09 this when i run centmin command:

    Code:
    /usr/local/src/centminmod ~
    inc/cpcheck.inc: line 786: syntax error near unexpected token `fi'
    inc/cpcheck.inc: line 786: `      fi'
    
    centmin.sh: line 796: cpcheck: command not found
    centmin.sh: line 818: setupdate: command not found
     
  4. eva2000

    eva2000 Administrator Staff Member

    58,893
    12,490
    113
    May 24, 2014
    Brisbane, Australia
    Ratings:
    +19,122
    Local Time:
    11:18 AM
    Nginx 1.31.x
    MariaDB 10.x/11.4+/12.3+
    update 123.09beta01 again fixed typos :D