Create an account    
 home  
 
Web www.thaihealth.net
  You are here:> home>topics> Basic PHP > การติดตั้ง PHPบน Linux แบบไม่เหงื่อตก ©
Linux,PHP&MySQL: การติดตั้ง PHPบน Linux แบบไม่เหงื่อตก
Posted on Tuesday, September 30 @ 09:53:13 GMT+7 by admin

Basic PHP

เคยเหงื่อตกกับการติดตั้ง?

แน่นอนว่าหลายท่านที่มีประสบการณ์คงไม่มีปัญหา แต่ผมนี่สิเหงื่อตกหลายถัง กว่าจะให้มันเพอร์เฟคแบบ เอ๊าะ ๆ วิ่งฉิวเหมือนกระต่ายน้อย ๆ
PHP คืออะไร ทำไมต้องมี อ้าว ถามอย่างนี้ก็ต้องบอกว่า คงต้องหาอ่านก่อน อัน PHP คือโปรแกรมสำเร็จ ที่อยู่ฝั่ง server เขียนขึ้นมาเพื่อรองรับการทำงานเกี่ยวกับเวปโดยเฉพาะ ทำหน้าที่เป็นตัวสร้างเวปไซด์แบบไดนามิค ไม่เหมือน html ที่เวลาจะเปลี่ยนอะไรทีต้องอัพโหลดข้อมูลไปใหม่ที อันนี้ว่ากันแบบง่ายสุด ๆนะ


ตอนนี้ PHP เจริญก้าวหน้าไกลมาก และรวดเร็ว ล่าสุดที่ stable คือ version 4.3.3 ใครอยากดาวน์โหลด ไปที่นี่

PHP download

แต่ เดี๋ยวก่อน ใครที่ลง php ตั้งแต่ติดตั้ง RedHat โปรดทราบ ท่านต้องเอา php ของท่านออกก่อน วิธีการเอาออกก็สั่งดังนี้

rpm -e php-imap

rpm -e php-devel

rpm -e php

เป็นอันเสร็จ(ในกรณีที่ท่านลง php-mysql ก็ต้องเอาออกโดย rpm -e php-mysql)

ขั้นต่อไปก็คือหลังจากดาวน์โหลดมาได้เป็น สมมุติว่า php-4.3.3.tar.gz ก็ใช้คำสั่งว่า

# tar xvfz php-4.3.3.tar.gz ก็จะแตกไฟล์มาได้
# cd php-4.3.3
ตอนนี้สำคัญ จะเป็นการ configure เหงื่อตกไม่ตกอยู่ตรงนี้ เพราะบางที library ที่เราลงตอน redhat มันดันไม่ครบ ต้องมาลงใหม่ สมัยก่อน เช่น GD library สำหรับการจัดการรูปภาพ (สมัยนี้ดีหน่อย มันมีมากะ php เลย)
# ./configure --prefix=/usr --with-apxs=/usr/local/apache2/bin/apxs --enable-ftp --with-zlib-dir=/usr --with-openssl --with-mysql=/usr/local/mysql --with-mysql-sock=/tmp/mysql.sock --enable-force-cgi-redirect --enable-pcntl --enable-shmop --enable-xml --with-gd --with-bz2 --with-ttf --with-png --with-jpeg-dir=/usr --with-png-dir=/usr --with-freetype-dir=/usr --with-expat-dir=/usr --with-config-file-path=/etc --with-gmp --enable-socket --enable-force-cgi-redirect --with-pear=/usr/share/pear --with-ldap=shared --with-pspell --disable-debug --disable-rpath --disable-posix --enable-pic --enable-safe-mode --enable-magic-quotes --enable-discard-path --enable-bcmath --enable-dio --enable-gd-native-ttf --enable-sysvsem=shared --enable-sysvshm=shared --enable-track-vars --enable-memory-limit --enable-inline-optimization --enable-calendar
# make
# make install
# make clean
เป็นไง ผ่านไหม ถ้าไม่ผ่านจะติดบางตัว แล้วก็มีคนไข้มาอีก พรุ่งนี้จะอธิบายแต่ละตัว แต่ขอบอกว่า นี่เป็นการลงเพื่อความเร็วและเพื่อปลอดภัยด้วย ดังนั้น บางตัวลงไม่หมด หรือไม่เหมือนชาวบ้านเขา แต่ปลอดภัยแน่นอน

blog this


blog this

More about phpbasic
· PHP5 Release candidate is out now, try!2004-03-23 12:22:54
· How to , when new user register to put more of their informations.!2004-02-19 12:54:03
· Thaihealthnews V2.02module-need calendar function2003-11-28 01:08:26
· here is a scoop for PHP. cool!2003-10-17 19:37:55

Comment Post
1  by
on Sunday, March 16 @ 19:55:47 GMT+7
< href="http://f.jsoftj.com/">URL blocked by staff منتديا&

Read the rest of this comment...




Your Name:

[ New User ]

Subject:


Comment:

Allowed HTML:
<b> <i> <a> <em> <br> <strong> <blockquote> <tt> <li> <ol> <ul>
Security code:



T news tweak
 

       Sponsored Links
       Related Links
· More about Basic PHP
· News by admin


Most read story about Basic PHP:
 How to , when new user register to put more of their informations.!(8947)

       Article Rating
Average Score: 0
Votes: 0

Please take a second and vote for this article:

Excellent
Very Good
Good
Regular
Bad


       Options

 Printer Friendly  Printer Friendly

 Send to a Friend  Send to a Friend

News ©

เล่นเกมส์ arcade games free!

main sitethaihealth | home | forums | downloads | topics

Seo from our desk thai seo
Web site engine code is Copyright © 2003 by PHP-Nuke.Copyright 2007 Thaihealth and pattaya doctor
Page Generation: 0.215 Seconds

Theme developed by WebDesignHQ.com Modified By DoctorNUKE