เราสีแดง, นักรบไซต์เบอร์, พวกเราชาวสีแดง, ความจริงวันนี้, เผด็จการซ่อนรูป, ต้านเผด็จการ,เผด็จการ
Would you like to react to this message? Create an account in a few clicks or log in to continue.


เราสีแดง, นักรบไซต์เบอร์, พวกเราชาวสีแดง, ความจริงวันนี้, เผด็จการซ่อนรูป, ต้านเผด็จการ,เผด็จการ,
 
บ้านบ้าน  Latest imagesLatest images  ค้นหาค้นหา  สมัครสมาชิก(Register)สมัครสมาชิก(Register)  เข้าสู่ระบบ(Log in)เข้าสู่ระบบ(Log in)  

 

 ลง Apache 2.2 + PHP + MySQL + FileZilla ด้วยตัวเอง (ตอน 3 / 4)

Go down 
ผู้ตั้งข้อความ
Admin
Admin



จำนวนข้อความ : 264
Join date : 08/05/2009

ลง Apache 2.2 + PHP + MySQL + FileZilla ด้วยตัวเอง (ตอน 3 / 4) Empty
ตั้งหัวข้อเรื่อง: ลง Apache 2.2 + PHP + MySQL + FileZilla ด้วยตัวเอง (ตอน 3 / 4)   ลง Apache 2.2 + PHP + MySQL + FileZilla ด้วยตัวเอง (ตอน 3 / 4) EmptySun May 10, 2009 9:36 am

ตอนที่ ๓
ติดตั้ง MySQL

~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~

เอาหล่ะครับ เราก็ได้ลง Apache กับ PHP แล้ว เรามาลง MySQL บ้าง
(Well, we've installed Apache and PHP, now we'll install MySQL)

เข้าไปที่ www.mysql.com แล้วกด Downloads ตรงด้านซ้ายเลยครับ
(Go to www.mysql.com and click downloads at the left.)

ลง Apache 2.2 + PHP + MySQL + FileZilla ด้วยตัวเอง (ตอน 3 / 4) Image20

กดปุ่ม Download ตรงด้านซ้ายครับ
(Click the download button.)

ลง Apache 2.2 + PHP + MySQL + FileZilla ด้วยตัวเอง (ตอน 3 / 4) Image21

กด Pick a mirror ตรง Windows Essentials แล้วคลิก No thanks, just take me to .....
(Click the pick a mirror link near Windows Essentials, then click No thanks, just tak......)

แล้วเลือกสาขาที่ต้องการ
(Select the mirror.)

ลง Apache 2.2 + PHP + MySQL + FileZilla ด้วยตัวเอง (ตอน 3 / 4) Image24

พอโหลดเสร็จ เปิดโปรแกรมเลยครับ
(After loading open the program.)

ลง Apache 2.2 + PHP + MySQL + FileZilla ด้วยตัวเอง (ตอน 3 / 4) Image25

เลือก Typical แล้ว Next ไปเรื่อยๆ จนลงโปรแกรมเสร็จครับ
(Select typical and finish the installation.)

ลง Apache 2.2 + PHP + MySQL + FileZilla ด้วยตัวเอง (ตอน 3 / 4) Image28

ต่อไปจะเป็นการ Config MySQL Server ครับ
(Now we'll config the MySQL server.)

ลง Apache 2.2 + PHP + MySQL + FileZilla ด้วยตัวเอง (ตอน 3 / 4) Image29

ตาม Step เลยนะครับ...
(Follow the steps:)

Detailed Configuration, Next!

Developer Machine, Next!

Multifunctional Database, Next!

ตรงนี้ ให้เลือกว่าจะลงไฟล์ Data ต่างๆ ไว้ที่ไหน
(Select where to install the data files.)

ลง Apache 2.2 + PHP + MySQL + FileZilla ด้วยตัวเอง (ตอน 3 / 4) Image33

Decision Support (DSS)/OLAP, Next!

Next!

มาถึงตรงนี้ ให้ ตั้งเป็น UTF-8 นะครับ, Next!
(At this point, choose UTF-8, say, best for multilingualism.)

ลง Apache 2.2 + PHP + MySQL + FileZilla ด้วยตัวเอง (ตอน 3 / 4) Image36

ติ๊กตรง Include bin directory in PATH, Next!
(Include the bin directory in your path.)

ลง Apache 2.2 + PHP + MySQL + FileZilla ด้วยตัวเอง (ตอน 3 / 4) Image37-1

ใส่ Password ของ root แล้วกด Next!
(Type in the root password and click next!)

Execute, Next!

Finish!

ลง Apache 2.2 + PHP + MySQL + FileZilla ด้วยตัวเอง (ตอน 3 / 4) Image40
ขึ้นไปข้างบน Go down
http://democraticthai.forumotion.com
Admin
Admin



จำนวนข้อความ : 264
Join date : 08/05/2009

ลง Apache 2.2 + PHP + MySQL + FileZilla ด้วยตัวเอง (ตอน 3 / 4) Empty
ตั้งหัวข้อเรื่อง: Re: ลง Apache 2.2 + PHP + MySQL + FileZilla ด้วยตัวเอง (ตอน 3 / 4)   ลง Apache 2.2 + PHP + MySQL + FileZilla ด้วยตัวเอง (ตอน 3 / 4) EmptySun May 10, 2009 9:37 am

~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~

ตอนที่ ๓ ครึ่ง
ตั้งค่า PHP

~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~

ต่อไปเราจะตั้งค่า PHP กันนะครับ
(Now we'll configure PHP)

ไปที่ C:\php แล้วเปิดไฟล์ php.ini ครับ
(Open php.ini)

ราวๆ บรรทัดที่ 360 display_errors = Off แก้เป็น On ครับ
(Around the line number 360 change display_errors from Off to On.)

แถวๆ บรรทัดที่ 478 magic_quotes_gpc = Off แก้เป็น On ครับ
(Around the line number 478 change magic_quotes_gpc from Off to On.)

แถวๆ บรรทัดที่ 585 upload_max_filesize = 2M แก้เป็น 4M ครับ
(Around the line number 585 change upload_max_filesize from Off to On.)

เซฟไฟล์ครับ แล้วใน C:\php จะมีไฟล์ชื่อ libmysql.dll ให้ก๊อบไปที่ C:\Windows\system32
(Save the file. You will see libmysql.dll, copy it to C:\Windows\system32)

ถ้าต้องการสามารถแก้ register_globals เป็น On ก็ได้ครับ แต่ผมไม่แนะนำครับ แต่ถ้าจำเป็นจริงๆ ก็เปิดได้ครับ
(If you want you can change register_globals to On but this is not recommended.)
(If you really need it it's ok.)

Restart Apache ครับ
(Restart Apache)

ลง Apache 2.2 + PHP + MySQL + FileZilla ด้วยตัวเอง (ตอน 3 / 4) Image45

~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~

ตอนที่ ๓ เกือบ ๔
ทดสอบ MySQL

~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~

แก้ไฟล์ test.php โดยใส่โค้ดนี้ไปแทน
(Edit the test.php)

<?php
$m = mysql_connect('localhost', 'root', 'password!');
echo '<h1>' . ($m ? 'MySQL Works!' : 'No!') . '</h1>';
?>

(แก้ password! ด้วยนะครับ!)
(Change the password also)

ลองเปิด http://localhost/test.php อีกครั้งหนึ่ง น่าจะเห็นข้อความว่า MySQL Works!
(Try opening the test file again, you should see that MySQL works!)
ขึ้นไปข้างบน Go down
http://democraticthai.forumotion.com
 
ลง Apache 2.2 + PHP + MySQL + FileZilla ด้วยตัวเอง (ตอน 3 / 4)
ขึ้นไปข้างบน 
หน้า 1 จาก 1
 Similar topics
-
» ลง Apache 2.2 + PHP + MySQL + FileZilla ด้วยตัวเอง (ตอน 1 / 4)
» ลง Apache 2.2 + PHP + MySQL + FileZilla ด้วยตัวเอง (ตอน 2 / 4)
» ลง Apache 2.2 + PHP + MySQL + FileZilla ด้วยตัวเอง (ตอน 4 / 4)

Permissions in this forum:คุณไม่สามารถพิมพ์ตอบ
เราสีแดง, นักรบไซต์เบอร์, พวกเราชาวสีแดง, ความจริงวันนี้, เผด็จการซ่อนรูป, ต้านเผด็จการ,เผด็จการ :: Develop Zone! :: Webbuilder Zone-
ไปที่: