SlideShare a Scribd company logo
1 of 8
Sử dụng Cloud9 để học PHP
• Mặc dù bạn có thể học và thực hành trên localhost nhưng trong
serie này, mình khuyến khích các bạn sử dụng công cụ Cloud IDE
tên Cloud9. Lý do là mình đã rút ra được một kinh nghiệm là không
phải localhost của ai cũng giống nhau và đôi khi nhiều người bị mắc
kẹt do localhost bị lỗi linh tinh, nên nếu có thể bạn nên sử dụng
Cloud9 cho giống nhau hoàn toàn.
• Ngoài ra, ở serie này mình cũng muốn nói qua cho bạn biết một xíu
về các dòng lệnh Linux, thiết lập trong php.ini, sử dụng composer vì
đây là quy trình làm việc hiện đại, sử dụng Linux, bạn nên biết nó để
linh hoạt về sau. Nếu bạn chưa biết Cloud9 là gì thì xem tại đây.
Tạo Project
• Ngay sau khi tạo tài khoản tại Cloud9, bạn vào Dashboard và ấn vào
nút Create New Workspace (Tạo vùng làm việc mới).
• Tại đây, bạn đặt tên cho project của mình (không dấu) và chọn ứng
dụng WordPress để nó tự cài một trang WordPress mới cho mình.
• Sau đó bạn đợi một xíu để nó tạo project cho bạn, tạo xong bạn sẽ
thấy nút Start Editing.
• Bây giờ bạn sẽ được chuyển đến khu vực IDE để tiến hành làm
việc với code.
• Bây giờ ở khu vực dòng lệnh (bash -"user..."), bạn gõ lệnh sau để khởi
động MySQL.
• mysql-ctl start
• Và khởi động webserver bằng cách ấn nút Run Project ở phía trên.
• Và bây giờ hãy nhìn xuống lại phần dòng lệnh ở tab WordPress -
Running..., bạn sẽ thấy địa chỉ website dự án của mình, bạn có thể
truy cập vào địa chỉ đó để cài đặt WordPress.
• Và nếu bạn truy cập website bằng Cloud9 IDE thì tab WordPress -
Running sẽ có hiển thị các access log để bạn theo dõi.
• Bây giờ ở phần Console, sẽ có 3 tab mà bạn cần biết chức năng của nó là:
• bash - "user": Tab này là nơi bạn sẽ sử dụng các lệnh Linux.
• Immediate: Tab này là phần console để bạn thử nghiệm các đoạn Javascript.
• WordPress - Running: Access log của website.
• Bạn không nên tắt nó nhé. Ngoài ra bạn có thể tạo ra thêm nhiều tab mới.
• Okay, tạm thời ở bài này chỉ có như vậy. Trước mắt bạn đã có một project trên Cloud9
IDE và nó như là một website vậy, nhưng serie này chúng ta sẽ sử dụng nó để học PHP
trên WordPress mà thôi.
• Ở bài sau, mình sẽ giới thiệu qua tập tin php.ini vốn là tập tin cấu hình PHP trên máy chủ.
Mình sẽ cho các bạn làm quen qua một vài thiết lập thông dụng để bạn hiểu nó tốt hơn
trước khi bắt đầu với PHP.

More Related Content

Viewers also liked

Introduce anypoint studio
Introduce anypoint studioIntroduce anypoint studio
Introduce anypoint studioSon Nguyen
 
Automatic exporting document
Automatic exporting documentAutomatic exporting document
Automatic exporting documentSon Nguyen
 
Word press là gì
Word press là gìWord press là gì
Word press là gìSon Nguyen
 
Cách đăng post lên word press
Cách đăng post lên word pressCách đăng post lên word press
Cách đăng post lên word pressSon Nguyen
 
Zen and the Art of REST API documentation - MuCon London 2015
Zen and the Art of REST API documentation - MuCon London 2015Zen and the Art of REST API documentation - MuCon London 2015
Zen and the Art of REST API documentation - MuCon London 2015Steve Judd
 
ứNg dụng xml
ứNg dụng xmlứNg dụng xml
ứNg dụng xmlSon Nguyen
 
Cloud hub and mule
Cloud hub and muleCloud hub and mule
Cloud hub and muleSon Nguyen
 
Anypoint mq queues and exchanges
Anypoint mq queues and exchangesAnypoint mq queues and exchanges
Anypoint mq queues and exchangesSon Nguyen
 
Increase revenue and reinvigorate your business with api
Increase revenue and reinvigorate your business with apiIncrease revenue and reinvigorate your business with api
Increase revenue and reinvigorate your business with apiSon Nguyen
 
Alerts and SLAs
Alerts and SLAsAlerts and SLAs
Alerts and SLAsSon Nguyen
 
Tùy biến hiển thị danh sách
Tùy biến hiển thị danh sáchTùy biến hiển thị danh sách
Tùy biến hiển thị danh sáchSon Nguyen
 
Let api change your relationship with your doctor
Let api change your relationship with your doctorLet api change your relationship with your doctor
Let api change your relationship with your doctorSon Nguyen
 
Class và object (lớp và đối tượng
Class và object (lớp và đối tượngClass và object (lớp và đối tượng
Class và object (lớp và đối tượngSon Nguyen
 
Mule flow complete
Mule flow completeMule flow complete
Mule flow completeSon Nguyen
 

Viewers also liked (17)

Introduce anypoint studio
Introduce anypoint studioIntroduce anypoint studio
Introduce anypoint studio
 
Mule roles
Mule rolesMule roles
Mule roles
 
Automatic exporting document
Automatic exporting documentAutomatic exporting document
Automatic exporting document
 
Word press là gì
Word press là gìWord press là gì
Word press là gì
 
Cách đăng post lên word press
Cách đăng post lên word pressCách đăng post lên word press
Cách đăng post lên word press
 
Zen and the Art of REST API documentation - MuCon London 2015
Zen and the Art of REST API documentation - MuCon London 2015Zen and the Art of REST API documentation - MuCon London 2015
Zen and the Art of REST API documentation - MuCon London 2015
 
Mule jms
Mule   jmsMule   jms
Mule jms
 
ứNg dụng xml
ứNg dụng xmlứNg dụng xml
ứNg dụng xml
 
Cloud hub and mule
Cloud hub and muleCloud hub and mule
Cloud hub and mule
 
Anypoint mq queues and exchanges
Anypoint mq queues and exchangesAnypoint mq queues and exchanges
Anypoint mq queues and exchanges
 
Mule users
Mule usersMule users
Mule users
 
Increase revenue and reinvigorate your business with api
Increase revenue and reinvigorate your business with apiIncrease revenue and reinvigorate your business with api
Increase revenue and reinvigorate your business with api
 
Alerts and SLAs
Alerts and SLAsAlerts and SLAs
Alerts and SLAs
 
Tùy biến hiển thị danh sách
Tùy biến hiển thị danh sáchTùy biến hiển thị danh sách
Tùy biến hiển thị danh sách
 
Let api change your relationship with your doctor
Let api change your relationship with your doctorLet api change your relationship with your doctor
Let api change your relationship with your doctor
 
Class và object (lớp và đối tượng
Class và object (lớp và đối tượngClass và object (lớp và đối tượng
Class và object (lớp và đối tượng
 
Mule flow complete
Mule flow completeMule flow complete
Mule flow complete
 

Similar to Sử dụng cloud9 để học php

Wordress_copyright Võ Tâm Long
Wordress_copyright Võ Tâm LongWordress_copyright Võ Tâm Long
Wordress_copyright Võ Tâm LongVõ Tâm Long
 
Hướng dẫn lập trình web với PHP
Hướng dẫn lập trình web với PHPHướng dẫn lập trình web với PHP
Hướng dẫn lập trình web với PHPNguyễn Tuấn Quỳnh
 
TXDWW - Tổng quan về CMS WordPress
TXDWW - Tổng quan về CMS WordPressTXDWW - Tổng quan về CMS WordPress
TXDWW - Tổng quan về CMS WordPressclbinternet.info
 
Huong dan su dung drupal6.2
Huong dan su dung drupal6.2Huong dan su dung drupal6.2
Huong dan su dung drupal6.2Thao Trinh
 
Báo cáo tuần 1
Báo cáo tuần 1Báo cáo tuần 1
Báo cáo tuần 1Tan Biến
 
Hướng dẫn tạo website nhanh chóng bằng wordpress
Hướng dẫn tạo website nhanh chóng bằng wordpressHướng dẫn tạo website nhanh chóng bằng wordpress
Hướng dẫn tạo website nhanh chóng bằng wordpressTí Bụng Bự
 
[Athena] Nguyễn Nhật Nguyên - Báo cáo thực tập
[Athena] Nguyễn Nhật Nguyên - Báo cáo thực tập[Athena] Nguyễn Nhật Nguyên - Báo cáo thực tập
[Athena] Nguyễn Nhật Nguyên - Báo cáo thực tậpnnn4194a
 
Asp.net mvc 3 (c#) (9 tutorials) egroups vn
Asp.net mvc 3 (c#) (9 tutorials)   egroups vnAsp.net mvc 3 (c#) (9 tutorials)   egroups vn
Asp.net mvc 3 (c#) (9 tutorials) egroups vnNguyen Van Hung
 
Tran thikimthao k37103014_wordpress
Tran thikimthao k37103014_wordpressTran thikimthao k37103014_wordpress
Tran thikimthao k37103014_wordpressTím Biếc
 
Cách sử dụng tên miền thật khi chạy website ở localhost
Cách sử dụng tên miền thật khi chạy website ở localhostCách sử dụng tên miền thật khi chạy website ở localhost
Cách sử dụng tên miền thật khi chạy website ở localhostLel Đặng Văn
 
Tu hoc-thiet-ke-web-bang-php
Tu hoc-thiet-ke-web-bang-phpTu hoc-thiet-ke-web-bang-php
Tu hoc-thiet-ke-web-bang-phpLinh Vân
 
Khắc phục lỗi 500 Internal Server Error trên WordPress.pdf
Khắc phục lỗi 500 Internal Server Error trên WordPress.pdfKhắc phục lỗi 500 Internal Server Error trên WordPress.pdf
Khắc phục lỗi 500 Internal Server Error trên WordPress.pdfcuongptic
 
Hướng dẫn sử dụng CocoaPods trong dự án iOS hoặc MacOSX
Hướng dẫn sử dụng CocoaPods trong dự án iOS hoặc MacOSXHướng dẫn sử dụng CocoaPods trong dự án iOS hoặc MacOSX
Hướng dẫn sử dụng CocoaPods trong dự án iOS hoặc MacOSXTechMaster Vietnam
 
Hướng dẫn tạo Loader trong .NET - bản dịch
Hướng dẫn tạo Loader trong .NET - bản dịchHướng dẫn tạo Loader trong .NET - bản dịch
Hướng dẫn tạo Loader trong .NET - bản dịchLevis Nickaster
 
Học lập trình php bằng tiếng việt
Học lập trình php bằng tiếng việtHọc lập trình php bằng tiếng việt
Học lập trình php bằng tiếng việtkentvu
 

Similar to Sử dụng cloud9 để học php (20)

Wordress_copyright Võ Tâm Long
Wordress_copyright Võ Tâm LongWordress_copyright Võ Tâm Long
Wordress_copyright Võ Tâm Long
 
Web203 slide 8
Web203   slide 8Web203   slide 8
Web203 slide 8
 
Web2032 slide 10
Web2032   slide 10Web2032   slide 10
Web2032 slide 10
 
Hướng dẫn lập trình web với PHP
Hướng dẫn lập trình web với PHPHướng dẫn lập trình web với PHP
Hướng dẫn lập trình web với PHP
 
Wordress dung
Wordress dungWordress dung
Wordress dung
 
TXDWW - Tổng quan về CMS WordPress
TXDWW - Tổng quan về CMS WordPressTXDWW - Tổng quan về CMS WordPress
TXDWW - Tổng quan về CMS WordPress
 
Huong dan su dung drupal6.2
Huong dan su dung drupal6.2Huong dan su dung drupal6.2
Huong dan su dung drupal6.2
 
Báo cáo tuần 1
Báo cáo tuần 1Báo cáo tuần 1
Báo cáo tuần 1
 
Hướng dẫn tạo website nhanh chóng bằng wordpress
Hướng dẫn tạo website nhanh chóng bằng wordpressHướng dẫn tạo website nhanh chóng bằng wordpress
Hướng dẫn tạo website nhanh chóng bằng wordpress
 
[Athena] Nguyễn Nhật Nguyên - Báo cáo thực tập
[Athena] Nguyễn Nhật Nguyên - Báo cáo thực tập[Athena] Nguyễn Nhật Nguyên - Báo cáo thực tập
[Athena] Nguyễn Nhật Nguyên - Báo cáo thực tập
 
Wordpress
WordpressWordpress
Wordpress
 
Asp.net mvc 3 (c#) (9 tutorials) egroups vn
Asp.net mvc 3 (c#) (9 tutorials)   egroups vnAsp.net mvc 3 (c#) (9 tutorials)   egroups vn
Asp.net mvc 3 (c#) (9 tutorials) egroups vn
 
Tran thikimthao k37103014_wordpress
Tran thikimthao k37103014_wordpressTran thikimthao k37103014_wordpress
Tran thikimthao k37103014_wordpress
 
Cách sử dụng tên miền thật khi chạy website ở localhost
Cách sử dụng tên miền thật khi chạy website ở localhostCách sử dụng tên miền thật khi chạy website ở localhost
Cách sử dụng tên miền thật khi chạy website ở localhost
 
Gioi thieu joomla
Gioi thieu joomlaGioi thieu joomla
Gioi thieu joomla
 
Tu hoc-thiet-ke-web-bang-php
Tu hoc-thiet-ke-web-bang-phpTu hoc-thiet-ke-web-bang-php
Tu hoc-thiet-ke-web-bang-php
 
Khắc phục lỗi 500 Internal Server Error trên WordPress.pdf
Khắc phục lỗi 500 Internal Server Error trên WordPress.pdfKhắc phục lỗi 500 Internal Server Error trên WordPress.pdf
Khắc phục lỗi 500 Internal Server Error trên WordPress.pdf
 
Hướng dẫn sử dụng CocoaPods trong dự án iOS hoặc MacOSX
Hướng dẫn sử dụng CocoaPods trong dự án iOS hoặc MacOSXHướng dẫn sử dụng CocoaPods trong dự án iOS hoặc MacOSX
Hướng dẫn sử dụng CocoaPods trong dự án iOS hoặc MacOSX
 
Hướng dẫn tạo Loader trong .NET - bản dịch
Hướng dẫn tạo Loader trong .NET - bản dịchHướng dẫn tạo Loader trong .NET - bản dịch
Hướng dẫn tạo Loader trong .NET - bản dịch
 
Học lập trình php bằng tiếng việt
Học lập trình php bằng tiếng việtHọc lập trình php bằng tiếng việt
Học lập trình php bằng tiếng việt
 

More from Son Nguyen

Wsdl connector introduction
Wsdl connector introductionWsdl connector introduction
Wsdl connector introductionSon Nguyen
 
Android intergrate with mule
Android intergrate with muleAndroid intergrate with mule
Android intergrate with muleSon Nguyen
 
Mule flow overview
Mule flow overviewMule flow overview
Mule flow overviewSon Nguyen
 
Mule flow and filter
Mule flow and filterMule flow and filter
Mule flow and filterSon Nguyen
 
Handle exceptions in mule
Handle exceptions in muleHandle exceptions in mule
Handle exceptions in muleSon Nguyen
 
Spring security integrate with mule
Spring security integrate with muleSpring security integrate with mule
Spring security integrate with muleSon Nguyen
 
Message processor in mule
Message processor in muleMessage processor in mule
Message processor in muleSon Nguyen
 
Expression language in mule
Expression language in muleExpression language in mule
Expression language in muleSon Nguyen
 
Mule with data weave
Mule with data weaveMule with data weave
Mule with data weaveSon Nguyen
 
Using spring scheduler mule
Using spring scheduler muleUsing spring scheduler mule
Using spring scheduler muleSon Nguyen
 
Composite source in bound and out-bound
Composite source in bound and out-boundComposite source in bound and out-bound
Composite source in bound and out-boundSon Nguyen
 
Batch job processing
Batch job processingBatch job processing
Batch job processingSon Nguyen
 
Using message enricher
Using message enricherUsing message enricher
Using message enricherSon Nguyen
 
Finance connectors with mule
Finance connectors with muleFinance connectors with mule
Finance connectors with muleSon Nguyen
 
Google drive connection
Google drive connectionGoogle drive connection
Google drive connectionSon Nguyen
 
Using properties in mule
Using properties in muleUsing properties in mule
Using properties in muleSon Nguyen
 
Mule integrate with microsoft
Mule integrate with microsoftMule integrate with microsoft
Mule integrate with microsoftSon Nguyen
 
Anypoint connectors
Anypoint connectorsAnypoint connectors
Anypoint connectorsSon Nguyen
 
Mule esb basic introduction
Mule esb basic introductionMule esb basic introduction
Mule esb basic introductionSon Nguyen
 

More from Son Nguyen (20)

Wsdl connector introduction
Wsdl connector introductionWsdl connector introduction
Wsdl connector introduction
 
Android intergrate with mule
Android intergrate with muleAndroid intergrate with mule
Android intergrate with mule
 
Mule flow overview
Mule flow overviewMule flow overview
Mule flow overview
 
Mule flow and filter
Mule flow and filterMule flow and filter
Mule flow and filter
 
Handle exceptions in mule
Handle exceptions in muleHandle exceptions in mule
Handle exceptions in mule
 
Spring security integrate with mule
Spring security integrate with muleSpring security integrate with mule
Spring security integrate with mule
 
Message processor in mule
Message processor in muleMessage processor in mule
Message processor in mule
 
Expression language in mule
Expression language in muleExpression language in mule
Expression language in mule
 
Mule with data weave
Mule with data weaveMule with data weave
Mule with data weave
 
Using spring scheduler mule
Using spring scheduler muleUsing spring scheduler mule
Using spring scheduler mule
 
Composite source in bound and out-bound
Composite source in bound and out-boundComposite source in bound and out-bound
Composite source in bound and out-bound
 
Batch job processing
Batch job processingBatch job processing
Batch job processing
 
Using message enricher
Using message enricherUsing message enricher
Using message enricher
 
Finance connectors with mule
Finance connectors with muleFinance connectors with mule
Finance connectors with mule
 
Google drive connection
Google drive connectionGoogle drive connection
Google drive connection
 
Using properties in mule
Using properties in muleUsing properties in mule
Using properties in mule
 
Mule integrate with microsoft
Mule integrate with microsoftMule integrate with microsoft
Mule integrate with microsoft
 
Jms queue
Jms queueJms queue
Jms queue
 
Anypoint connectors
Anypoint connectorsAnypoint connectors
Anypoint connectors
 
Mule esb basic introduction
Mule esb basic introductionMule esb basic introduction
Mule esb basic introduction
 

Sử dụng cloud9 để học php

  • 1. Sử dụng Cloud9 để học PHP
  • 2. • Mặc dù bạn có thể học và thực hành trên localhost nhưng trong serie này, mình khuyến khích các bạn sử dụng công cụ Cloud IDE tên Cloud9. Lý do là mình đã rút ra được một kinh nghiệm là không phải localhost của ai cũng giống nhau và đôi khi nhiều người bị mắc kẹt do localhost bị lỗi linh tinh, nên nếu có thể bạn nên sử dụng Cloud9 cho giống nhau hoàn toàn. • Ngoài ra, ở serie này mình cũng muốn nói qua cho bạn biết một xíu về các dòng lệnh Linux, thiết lập trong php.ini, sử dụng composer vì đây là quy trình làm việc hiện đại, sử dụng Linux, bạn nên biết nó để linh hoạt về sau. Nếu bạn chưa biết Cloud9 là gì thì xem tại đây.
  • 3. Tạo Project • Ngay sau khi tạo tài khoản tại Cloud9, bạn vào Dashboard và ấn vào nút Create New Workspace (Tạo vùng làm việc mới).
  • 4. • Tại đây, bạn đặt tên cho project của mình (không dấu) và chọn ứng dụng WordPress để nó tự cài một trang WordPress mới cho mình. • Sau đó bạn đợi một xíu để nó tạo project cho bạn, tạo xong bạn sẽ thấy nút Start Editing. • Bây giờ bạn sẽ được chuyển đến khu vực IDE để tiến hành làm việc với code.
  • 5. • Bây giờ ở khu vực dòng lệnh (bash -"user..."), bạn gõ lệnh sau để khởi động MySQL. • mysql-ctl start
  • 6. • Và khởi động webserver bằng cách ấn nút Run Project ở phía trên. • Và bây giờ hãy nhìn xuống lại phần dòng lệnh ở tab WordPress - Running..., bạn sẽ thấy địa chỉ website dự án của mình, bạn có thể truy cập vào địa chỉ đó để cài đặt WordPress.
  • 7. • Và nếu bạn truy cập website bằng Cloud9 IDE thì tab WordPress - Running sẽ có hiển thị các access log để bạn theo dõi.
  • 8. • Bây giờ ở phần Console, sẽ có 3 tab mà bạn cần biết chức năng của nó là: • bash - "user": Tab này là nơi bạn sẽ sử dụng các lệnh Linux. • Immediate: Tab này là phần console để bạn thử nghiệm các đoạn Javascript. • WordPress - Running: Access log của website. • Bạn không nên tắt nó nhé. Ngoài ra bạn có thể tạo ra thêm nhiều tab mới. • Okay, tạm thời ở bài này chỉ có như vậy. Trước mắt bạn đã có một project trên Cloud9 IDE và nó như là một website vậy, nhưng serie này chúng ta sẽ sử dụng nó để học PHP trên WordPress mà thôi. • Ở bài sau, mình sẽ giới thiệu qua tập tin php.ini vốn là tập tin cấu hình PHP trên máy chủ. Mình sẽ cho các bạn làm quen qua một vài thiết lập thông dụng để bạn hiểu nó tốt hơn trước khi bắt đầu với PHP.