PHP建站通過伺服器架構及實戰的方法

來源:互聯網
上載者:User

標籤:tar.gz   image   橋接   yum   方法   make   box   .gz   啟動   

PHP的環境搭建

PHP的協助使用和設定檔

PHP的Hello World

PHP的庫函數調用

PHP的Web程式

PHP的函數和物件導向使用

PHP的資料庫訪問

Nginx安裝和配置訪問

WordPress的安裝和配置實用

推進資料:圖書,視頻,代碼等

總述

PHP基礎環境準備

安裝虛擬機器

VM(Virtual Box)

安裝作業系統

Centos

網路使用橋接的方式串連

虛擬機器有獨立的IP,和主機可以相互訪問

PHP安裝

#wget http://pa1.php.net/distributions/php-5.6.22.tar.gz

#tar zxf php-5.6.22.tar.gz

#./configure

#yum install libxml2 libxslt

#yum install libxml2-devel y

#find / -name “xml2-config”

#make

#make install

#php version

PHP的協助和設定檔

php --help

php i

php ini

php m

pear

pear list



PHP基礎編程

第一個PHP程式

檔案helloworld.php

執行$php helloword.php

未來經常用來測試的代碼


PHP庫函數調用


使用庫函數

檔案func.php

執行$php func.php

設定php.ini檔案#locate php.ini # vi /usr/local/lib/php.ini

或者直接設定



PHP的Web程式

啟動內建伺服器

PHP建站通過伺服器架構及實戰的方法

聯繫我們

該頁面正文內容均來源於網絡整理,並不代表阿里雲官方的觀點,該頁面所提到的產品和服務也與阿里云無關,如果該頁面內容對您造成了困擾,歡迎寫郵件給我們,收到郵件我們將在5個工作日內處理。

如果您發現本社區中有涉嫌抄襲的內容,歡迎發送郵件至: info-contact@alibabacloud.com 進行舉報並提供相關證據,工作人員會在 5 個工作天內聯絡您,一經查實,本站將立刻刪除涉嫌侵權內容。

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.