mod_fcgid: read data timeout in 31 seconds
End of script output before headers: index.php, referer:
vi /etc/httpd/conf/httpd.conf
IPCCommTimeout 300
FcgidIOTimeout 300
vi home/username/etc/php5/php.ini
max_execution_time = 300
mod_fcgid: read data timeout in 31 seconds
End of script output before headers: index.php, referer:
vi /etc/httpd/conf/httpd.conf
IPCCommTimeout 300
FcgidIOTimeout 300
vi home/username/etc/php5/php.ini
max_execution_time = 300
If local mail server accepted email, but your email was frozen and not delivered:
mail($to,$subject,$message,$headers,"-f [email protected]");
If you want to exclude all cagefs-skeleton or some other virtfs, bind mounts and etc
zabbix_get -s xx.xx.xx.xx -k vfs.fs.discovery
“{#FSNAME}”:”\/usr\/share\/cagefs-skeleton\/dev\/pts”,
“{#FSTYPE}”:”devpts”},
“{#FSNAME}”:”\/usr\/share\/cagefs-skeleton\/dev\/shm”,
“{#FSTYPE}”:”tmpfs”},
“{#FSNAME}”:”\/usr\/share\/cagefs-skeleton\/lib”,
“{#FSTYPE}”:”ext4″},
Administration -> General -> Regular expressions -> New regular expression
Name: File systems for discovery – exclude cagefs
Expressions
Expression type: [Result is FALSE]
Expression: /cagefs-skeleton
Configuration -> Templates -> Template OS Linux -> Discovery rules -> Mounted filesystem discovery -> Filters -> Add
Type of calculation: A and B
A: {#FSNAME} matches @File systems for discovery – exclude cagefs
b: {#FSTYPE} matches @File systems for discovery
Also you need readd host to rediscover all mounted filesystems
Error downloading packages:
gc-7.2d-7.el7.x86_64: failed to retrieve getPackage/gc-7.2d-7.el7.x86_64.rpm from cloudlinux-x86_64-server-7
error was [Errno 14] HTTPS Error 404 – Not Found
yum clean all --enablerepo=*
A data base with one data source holding three years in 5-minute resolution is only 2.5 MB size:
rrdtool create save.rrd \
--step 300 \
DS:inet_down_total:DERIVE:600:0:U \
DS:inet_down_comp1:DERIVE:600:0:U \
DS:inet_down_comp2:DERIVE:600:0:U \
DS:inet_down_other:DERIVE:600:0:U \
RRA:AVERAGE:0.5:1:315360
systemd[1]: Can’t open PID file /var/run/pure-ftpd.pid (yet?) after start: Too many levels of symbolic links
systemd[1]: pure-ftpd.service start operation timed out. Terminating.
systemd[1]: Failed to start Pure-FTPd FTP server.
systemd[1]: Unit pure-ftpd.service entered failed state.
systemd[1]: pure-ftpd.service failed.
vi /usr/lib/systemd/system/pure-ftpd.service
[Service]
Type=forking
#PIDFile=/var/run/pure-ftpd.pid
PIDFile=/run/pure-ftpd.pid
ExecStart=/usr/sbin/pure-config.pl /etc/pure-ftpd/pure-ftpd.conf –daemonize
systemctl daemon-reload
systemctl start pure-ftpd
vi ~/.ssh/config
Host * USER root AddKeysToAgent yes TcpKeepAlive yes ServerAliveInterval 60 ServerAliveCountMax 60
If file and folder permissions are fine but you still have this error:
chown -R root.root /root/
Selectorctl find user PHP version:
for user in $(\ls -A /var/cpanel/users) ; do version=$(selectorctl -c -u $user | awk '{print $1}') ; echo $user $version ; done
yum install php-cli
Installing:
php-cli x86_64 7.3.18-1.el6.remi remi-php73 4.4 M
Installing for dependencies:
libargon2 x86_64 20161029-7.el6.remi remi 21 k
php-common x86_64 7.3.18-1.el6.remi remi-php73 1.1 M
php-json x86_64 7.3.18-1.el6.remi remi-php73 65 k
Transaction Summary
Install 4 Package(s)
Total download size: 5.6 M
while [ 1 -eq 1 ]; do iotop -n 1 -k -qqq -o|awk '{print "io_read_kbs,pid="$1",process="$12" value="$4"\nio_write_kbs,pid="$1",process="$12" value="$6}';sleep 1;done
io_read_kbs,pid=8848,process=rsync value=295.00
io_write_kbs,pid=8848,process=rsync value=0.00
io_read_kbs,pid=5091,process=cp value=2802.47
certbot certificates
To send PHP mail via SMTP:
Using PHPmailer -> https://github.com/PHPMailer/PHPMailer/
Using the PEAR Mail package -> cPanel -> PHP PEAR Packages -> Mail
Its possible your database files was restored on wrong server and wrong MySQL version, maybe too old MySQL server.
cd /root
wget https://www.litespeedtech.com/packages/5.0/lsws-5.4.7-ent-x86_64-linux.tar.gz
tar zxfv lsws-5.4.7-ent-x86_64-linux.tar.gz
cd lsws-5.4.7
echo "xxxx-xxxx-xxxx-xxxx" | tee serial.no
sh install.sh