Unable to extract the directory ‘backup’ from the file in directadmin

Unable to extract the directory ‘backup’ from the file in directadmin

This is common error when you try to backup/restore the users in Directadmin.

To fix that in linux ,. add these 2 lines in /etc/sysctl.conf or in folder /etc/sysctl.d/sysctl.conf

fs.enforce_symlinksifowner = 0

fs.protected_symlinks_create = 0

1 Star2 Stars3 Stars4 Stars5 Stars (1 votes, average: 5.00 out of 5)
Loading...

Using mysql_upgrade command line

Using mysql_upgrade command line

When you upgrade mysql , the things that you will encounter are some errors said that you need to fix somethings . The mysql_upgrade command line (only unix)  is a command that checks all tables in all databases for incompatibilities with your current version of the MySQL Server.

Another feature of mysql_upgrade is that it saves the MySQL version number into a file named mysql_upgrade.info. Contained within the data directory, this file is used to quickly review if all tables are current for this release, allowing future table-checking to be skipped.

Using

# mysql_upgrade -u yourusername -ppassword

scoreboard is full, not at MaxRequestWorkers.Increase ServerLimit.(solved)

scoreboard is full, not at MaxRequestWorkers.Increase ServerLimit.

We just experienced these bugs , after upgrading to apache 2.4.43 /directadmin/centos7 which cause the webserver to freeze , and we have to restart the httpd service .

After searching for a while , we know that these are bugs in Apache as stated in here

Some people in StackOverflow and Serverfault recommend to increase by setting MaxSpareThreads = MaxRequestWorkers. , but the server load everage rose after that , so in other threads said about to set MaxConnectionsPerChild to 0 or comment it out (mpm_event.conf). 

This last method had lessened the problems , so lets try .

How to Install LittleUtils on Linux 64 bit to use OPT GIF PNG JPG

Su or Login with root user.

Install the dependencies with following command.
# yum install gcc libpng libpng-devel gifsicle pngcrush p7zip lzip
Now download the littleutils using the command below.

 Goto http://sourceforge.net/projects/littleutils/

Or wget https://svwh.dl.sourceforge.net/project/littleutils/littleutils-source/1.2.0/littleutils-1.2.0.tar.lz

Download and upload to your directory

Extract the file and install littleutils.
# tar –lzip -xvf littleutils-1.2.0.tar.lz

# cd littleutils-1.2.0

# ./configure

# make

# make install

Thats all.

การ redirect เว็บไปโดเมนอื่นด้วย php

วิธีการ ส่งเว็บไปหน้าอื่น (รีไดเรค) -Redirect web-โดยใช้ -PHP

  1. วิธีการ add header location

<?
 header( “location: http://www.dochost.net” );
 exit(0);
?>

** location ต้องตามติดด้วย ( : ) เสมอ

สำคัญ*** location ต้องตามติดด้วย ( : ) เสมอ

การบังคับให้เว็บhttp ไป https ด้วย .htaccess

สำหรับท่านที่ใช้apache เป็นเว็บไซต์ และมีการติดตั้ง SSl แล้ว สามารถบังคับทุกหน้าไปที่ https ได้ Continue reading “การบังคับให้เว็บhttp ไป https ด้วย .htaccess”

dochost มีบริการ free SSL และ3 เหตุผลที่ควรเปลี่ยนมาใช้https

ข้อมูลล่าสุด เมื่อเร็วๆนี้ หลายๆท่านที่ใช้ google chromeที่อัพเดตล่าสุด  คงสังเกตเห็นว่าเว็บไซต์ ที่ไม่ได้ใช้ระบบ encrypt(http ธรรมดา ) จะมีเครื่องหมาย ! หน้าเว็บไซต์ ซึ่งสมัยก่อนนั้น จะไม่มี ยิ่งกว่านั้น ถ้าท่านเข้าเว็บที่มีใบรับรองของ certificate ไม่ถูกต้อง (self sign ssl) จะมีการวิ่งไปเข้าหน้านี้ครับ Continue reading “dochost มีบริการ free SSL และ3 เหตุผลที่ควรเปลี่ยนมาใช้https”

การตรวจสอบว่าเว็บ wordpress มีerror อะไรด้วย wp debug

เมื่อเร็วๆนี้ มีเว็บลูกค้าเปิดไม่ขึ้น เป็นหน้าขาว ซึ่งเป็นอาการที่พบบ่อยมาก ภายหลังสอบถามว่าเกิดจากการอัพเดตบางอย่าง จึงลองแนะนำว่า สามารถตรวจสอบให้เว็บโชว์ error ออกมาที่หน้าเว็บได้ โดยการเปิดใช้งาน wp_debug โดยดูที่ ไฟล์ wp-config.php ครับ Continue reading “การตรวจสอบว่าเว็บ wordpress มีerror อะไรด้วย wp debug”

Cloud – Cluster ที่แท้เป็นเช่นไร รู้จักความหมายของมัน

ปัจจุบัน มีการใช้ศัพท์ที่ใช้ในวงการโฮสติ้งว่า Cloud บ้าง Cluster บ้าง จริงๆแล้ว มันมีคำจำกัดความอยู่ครับ เราลองมาเรียนรู้กัน

Continue reading “Cloud – Cluster ที่แท้เป็นเช่นไร รู้จักความหมายของมัน”

การตรวจสอบว่า httpd fail to startจากเหตุใด

เมื่อวันก่อน เกิดปัญหาที่ server หนึ่ง ไม่สามารถสตาร์ท service apache (httpd) ได้

$ service apache2 start
Starting web server
apache2 Action ‘start’ failed.
The Apache error log may have more information.

ใน log file ขึ้นแบบนี้

$ tail var/log/apache2/error.log
AH00016: Configuration Failed, exiting

ขั้นตอนแรก ตรวจสอบก่อนว่า config file ok ไหม

$ apache2ctl configtest
Syntax OK

ต่อมาได้ตรวจสอบการรันของโปรแกรม โดยการใช้ แพคเกจ strace ครับ
ดาวน์โหลดมาติดตั้งก่อน

$ yum -y install strace
$ strace -f  apache2ctl  start
[pid 6068] mmap(NULL, 4096, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, -1, 0) = 0x7f45c6c38000
[pid 6068] read(45, “—–BEGIN PRIVATE KEY—–\nMIIE”…, 4096) = 1704
[pid 6068] close(45)
[pid 6068] munmap(0x7f45c6c38000, 4096) = 0
[pid 6068] write(11, “[Sun Oct 05 07:35:44.207805 2014″…, 189) = 189
[pid 6068] write(2, “AH00016: Configuration Failed\n”, 30) = 30
[pid 6068] select(0, NULL, NULL, NULL, {0, 10000}) = 0 (Timeout)

พบว่า เป็นปัญหาที่ ssl จึงมาลองนึกดูอีกที ปรากฎว่า ได้delete server.csr และเอาอันใหม่ใส่ ที่ไม่สัมพันธ์กับ server.key เดิมครับ ทำให้เครื่องรันไม่ได้