I think PHP Web App update to work needed newer PHP version, can you confirm, that's the case

Operating System & Version
cent os 7.9
cPanel & WHM Version
CENTOS 7.9 kvm [ip-***********] v94.0.2 Load Averages: 0.09 0.13 0.18

Leonidas Savvides

Well-Known Member
May 10, 2016
83
4
8
Cyprus
cPanel Access Level
Root Administrator
I think PHP Web App update to work needed newer PHP version, can you confirm, that's the case??

Error
PHP for the selected domain has failed.

Installatron is unable to install to a domain where PHP is not working.

Your hosting provider can help you resolve this error.

Error code: 1; HTTP code: 500

Contact Installatron Support

Godaddy VPS / web app installer: installatron
 

Attachments

Last edited by a moderator:

Leonidas Savvides

Well-Known Member
May 10, 2016
83
4
8
Cyprus
cPanel Access Level
Root Administrator
How can install the Contains Apache 2.4, PHP 7.3, PHP 7.4, and PHP 8.0 View all package???? Step by step, ...? after install needed Apache RESTART??
at
https://ip-***********.ip.secureserver.net:2087/***********/scripts7/EasyApache4/profile

cPanel Default cpanel Toggle this profile description.
Contains Apache 2.4, PHP 7.3, PHP 7.4, and PHP 8.0 View all packages
Customize Provision
This is the standard Apache package with up-to-date PHP and modules, including PHP-FPM. This package can host multiple sites and users.
 

Attachments

Leonidas Savvides

Well-Known Member
May 10, 2016
83
4
8
Cyprus
cPanel Access Level
Root Administrator
I had problem overused cpu 99.8%-100% but,
When put limit
Bandwidth Limit Exceeded
120MB
For site yyyy.city
Cpu become - when this site not working - less than 3%-1% cpu usage

I think the php 7.2 deprecated,... php apps problem was doing the overused cpu problem but for reason i think php... Can you tell... if that's it?

If you can Not tell, i can experiment
Put Bandwidth Limit, unlimited, and see the error in php apps...do so...?
 

cPRex

Jurassic Moderator
Staff member
Oct 19, 2014
4,883
606
273
cPanel Access Level
Root Administrator
Hey there! I don't believe that an outdated application would cause your CPU or bandwidth to spike. 120M is a very small bandwidth limit for any domain, but would be fine to use to test or limit a site that you think is causing issues.

It's possible your server is experiencing a DoS attack, which you could confirm with the steps here:


As for the PHP settings, you can install any option you'd like from the EasyApache 4 list by clicking the "Provision" button shown in the third screenshot you provided.
 

Leonidas Savvides

Well-Known Member
May 10, 2016
83
4
8
Cyprus
cPanel Access Level
Root Administrator
See here first post, THIS POST continues
SMTP RELAYS
5000 / 5000
>


How from cPanel I put a limit for SMTP RELAYS per day quota, VPS Server wide all domains or for some domains...? You think doing so should medicated the problem temporarily...?
 

Leonidas Savvides

Well-Known Member
May 10, 2016
83
4
8
Cyprus
cPanel Access Level
Root Administrator
I set limits in
SMTP EMAIL/RELAYS
Server wide
But i think is Not effective, same result...
1
Can you tell how set limit for this?
2
Where find logs of server, cent os 7.9, for this problem or for general checkup... ?
 

cPRex

Jurassic Moderator
Staff member
Oct 19, 2014
4,883
606
273
cPanel Access Level
Root Administrator
There isn't a better way to set the limit than how you are already doing it. This is why I think the system could have a security issue.

There are many different log files on a cPanel server, and we have a list of those in our documentation here:


so you'll need to find one associated with the service you're working with.
 

Leonidas Savvides

Well-Known Member
May 10, 2016
83
4
8
Cyprus
cPanel Access Level
Root Administrator
currently:

1 CPU core
2.06% / 100%
48%
RAM
0.96GB / 2GB
64%
Disk space
25.6GB / 40GB
100%
SMTP relays
5000 / 5000

History
100%
Uptime monitoring
100% uptime

1 Set up here as --- Updating “Number of emails a domain may send per day before the system sends a notification.” from “” to “10”.
when I will get an e-mail after SMTP RELAYS gets reset to 0/5000 and the 10 email limit passed? Where find the email address NOTIFICATION will come to???

• Home »
• Server Configuration »
• Tweak Settings

Tweak Settings
Updating tweak settings...
Your changes have been saved.

Restarting cPanel daemons...done.

Updating your system to reflect any changes...
Updating “Number of emails a domain may send per day before the system sends a notification.” from “” to “10”.
“Number of emails a domain may send per day before the system sends a notification.” was updated.
Updating “Max hourly emails per domain” from “” to “20”.
“Max hourly emails per domain” was updated.

Done.


2 Following this:

followed this ^^ >>> when stats relays above... getting >>> // but currently CPU 2-3%

[[email protected]********** ~]# netstat -an | egrep ":80|:443" | egrep '^tcp' | grep -v LISTEN | awk '{print $5}' | egrep'([0-9]{1,3}\.){3}[0-9]{1,3}' | sed 's/^\(.*:\)\?\(\([0-9]\{1,3\}\.\)\{3\}[0-9]\{1,3\}\).*$/\2/' | sort | uniq -c | sort -nr | sed 's/::ffff://' | head
3 146.196.34.12
1 35.190.4.8
1 185.15.22.168
1 1*************
1 127.0.0.1
1 114.119.145.79
1 108.161.134.175
[[email protected]**********~]#

3 CAN you conclude anything from the data below: ...?


[[email protected]************ ~]# ls -la /usr/local/apache/domlogs/marketplace/

...
-rw-r----- 2 root marketplace 1045370 Mar 16 06:27 wiki.*******.****-ssl_log // bigest file // but yesterday uninstalled wiki php app
-rw-r----- 2 root marketplace 1060411 Mar 16 06:40 wiki.************.***-ssl_log
-rw-r----- 2 root marketplace 2046 Mar 15 22:19 youtube.************
-rw-r----- 2 root marketplace 738 Mar 15 22:19 youtube.************-ssl_log
[[email protected]************ ~]# ls -la /usr/local/apache/domlogs/marketplace/

...
-rw-r----- 2 root marketplace 0 Mar 15 14:08 travel.*******.****-ssl_log
-rw-r----- 2 root marketplace 77212 Mar 16 06:13 wiki.*******.****
-rw-r----- 2 root marketplace 1045370 Mar 16 06:27 wiki.*******.****-ssl_log // bigest file
-rw-r----- 2 root marketplace 2046 Mar 15 22:19 youtube.*******.****
-rw-r----- 2 root marketplace 738 Mar 15 22:19 youtube.*******.****-ssl_log
[[email protected]************ ~]# ls -la /usr/local/apache/domlogs/marketplace/


[[email protected]************ ~]# cat /var/log/maillog | head

[[email protected]************ ~]# cat /var/log/maillog | head
Mar 14 03:39:03 ip-************** dovecot: pop3-login: Disconnected (no auth attempts in 0 secs): user=<>, rip=45.32.234.28, lip=**************, session=<Apu2MnW9eMgtIOoc>
Mar 14 03:39:24 ip-************** dovecot: imap-login: Disconnected (disconnected before auth was ready, waited 0 secs): user=<>, rip=45.32.234.28, lip=**************, session=<B87/M3W93sUtIOoc>
Mar 14 03:40:10 ip-************** dovecot: pop3-login: Disconnected (no auth attempts in 0 secs): user=<>, rip=45.32.234.28, lip=**************, session=<xaO9NnW9xoQtIOoc>
Mar 14 03:40:11 ip-************** spamd[29899]: spamd: connection from localhost [::1]:50974 to port 783, fd 5
Mar 14 03:40:11 ip-************** dovecot: pop3-login: Aborted login (no auth attempts in 0 secs): user=<>, rip=127.0.0.1, lip=127.0.0.1, secured, session=<VfvFNnW9osR/AAAB>
Mar 14 03:40:11 ip-************** dovecot: lmtp(24445): Connect from local
Mar 14 03:40:11 ip-************** dovecot: lmtp(24445): Disconnect from local: Client has quit the connection (state=READY)
Mar 14 03:40:11 ip-************** dovecot: imap-login: Login: user=<__cpanel__service__auth__imap__gqdf5xsemw8end31>,method=PLAIN, rip=127.0.0.1, lip=127.0.0.1, mpid=24453, secured, session=<vMDNNnW9LKF/AAAB>
Mar 14 03:40:11 ip-************** dovecot: imap(__cpanel__service__auth__imap__gqdf5xsemw8end31)<24453><vMDNNnW9LKF/AAAB>: Logged out in=11, out=511, bytes=11/511
Mar 14 03:40:33 ip-************** dovecot: imap-login: Disconnected (no auth attempts in 0 secs): user=<>, rip=45.32.234.28, lip=**************, session=<PSUZOHW9qIEtIOoc>
[[email protected]************** ~]#
 

Leonidas Savvides

Well-Known Member
May 10, 2016
83
4
8
Cyprus
cPanel Access Level
Root Administrator
when I will get an e-mail after SMTP RELAYS gets reset to 0/5000 and the 10 email limit passed? Where find the email address NOTIFICATION will come to, in the below place:...???

Home » Server Contacts »Edit System Mail Preferences
Documentation
Edit System Mail Preferences

and here

• Home »
• Server Contacts »
• Contact Manager

Contact Manager
===
 
Last edited:

Leonidas Savvides

Well-Known Member
May 10, 2016
83
4
8
Cyprus
cPanel Access Level
Root Administrator
I DO NOT GET E-MAIL NOTIFICATIONS FROM VPS...
WHAT TO DO?


1 CPU core
4.18% / 100%
50%
RAM
1GB / 2GB
64%
Disk space
25.6GB / 40GB
24%
SMTP relays
1218 / 5000

History
100%
Uptime monitoring
100% uptime
 

Leonidas Savvides

Well-Known Member
May 10, 2016
83
4
8
Cyprus
cPanel Access Level
Root Administrator
Tweak Settings
Updating tweak settings...
Your changes have been saved.

Restarting cPanel daemons...done.

Updating your system to reflect any changes...
Updating “Number of emails a domain may send per day before the system sends a notification.” from “10” to “1500”.
“Number of emails a domain may send per day before the system sends a notification.” was updated.
Updating “Max hourly emails per domain” from “20” to “100”.
“Max hourly emails per domain” was updated.
Done.