Server is hacking need help

Job ID: 31456639

Budget: $30 – $60 USD

Hello,
Need to enforce my server security because it attacks.
PHP Notice: Trying to access array offset on value of type PHP Warning: mysqli::__construct(): (HY000/1040): Too many connections in /home/.....
PHP Warning: mysqli::real_escape_string(): Couldn't fetch mysqli in /public_html/.......
Related categories: PHP Linux Web Security Apache MySQL