WINDOWS和Linux上怎麼安裝php7 alpha 和 yaf
安裝php7 alpha 的時候使用的操作系統不一樣,製作方法又會不一樣,以下是本站小編精心爲大家整理的`WINDOWS和Linux上怎麼安裝php7 alpha 和 yaf ,希望對大家有所幫助!更多內容請關注應屆畢業生網!
windows
ows上安裝 php7 alpha 只需要從官方的網站上 下載然後直接配置就可以,如果你不會你可以下載 PHP Manager,直接配置就可以了。這個時候需要測試,打開命令行窗口,然後到你的 php7 目錄下,php -m 如果彈出如下的窗口
1111
這時候因爲你缺少 Visual C++ Redistributable Package for Visual Studio 2015 你可以點擊這裏下載 ,安裝後就可以了。
linux
Linux 和以前一樣安裝,但是你會發現 php7 alpha 並不和以前 dev 一樣,少了 --with-mysql 的選項,也就是不加載這個擴展了,以後就用 mysqli 和 Pdo 吧
從官方下載安裝包 ~ab/
wget ~ab/
#解壓
tar zxf
#進入目錄
cd php-7.0.0alpha1
#configure
--prefix=/usr/local/php7
--with-config-file-path=/usr/local/php7/etc
--enable-fpm
--with-fpm-user=www
--with-fpm-group=www
--with-mysqli=/usr/local/mysql/bin/mysql_config
--with-pdo-mysql=/usr/local/mysql/
--with-iconv-dir
--with-freetype-dir
--with-jpeg-dir
--with-png-dir
--with-zlib
--with-libxml-dir
--disable-rpath
--enable-bcmath
--enable-shmop
--enable-sysvsem
--enable-inline-optimization
--with-curl
--enable-mbregex
--enable-mbstring
--with-mcrypt
--enable-ftp
--with-gd
--enable-gd-native-ttf
--with-openssl
--with-mhash
--enable-pcntl
--enable-sockets
--with-xmlrpc
--enable-zip--enable-soap
--without-pear
--with-gettext
--disable-fileinfo
--enable-maintainer-zts
#編譯安裝
make ZEND_EXTRA_LIBS='-liconv' && make install
#配置
cp sapi/fpm/-fpm /etc/rc.d/init.d/php7-fpm
cp -production /usr/local/php7/etc/
#然後在自己配置下
安裝YAF
#下載
git clone
cd php-yaf
#查看所有分支,這時候你就看到了php7的分支
git branch -a
git checkout -b php7 origin/php7
#開始編譯安裝
/usr/local/php7/bin/phpize
./configure --with-php-config=/usr/local/php7/bin/php-config
make && make install
#配置
vim /usr/local/php7/etc/
#加入如下這行
extension = 安裝完成顯示的目錄地址/
yaf-php7
OK,就介紹到這裏了。
相關文章
-
英語閱讀:Why Apple says it's slowing down older iPhone
December 28, 2017A Message to Our Customers about iPhone Batteries and Performance2017 年 12 月 28 日致廣大用戶關於 iPhone 電池及性能的說明We’ve been hearing feedback from our customers about th -
WinXP如何安裝Apache+MySQL+PHP環境
在生活、工作和學習中,大家總免不了要接觸或使用作文吧,作文一定要做到主題集中,圍繞同一主題作深入闡述,切忌東拉西扯,主題渙散甚至無主題。相信許多人會覺得作文很難寫吧,以下是小編爲大家收集的改寫過故人莊作文,歡迎大家 -
windows8.1下Apache+Php+MySQL配置教程
軟件版本:apache:Apache 2.4.6 Win64PHP:PHP 5.5 VC11 x64 Non Thread SafeMySql:5.5 win64Mysql安裝:雙擊運行,設置用戶名、密碼、編碼(utf8)。PHP配置:1、解壓下載的zip文件到一個目錄,本教程中爲:D:serverphp2、複製文件- -
Module9 UNIT2 Zara was happy說課稿範文
在當下社會,報告不再是罕見的東西,其在寫作上有一定的技巧。爲了讓您不再爲寫報告頭疼,以下是小編爲大家整理的酒店實習報告7篇,希望能夠幫助到大家。酒店實習報告 篇1邱命佳時光如水月如梭有如雁過無痕一般,轉眼間,在唐宮1 -
whats your plan for dragon boat festival英語作文
As a chinese, I was really ashamed of having a little knowledge of dragon boat festival. Perhaps I was bo in northe city, though my city is nearby sea, it has been built a U port which I can only see -
Why Public Speaking Is So Important 公共演說的重要性大學英語
Many students ask why they shouldlea to give speeches. They often argue that they don’t plan to bepoliticians, members of board, or company presidents. Students think that those are the only careers -
高中英語作文:My approach to difficulties in learning
某校英文報社開設了一個專欄:experience . 本期話題是如何解決學習中遇到的`困難。請你以“my approach to difficulties in leaing” 爲題,用英語寫一篇短文,談談自己的一些做法。 範文: My approach to difficulties -
四年級上冊Module8 UNIT1 What did she play說課稿
一、教學目標與要求:Knowledge Targets:1. Key words: came, win, won, lastContextual words: gold, cup, practice2. Key structures:When did they come? They came last Wednesday. What did she play? She played -
英語閱讀範文參考:LovePeopleInAllKindsOfWeather
LovePeopleInAllKindsOfWeatherMake sure your love is unconditional. Make sure you love people in all kinds of "weather". Or else what is the use if we love a person only when he is good or she is nice? -
My winter holidays plans英語作文
My winter holidays plans me studying for my English , I will make great efforts to lea English. Persist in listening to half hours of English every day. I will accomplish the school assignment that th