Below command will cut lines 90 to 154 from file.txt and copy that to cut_file.txt
sed -n ’90,154p’ file.txt > cut_file.txt
Below command will cut lines 90 to 154 from file.txt and copy that to cut_file.txt
sed -n ’90,154p’ file.txt > cut_file.txt
[ /scripts/generate_maildirsize --confirm --verbose USERNAME ]
Login to mysql.
mysql -u root -p
In mysql prompt use
mysql> use mysql;
Now change the password for user “arun” to ”secret123″ as below :
[ mysql> update user set password=PASSWORD("secret123") where User='arun'; ]
/var/log/dcpumon/toplog…..
While trying to access the plesk admin page we get the below error :
ERROR: PleskFatalException Unable to connect to database: saved admin password is incorrect.
Solution :
Try resetting the admin password from within mysql.
You can get the details about resetting root mysql password using the link below. Change the commands accordingly an reset the password for user ”admin”
root@vps [~]# httpd -l
-bash: httpd: command not found
root@vps [~]#
Solution :
root@vps1 [/usr/bin]# ln -s /usr/local/apache/bin/httpd
root@vps1 [/usr/bin]# cd
/etc/cron.weekly/chkrootkit.sh:
/etc/cron.weekly/chkrootkit.sh: line 3: mail: command not found
/etc/cron.weekly/rkhunter.sh:
/etc/cron.weekly/rkhunter.sh: line 2: rkhunter: command not found
Solution :
yum install mailx.x86_64
Getting the below error in apache error logs and the website giving a Internal server error 500
Solution :
Check RLimitMEM is enabled. If so disable and restart apache.
vi /usr/local/apache/conf/httpd.conf





