Wednesday, November 23, 2011

วิธีการ ติดตั้ง kloxo version ใหม่ 11/2011

 วิธีการ ติดตั้ง kloxo  version ใหม่  11/2011 # su - root # setenforce 0 # yum install -y wget # wget http://download.lxcenter.org/download/kloxo/production/kloxo-installer.sh # chmod 755 kloxo-installer.sh # sh ./kloxo-installer.sh master =============================== เมื่อ ก่อน # su - root # setenforce 0 # yum install -y wget # wget http://download.lxcenter.org/download/kloxo/production/kloxo-install-master.sh # sh ./kloxo-install-master...

Friday, September 30, 2011

kloxo Assigning a Dedicated IP address to your Site

Other Useful Features Kloxo has many other features that are very useful. Some of the more common and frequently used features are explained below and include assigning a site a dedicated IP address, setting up and SSL certificate, using the "Files" tab and a brief discussion of clients and resellers you can create on your VPS. NOTE: Your VPS has one IP address assigned to it by default. This is the IP address referenced in your welcome e-mail. If your VPS plan includes more than one IP address you can request additional IP addresses through our ticket system: http://my.a2hosting.com Please provide the reason for needing the additional IP address...

Tuesday, September 13, 2011

วิธีการใช้งาน date selector ด้วย PopCalendarXP เพื่อรองรับกับวันที่ MySQL

PopCalendarXP เป็นของฟรีอีกแล้วครับ ผมเอามาใช้กับโค้ด php ซึ่งเปลี่ยนให้เป็นภาษาไทยเรียบร้อยแล้ว เหลือแต่ปีที่ยังเป็นคริสศักราช อยู่ ทำเป็นปีไทยไม่เป็นแต่ก็พอใช้งานได้ครับ ใครสนใจรายละเอียดเพิ่มเติมก็เวปนี้เลย www.calendarxp.net/ วิธีใช้น่ะครับ unzip ไฟล์ออกมาแล้วไปวางในเวปpath ของ server เช่น ของผมวางไว้ที่ C:\AppServ\www\date1\ ใน โฟลเดอร์ date1 ผมจะสร้างไว้ สองไฟล์ไว้ test น่ะครับคือ date01.php และ date02.php ซึ่งสองไฟล์นี้ก็ใช้ dreamweaver สร้างมาครับง่ายดีและจะมีโฟลเดอร์ PopCalendarXP ซึ่งเป็นไฟล์ที่ผมโหลดมาและแก้เป็นภาษาไทยเรียบร้อยแล้ว ลองรันตามนี้น่ะครับ http://localhost/date1/date01.php ซึ่งวิธีการ install ผมขอสรุปคร่าวๆดังนี้น่ะครับ สร้าง...

Fusionchart+PHP+MySQL แบบทีละ Step คับ

วิธีการแสดงกราฟ Fusionchart v.3 โดยดึงข้อมูลมาจากฐานข้อมูล MySQL โดยใช้ภาษา PHP ครับ step1. เริ่มจากสร้างฐานข้อมูลที่ชื่อ fusion-test [Download] และสร้างตารางที่ชื่อ data1 และเพิ่มข้อมูลลงไปตามรูปครับ step2. โหลดกราฟ [download] และ unzip ไว้ในเวป root โดยของผมจะเก็บไว้ที่นี่ C:\AppServ\www\FusionCharts_Evaluation\ จากนั้นก็ลองเรียกดูเลยครับตาม path นี้ http://localhost/FusionCharts_Evaluation/Code/PHP/DBExample/Default.php ถ้ารันได้แบบนี้ก็โอเคแล้วครับ หมาย เหตุ กราฟที่ผมให้โหลดเป็นตัวที่ผมตัดบางส่วนออกเอาเฉพาะไฟล์ที่เกี่ยวข้องเท่า นั้นและแก้ไขเรียบร้อยแล้วน่ะครับโดยใครอยากโหลดเอาไฟล์ทั้งหมดทุกภาษา สามารถโหลดได้ที่เวปนี้ www.fusioncharts.com...

Kloxo error "Some of Horde's configuration files are missing or unreadable conf.php"

Kloxo error "Some of Horde's configuration files are missing or unreadable conf.php" วันนี้ติดตั้ง kloxo ใหม่ ปรากฏว่า webmail ทั้ง Horde และ RoundCube ใช้ไม่ได้ ขึ้น error ทั้งคู่ Error ของ Horde "Some of Horde's configuration files are missing or unreadable conf.php" ลองค้นหาวิธีแก้ไขใน LxCenter พบทางแก้ที่ได้ผลคือใช้คำสั่ง chmod 644 /home/kloxo/httpd/webmail/horde/config/conf.php ปัญหาคือไฟล์ conf.php ได้เปลี่ยน Permission เป็น 600 ทำให้ใช้งานไม่ได้ Error ของ RoundCube Roundcube had "Configuration Error: db.inc.php" ปัญหาเกิดขึ้นอย่างเดียวกันคือ Permission ของ db.inc.php เป็น 600 ทางแก้ก็ใช้ putty เข้าไปใช้คำสั่ง chmod 644 /home/kloxo/httpd/webmail/roundcube/config/db.inc....

วิธีติดตั้ง MTRG บน Kloxo

เป็นหนึ่งในเทคนิคที่ผมนำมาเพิ่มความสามารถให้แก่ VPS(Linux) ที่ใช้ Control Panel Kloxo Lxadmin ซึ่ง ถ้า VPS ที่เราเช่ามาเป็นแบบไม่มี Control Panel สำหรับดู Status ต่างๆของ VPS  มันก็เป็นเรื่องลำบากพอสมควร ที่เราจะเช็คว่า VPS หรือ Server ของเรา ใช้งาน CPU, RAM, Traffic , Connections ไปมากน้อยแค่ไหน จริงแล้วๆ มีโปรแกรมอื่นๆที่นิยมใช้กันอีกนอกจาก MRTG อย่าง Munin ก็แสดงผลได้ละเอียดดีเหมือนกัน ก่อนอื่นก็เข้า Shell ก่อนนะครับ แล้วก๊อบคำสั่งไปใช้งานได้เลยครับ - ติดตั้ง mrtg ก่อน yum -y install net-snmp net-snmp-utils mrtg cd /etc/snmp/ mv snmpd.conf snmpd.conf.bak nano snmpd.conf - แก้ไข Config โดยการก๊อบข้างล่างไปวางใน text editor เลยครับ syslocation...

ปัญหากราฟ apache ไม่แสดงรูป

ตอนนี้ติดปัญหากราฟ apache ไม่แสดงรูปเลยอ่ะค่ะ ค่า /etc/httpd/conf/httpd.conf ก็ไปทำมาแล้ว อ้างถึงLoadModule status_module modules/mod_status.so อ้างถึง# Allow server status reports generated by mod_status, # with the URL of http://servername/server-status # Change the ".example.com" to match your domain to enable. # <Location /server-status>     SetHandler server-status #    Order deny,allow #    Deny from all     Allow from all </Location> อ้างถึง# ExtendedStatus controls whether Apache will generate "full" status # information (ExtendedStatus On) or just basic information (ExtendedStatus #...

Magic Quotes GPC ใน kloxo คือ

คุณเคยสงสัยหรือไม่ว่า  Magic Quotes GPC  คืออะไร? แก้ไขตรงไหน? จำเป็นหรือไม่? Magic Quotes GPC มีไว้เผื่อช่วยให้เราสามารถนำข้อมูล หลังจากที่เรา submit form ไป query ใส่ database ได้โดยไม่ error ซึ่งการรับข้อมูลจาก form ต่างๆ  มีโอกาสที่ user จะกรอก Single quote (') หรือ Double quote (") เข้ามาในช่อง input box ของเราได้ ดังนั้นถ้าเรานำข้อมูลไปใช้โดยตรงทำให้มีโอกาส  query error ได้ ถ้าหาก   Magic Quotes GPC = On จะมีการเติม \ เข้าไปที่หน้า Single quote หรือ Double quote ให้อัตโนมัต  ทำให้สามารถนำค่าไป query ได้ทันที ดังนั้นการ query เราจึงต้องเช็คดังนี้ 01if (get_magic_quotes_gpc()) { 02    $name = stripslashes($_POST['name']); 03} 04else { 05    $name= $_POST['name']; 06} 07  08$name= mysql_real_escape_string($name); 09  10$sql...

[แก้]web mail ของ kloxo ไม่เชื่อมต่อ DB

[แก้]web mail ของ kloxo ไม่เชื่อมต่อ DB สั่งใน shell # sh /script/fixmail # sh /script/fixwebmail # service kloxo rest...

จะติดตั้ง kloxo แนะนำให้สั่งตามนี้ก่อนครับ

จะติดตั้ง kloxo แนะนำให้สั่งตามนี้ก่อนครับ ผมลองมาแล้วเวลาติดตั้ง kloxo จะเร็วกว่าตอนยังไม่สั่งครับ     # rpm --import /etc/pki/rpm-gpg/RPM-GPG-KEY* # yum update -y # yum groupinstall 'Development Tools' -y # yum groupinstall 'Development Libraries' -y # rpm --import http://dag.wieers.com/rpm/packages/RPM-GPG-KEY.dag.txt # cd /tmp # wget http://packages.sw.be/rpmforge-release/rpmforge-release-0.3.6-1.el5.rf.i386.rpm # rpm -ivh rpmforge-release-0.3.6-1.el5.rf.i386.rpm # yum install ntp httpd mysql-server php php-mysql php-mbstring php-mcrypt phpmyadmin rpm-build gcc mysql-devel openssl-devel cyrus-sasl-devel pkgconfig zlib-devel pcre-devel openldap-devel postgresql-devel expect libtool-ltdl-devel openldap-servers libtool gdbm-devel pam-devel gamin-devel -y # yum install...

ใช้ kloxo ลง WordPress ติดตั้ง plugin, theme แล้วไม่ auto ไปหน้า Active

จากหัวข้อก็พอจะนึกภาพออกแล้วใช่มั้ยครับผมก็ไม่รู้มาตั้งแต่แรกครับว่ามัน เป็นเพราะอะไรครับแต่เมื่อกี่ได้ทำเจอกับปัญหาของ pure-ftpd ที่ติดมากับ kloxo มันใช้ไม่ได้ซะงั้นไม่เคยใช้ด้วยสิ่ เคยใช้แต่ Vsftpd ไม่มีอะไรมากเลยครับผมเลยจัดการลบ pure-ftpd และติดตั้ง Vsftpd แทนครับ เป็นที่น่าพอใจมาก ftp ใช้งานได้ปกติดีครับ แถมเวลาเราติดตั้ง plugin หรือ theme ของ wordpres ก็ยังติดตั้งเสร็จสมบูรณกว่าเดิมครับคือเมื่อมันอัพโหลดเสร็จมันก็จะ auto ไปหน้า Active โปรแกรมเลยแต่เมื่อก่อนค้าง อยู่ที่หน้า unpack … มาดูวิีธีการติดตั้ง Vsftpd แทน pure-ftpd กันครับ 1 2 3 4 5 6 7 8 9 # yum remove pure-ftpd -y # yum install vsftpd -y # cd /etc/vsftpd/ # mv vsftpd.conf vsftpd.conf_bak # wget http://mirror.pishit.com/etc/vsftpd.conf # touch chroot_list # chmod 777 chroot_list # setenforce 0 # chkconfig vsftpd on จากนั้นสั่ง...

วิธีทำ Firewall ป้องกัน Server ที่ใช้ CP ของ Kloxo

Kloxoวิธีนี้เอามาจากเว็บ lxcenter.org นะครับ แต่เห็นเป็นภาษาอังกษฤครับเลยอยากให้มีไทยบ้างครับหลักการของเค้าก็คือใช้ ปิด IPTABLES ไว้ก่อนครับแล้วทำ firewall rules ขึ้นมาใหม่ครับแล้วทำให้ firewall run ตอน boot ทุกครั้งครับโดยสร้าง script ไว้ที่ /etc/init.d/ ครับ เหมือน service ตัวหนึ่งเลยละครับทำง่ายมากๆ ครับที่อธิบายผมก็พอเข้าใจแบบนี้ครับ เทพที่ผ่านมาเจออย่าว่ากันนะครับ หุๆ มาดูวิธีกันเลยครับ อย่างแรกสั่ง ปิด service IPTABLES: # /etc/init.d/iptables stop กำหนดให้ service ไม่ต้อง run ตอน boot (เดี่ยวจะมีการสั่งเองในตัว script): # chkconfig iptables off จากนั้นท่านจะใช้คำสั่ง touch หรือ vi, vim อะไรก็ได้ครับสร้างไฟล์ชื่อ firewall ที่ตำแหน่ง...

Thursday, September 8, 2011

Kloxo Installation Guide : คู่มือการติดตั้ง Kloxo นะตัวเธอ

หลังจากที่หลวมตัวไปเช่า VPS ของ PhotonVPS มาแล้ว ในแพ็คเกจ warp 2 สั่ง DirectAdmin ไปด้วย แต่ไม่ใช้ กร๊ากๆๆ เสียเงินทิ้ง เพราะอยากลองของฟรีดูบ้าง จริงๆ ไม่น่าสั่งตั้งแต่ตอนแรกแล้วล่ะ แล้วก็ไปหลงทาง เสียเวลากับ Webmin ไปนิดหน่อย พบกว่าไม่ใช่แนวทางที่ตัวเองชอบ กร๊ากๆๆ เลยเปลี่ยนแนวมาลองเล่น Kloxo ดูบ้าง พอดีมีเทรนเนอร์ด้วย จะได้ไม่ต้องถามใครอื่นไกล เอิ๊กๆ เริ่มกันเลยดีกว่า มาเช็คสเป็ค VPS หรือ Dedicated ของคุณก่อน ว่าใช้งานได้หรือไม่ 1.  ต้องเป็น CentOS หรือ Red Hat EL (versions 5.1+) เท่านั้นนะ สำคัญ 32 Bit ด้วย 2.  ต้องมีแรมอย่างน้อย 256 MB (หลังจากติดตั้ง Kloxo แล้ว จะใช้แรมนิดหน่อย ประมาณ 33 MB เท่านั้น!!) 3.  ต้องมีพื้นที่ว่างอย่างน้อย...

Monday, June 27, 2011

วิธี จูน tune Kloxo เบื้องต้น

เริ่มเลยก็ php ก็ลงพวก xcache  kloxo มีให้ enable xcache แล้ว ตัวลงก็อยู่ที่ /script/xcache-install ต่อมาก็ web server apache httpd ก็ต้อง tune เพิ่ม /etc/httpd/conf.d/swtune.conf ServerLimit        100 MaxClients         100 MaxRequestsPerChild  1000 min max ไม่ต้องมากเพราะเปลืองแรมไป เพิ่มตรงส่วน serverlimit maxclient ขึ้นมา สุดท้ายก็ mysqld เพิ่มตรงส่วน buffer พวก cache  ให้มากขึ้น หา mysqltuner.pl  tuning-primer.sh มาช่วย tune แล้ว monitor ดูไปเรื่อยๆ ใช้ top, mytop ,server-status เข้าช่วย...

Friday, May 6, 2011

Kloxo - IP Address Changed Amidst Session. Possible Session Hijacking.

Kloxo - IP Address Changed Amidst Session. Possible Session Hijacking. Login ไม่ได้ ในกรณีที่ ท่าน ติดตั้ง proxy : 94e2acaddf7cc43120d76fce2c7eaba9.media.640x306.jpg (14.21 KB) 2011-2-17 23:08 ท่านต้องไป คลิก ปิด ตาม รูป นะครับ ถึง จะ login ...

Saturday, February 12, 2011

mysqld ไม่สามารถใช้งานได้ แต่ status ก็ไม่ตาย ใครเคยเจอบ้าง

แบบอยู่ๆ ทุกเว็บก็ connect mysqld ไม่ได้ แต่พอ ssh เข้าไปเช็ค [root@server root]# service mysqld status mysqld (pid 22214) is running... ผมแก้แค่ [root@server root]# kill -9 22214 มันก็ใช้งานได้เลยนะครับ โดยเปลี่ยน pid [root@server root]# service mysqld status mysqld (pid 22548) is running... แต่ปัญหาคือต้องมาค่อย kill มันนะครับเลยไม่รู้สาเหตุว่าทำไมอยู่ๆมันถึงทำงานไม่ได้นะครับ มีใครเคยเจอบ้างไหมครับ ใช้ linux + plesk นะครับ ขอบคุณครับ เช็ค log มันขึ้นแบบนี้นะครับจาก /var/log/mysqld.log [root@server log]# cat mysqld.log.1 A mysqld process already exists at  Sat May 3 20:02:28 ICT 2008 080503 20:02:55  mysqld ended 080503 20:05:27  mysqld started 080503 20:05:28  InnoDB: Out of memory in additional memory pool. InnoDB: InnoDB will start allocating memory from the...

Friday, February 11, 2011

mysqld dead but subsys locked โขว์แบบนี้ ติดตั้งแต่ kloxo อย่างเดียว เกิดจากอะไร

ysqld dead but subsys locked โขว์แบบนี้ ติดตั้งแต่ kloxo อย่างเดียว เกิดจากอะไร ยังไม่ได้ใส่เว็บเลย ต้องทำอะไรที่ไม่ให้เป็นบ่อยๆครับ Quote100811 13:29:40  mysqld started 100811 13:29:40  InnoDB: Started; log sequence number 0 71442 100811 13:29:40 [Note] /usr/libexec/mysqld: ready for connections. Version: '5.0.91'  socket: '/var/lib/mysql/mysql.sock'  port: 3306  Source distribution 100812 11:59:03 [Note] /usr/libexec/mysqld: Normal shutdown 100812 11:59:03  InnoDB: Starting shutdown... 100812 11:59:04  InnoDB: Shutdown completed; log sequence number 0 71452 100812 11:59:04 [Note] /usr/libexec/mysqld: Shutdown complete 100812 11:59:04  mysqld ended 100812 12:01:12  mysqld started 100812 12:01:13  InnoDB: Started; log sequence number 0...

Thursday, February 10, 2011

Alert: Could Not Connect to Database: The error has been logged. Please contact the administrator....

I ssh to server with root roles and change mysql root password. When I login to localhost:7777 with user admin and create new database, I get error below: Quote:Alert: Could Not Connect to Database: The error has been logged. Please contact the administrator.... Old database still work. How to fix it? ======================================== Home (admin)/Servers/Server Home (localhost)/Database/Admins and change the password to the one u provided over ssh i'm not much a linux guy but have learned that ssh with root can make me a lot of problems (probably cause i'm not a linux guy --------------------------------------------------------------------------- try Home (admin)/Servers/Server Home (localhost)/Database/Admins and change the password to the one u provided over ssh i'm...

Saturday, February 5, 2011

Kloxo อัพไฟล์แล้ว Alert: file_exists_not_owned แก้ยังไง

 อัพไฟล์ zip ผ่านทาง File Manager ของ Kloxo แต่ Alert: file_exists_not_owned [/home/admin/mydomain.net/test//xxxxxxxt.zip] แก้ยังไงครับ  ================================================ Alert: file_exists_not_owned [__path_customer_root/admin//love4m.com/forum/smilies.php] Looks like ownership problems @unix. Get into the SSH --> to that directory cd love4m.com/forum then chown user:apache * -R user:apache = unix_username : unix_groupname -R means that it will reset ownership permissions. The user = the name of that unix account. If you have a different configuration of permissions and ownerships, then you need to identify the ownership of other files in that directory and change user = that_name and groupname. Once in my case, the username did not exists for...

Monday, January 24, 2011

Migrating wpmu blog to new host

I have job to transfer wordpress multi user to new host. The wpmu system currently host 400+ with subdomain type. The old host and new host use same operating system FreeBSD dedicated server but with different version. The procedure for move wpmu to new host not different than moving ordinary wordpress blog. Preparing and packing1. Dumping mysql database #  mysqldump -udtonet2 -pdotnet22008 dotnet2 > dotnet.sql2. Packing all files to one tarball # tar cvzf wordpress-mu.tar.gz  wordpress-mu3. Transfer the file to new host # scp wordpress-mu.tar.gz erau@172.88.1.8:/home/erauPassword: wordpress-mu.tar.gz                    100%   402MB  13.9MB/s   00:03 # 4. Change...

Kloxo 500 – Internal Server Error

Kloxo control panel aka lxadmin in the past help me a lot in managing vps operational. I don’t have to touch configuration file for adding new domain, setting virtual host, grant database username and privileges etc. The other best part of this cpanel alternative are : It’s free ( I can asking for help or install it by myself) Low resources (specially memory where most  low end vps plan has limited) Problem came when I must add new domain for my friend blog. I see this message after I enter username and password : 500 – Internal Server ErrorI think it just small problem with service and  library conflict. Restart Kloxo 1 st attempt...

 
Design by Laikeng | Bloggerized by Storesu - sutoday | Court