สอบถามการ Uninstall DirectAdmin

สวัสดีครับ พี่ๆๆ ชาว Thaihosttalk
ผมอยากจะสอบถามเกี่ยวกับการ Uninstall DirectAdmin เพื่อลงใหม่ พอมีวิธีใหม่ครับ เนื่องจากตอนผมลง DirectAdmin จะมีให้เลือก

1: customapache: end-of-life software. Apache 1.3, php 4, frontpage. Do not use. No support.
2: custombuild 1.1: newer software (recommended). Apache 2.x, php 4, 5, or both in cli and/or suphp. Defaults to php 5.2
3: custombuild 1.2: simlar to 1.1, newer default versions. Apache 2.x, php 5, 6, or both in cli and/or suphp. Defaults to php 5.3

คือผมไปกดเลือกอันที่ 3 นะครับถ้า
3: custombuild 1.2: simlar to 1.1, newer default versions. Apache 2.x, php 5, 6, or both in cli and/or suphp. Defaults to php 5.3

ถ้าเราจะทำการเปลี่ยนเป็นอันที่ 2
2: custombuild 1.1: newer software (recommended). Apache 2.x, php 4, 5, or both in cli and/or suphp. Defaults to php 5.2

พอมีวิธีไหมครับ ผมทดลอง ลง DirectAdmin ทับแล้วไม่ได้ครับ ปัญหาคือมันไ่ม่สามารถรันเว็บใช้ PHP ตัวเก่าได้ และมีปัญหากับเว็บหลายเว็บครับที่ใช้ PHP เวอร์ชั่นเก่า ผมทดลอง ดาวเวอร์ของ PHP แล้วก็ยังไม่สามารถรันได้นะครับ

ขอบคุณมากครับ
วุฒิ:baa60776:

ลงทับของเก่าแล้วเลือกตัวเลือกที่ต้องการ ก็ไม่มีปัญหาไรนะครับไม่ต้อง Uninstall

ลงทับไปเลยครับ
./build clean
./build update
./build all d

cd /usr/local/directadmin
mv custombuild custombuild.old
wget http://files.directadmin.com/services/custombuild/1.1/custombuild.tar.gz
tar xvzf custombuild.tar.gz
cd custombuild
./build update_data
./build all d

ขอบคุณมากครับ
ผมลองแล้วครับเว็บที่เอาขึ้นไป หน้าเว็บจะขึ้นแบบนี้ครับ
(time() - $expire)) { $newestuser = unserialize(file_get_contents($file2)); } else { $res = mysql_query(“SELECT id,username FROM users WHERE status=‘confirmed’ ORDER BY id DESC LIMIT 1”) or die(mysql_error()); while ($user = mysql_fetch_array($res) ) { $newestuser[] = $user; } $OUTPUT = serialize($newestuser); $fp = fopen($file2,“w”); fputs($fp, $OUTPUT); fclose($fp); } // end else foreach ($newestuser as $a) { $latestuser = “" . $a[“username”] . "”; } } $file = “$CACHE/index/stats.txt”; $expire = 10*60; // 10 minutes if (file_exists($file) && (filemtime($file) > (time() - $expire))) { $a=unserialize(file_get_contents($file)); $male = $a[1]; $female= $a[2]; $registered = $a[3]; $unverified = $a[4]; $torrents = $a[5]; $ratio = $a[6]; $peers = $a[7]; $seeders = $a[8]; $leechers = $a[9]; $NAT = $a[10]; } else { $male =

แต่อีกเครื่องไม่เป็นครับ ตัวนั้นผมเลือก (ลงให้กับเพื่อนนะครับ)
2: custombuild 1.1: newer software (recommended). Apache 2.x, php 4, 5, or both in cli and/or suphp. Defaults to php 5.2

อ๋อ อีกนิดครับเครื่องตัวนี้เป็น VPS ของต่างปรเทศครับ (ตัวนี้เช่าไว้เองแต่ Run เว็บไม่ขึ้นนะครับ)เพราะไปเลือกลงตัวนี้ครับ
3: custombuild 1.2: simlar to 1.1, newer default versions. Apache 2.x, php 5, 6, or both in cli and/or suphp. Defaults to php 5.3

ตอนนี้ยังไม่ทราบว่าจะแก้ไขยังไงเลยครับ
ขอบคุณมากครับ

compile php ใหม่ก็ได้ละครับ

cd /usr/local/directadmin/custumbuild
./build set php5_ver 5.2
./build php

ขอบคุณมากครับ
แต่ยังไม่หายครับ ยังไม่สามารถรันเว็บไ้ด้ครับ แต่เว็บใหม่ๆๆ เช่น Joomla พวกนี้ลงได้ครับ
ใน DirectAdmin (System Information)

Apache 2.2.23
DirectAdmin 1.41.1
MySQL 5.0.67
Php 5.2.17

แต่มีอีกหลายเว็บยังรันไม่ได้ครับ ยังขึ้นแบบนี้อยู่ครับ

(time() - $expire)) { $newestuser = unserialize(file_get_contents($file2)); } else { $res = mysql_query(“SELECT id,username FROM users WHERE status=‘confirmed’ ORDER BY id DESC LIMIT 1”) or die(mysql_error()); while ($user = mysql_fetch_array($res) ) { $newestuser[] = $user; } $OUTPUT = serialize($newestuser); $fp = fopen($file2,“w”); fputs($fp, $OUTPUT); fclose($fp); } // end else foreach ($newestuser as $a) { $latestuser = “" . $a[“username”] . "”; } } $file = “$CACHE/index/stats.txt”; $expire = 10*60; // 10 minutes if (file_exists($file) && (filemtime($file) > (time() - $expire))) { $a=unserialize(file_get_contents($file)); $male = $a[1]; $female= $a[2]; $registered = $a[3]; $unverified = $a[4]; $torrents = $a[5]; $ratio = $a[6]; $peers = $a[7]; $seeders = $a[8]; $leechers = $a[9]; $NAT = $a[10]; } else { $male =

ขอบคุณพี่ๆๆ ทุกท่านที่ช่วยนะครับ

ไม่ต้องเอาออกครับ ลงใหม่ทับได้เลย
จริงๆแล้วใช้ custombuild 1.2 ก็ได้ครับไม่จำเป็นต้องเปลี่ยนเป็น 1.1

เข้าไปใน custombuild แล้วแก้ไฟล์ options.conf แก้ version ของ httpd php mysql เป็นเวอร์ชั่นที่ต้องการ แล้วเรียก ./build all d ให้มันติดตั้งใหม่ก็เป็นอันเรียบร้อย

วิธีเปลี่ยน custombuild จาก 1.2 ไปเป็น 1.1 ให้แก้ไฟล์ /root/.custombuild แก้เลข 1.2 เป็น 1.1 แล้วก็ต้องไปแก้ version ใน options.conf แล้ว build ใหม่ตามข้างบน ซึ่งจริงๆใช้ 1.2 มันก็ไม่ได้ต่างกัน แค่มัน default มาให้ต่าง version กันเท่านั้น และ 1.2 ทำอะไรได้มากกว่า 1.1

ขึ้น code แบบนั้นแปลว่า php ไม่ทำงาน คิดว่าเดิมลง php แบบ cgi ไว้

แก้ options.conf ตามนี้ (บรรทัดอื่นๆไว้อย่างเดิม) (mysql จะใช้เป็น 5.1 ก็ได้)

default_php=5
php5_cli=yes
php5_cgi=no
php4_cli=no
php4_cgi=no
php_ini=yes
php_ini_type=recommended

mysql=5.0
mysql_inst=yes
mysql_backup=yes

apache_ver=2.2

mail-header-patch=yes

php5_ver=5.2

แล้ว build ใหม่
./build clean
./build mysql
./build apache
./build php d
./build rewrite_confs

ถ้าลง OS ใหม่ ป่านนี้คงหมดปัญหาไปนานแล้วมั้งครับ

แค่นี้ทำไมต้องลง os ใหม่ครับ

จริงๆๆ ผมอยากลงใหม่ครับ ผมแจ้งลง CentOS ไปทาง ต่างประเทศแล้วครับ (3 วันแล้วครับยังไม่ได้คำตอบครับ) ก็เลยมาศึกษาเพื่อหาทางแก้ไขดูก่อน

ถ้ายังไม่มีข้อมูลอะไรลง os ใหม่ก็ง่ายดีครับ แต่ถ้ามีข้อมูลหลายเว็บแล้วใช้เวลา restore ค่อนข้างนาน แก้ให้ใช้ได้ตามข้างบนน่าจะเสียเวลาน้อยกว่า

พอแก้ได้เสร็จ ทางนั้นลง OS ให้ใหม่ :63d4808b:

short_open_tag ใน php.ini เป็น off หรือเปล่าครับ :slight_smile:

ใช่เลยครับ
ผมเพิ่งลง DA ให้ลูกค้าผิด สคริปเน่าแบบท่านด้านบน นั่งบิ้ว PHP หลายรอบก็ไม่หาย ลองเข้าไปตรวจดูแก้ไขตามที่ท่านบอก ใช้ได้เลยครับ ขอบคุณมากครับ