If you have problem when you access plesk via https://ip:8443 you try to restart service of plesk:
/etc/init.d/sw-cp-server restart
NSN
Bài đăng phổ biến
-
How to create a bot to automate daily tasks using Slack Nguyen Si Nhan 1. Setting Up Your Slack App Create a Slack App: Sign in to your Sla...
-
yum install install libxml2-devel Nguyen Si Nhan
Tuesday, February 21, 2012
Fixed: Call-time pass-by-reference error and possible solution
-If your code return this error: Call-time pass-by-reference error and possible solution :
edit php.ini search this line: allow_call_time_pass_reference equal On (usually you will see equal off) .
NSN
edit php.ini search this line: allow_call_time_pass_reference equal On (usually you will see equal off) .
NSN
File content mysql root and password of ISPconfig
/home/admispconfig/ispconfig/lib/config.inc.php
NSN
NSN
Sunday, February 12, 2012
Saturday, February 11, 2012
fdisk vs mkfs.ext3
This filesystem will be automatically checked every 37 mounts or
180 days, whichever comes first. Use tune2fs -c or -i to override.
NSN
Tuesday, February 7, 2012
Add line log-error=/var/log/mysqld.log to /etc/my.cnf for view log mysql
vi /etc/my.cnf
[mysqld]
log-error=/var/log/mysqld.log
NSN
[mysqld]
log-error=/var/log/mysqld.log
NSN
Thursday, February 2, 2012
Cpanel : Backup and restore multi website by script
Backup:
Create a file with name backup.sh
Nguyễn Sĩ Nhàn
Create a file with name backup.sh
for i in $(ls /var/cpanel/users)
do /scripts/pkgacct $i
done
Restore:
Create a file with name restore.sh:
for x in $(ls cpmove-*.tar.gz | cut -d "." -f 1); do /scripts/restorepkg $x; done
or
#!/bin/bash
for i in $(cat /backup/restore.txt)
do /scripts/restorepkg $i
done
With restore.txt is list username and file backup is in /home dir
or
#!/bin/bash
for x in $(ls /home/backup-*.tar.gz | cut -d "_" -f 3 | cut -d "." -f 1);
do /scripts/restorepkg $x;
done
echo "Written by Nguyen Si Nhan"
or
#!/bin/bash
for i in $(cat /backup/restore.txt)
do /scripts/restorepkg $i
done
With restore.txt is list username and file backup is in /home dir
or
#!/bin/bash
for x in $(ls /home/backup-*.tar.gz | cut -d "_" -f 3 | cut -d "." -f 1);
do /scripts/restorepkg $x;
done
echo "Written by Nguyen Si Nhan"
Nguyễn Sĩ Nhàn
Subscribe to:
Posts (Atom)