Welcome to Centmin Mod Community
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

    30,178
    6,786
    113
    May 24, 2014
    Brisbane, Australia
    Ratings:
    +10,139
    Local Time:
    8:40 AM
    Nginx 1.13.x
    MariaDB 5.5
    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

    30,178
    6,786
    113
    May 24, 2014
    Brisbane, Australia
    Ratings:
    +10,139
    Local Time:
    8:40 AM
    Nginx 1.13.x
    MariaDB 5.5
    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

    2,725
    243
    63
    May 31, 2014
    Ratings:
    +434
    Local Time:
    1:40 AM
    Nginx-1.13.x
    MariaDB 10.1.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

    30,178
    6,786
    113
    May 24, 2014
    Brisbane, Australia
    Ratings:
    +10,139
    Local Time:
    8:40 AM
    Nginx 1.13.x
    MariaDB 5.5
    update 123.09beta01 again fixed typos :D
     
    • Informative Informative x 1