IT数码 购物 网址 头条 软件 日历 阅读 图书馆
TxT小说阅读器
↓语音阅读,小说下载,古典文学↓
图片批量下载器
↓批量下载图片,美女图库↓
图片自动播放器
↓图片自动播放器↓
一键清除垃圾
↓轻轻一点,清除系统垃圾↓
开发: C++知识库 Java知识库 JavaScript Python PHP知识库 人工智能 区块链 大数据 移动开发 嵌入式 开发工具 数据结构与算法 开发测试 游戏开发 网络协议 系统运维
教程: HTML教程 CSS教程 JavaScript教程 Go语言教程 JQuery教程 VUE教程 VUE3教程 Bootstrap教程 SQL数据库教程 C语言教程 C++教程 Java教程 Python教程 Python3教程 C#教程
数码: 电脑 笔记本 显卡 显示器 固态硬盘 硬盘 耳机 手机 iphone vivo oppo 小米 华为 单反 装机 图拉丁
 
   -> PHP知识库 -> use PhpStorm port安装php80 in mac OSX -> 正文阅读

[PHP知识库]use PhpStorm port安装php80 in mac OSX

1. 系统环境的php版本为

PHP 7.1.33 (cli) (built: Jan 26 2020 22:52:32) ( NTS )

Copyright (c) 1997-2018 The PHP Group

Zend Engine v3.1.0, Copyright (c) 1998-2018 Zend Technologies

2. 现安装php8.0

megumikichikus-MacBook-Pro:~ xxxx$ sudo port install php

Password:

--->? Computing dependencies for php

The following dependencies will be installed:

argon2

gsed

mhash

pcre2

php80

php_select

Continue? [Y/n]: y

……….

--->? Updating database of binaries

--->? Scanning binaries for linking errors

--->? No broken files found.? ? ? ? ? ? ? ? ? ? ? ? ? ? ?

--->? No broken ports found.

--->? Some of the ports you installed have notes:

? php80 has the following notes:

? ? To customize php80, copy /opt/local/etc/php80/php.ini-development (if this is a development server) or /opt/local/etc/php80/php.ini-production (if this is a production server)

? ? to /opt/local/etc/php80/php.ini and then make changes.

3. —————————设置php.ini——————————

megumikichikus-MacBook-Pro:~ xxxx$?cd?/opt/local/etc/php80

megumikichikus-MacBook-Pro:php80 xxxx$ sudo cp php.ini-production php.ini

设置系统原版本7.1.33的配置文件,

megumikichikus-MacBook-Pro:~ xxxx$ sudo cp /etc/php.ini.default /etc/php.ini

4. 演示卸载清除port安装的php,

megumikichikus-MacBook-Pro:~ xxxx$ sudo port uninstall --follow-dependencies php

--->? Deactivating php @8.0_0

--->? Cleaning php

--->? Uninstalling php @8.0_0

The following dependencies will be uninstalled:

php80 @8.0.12_0+libedit

argon2 @20190702_1

gsed @4.8_0

mhash @0.9.9.9_1

pcre2 @10.37_0

php_select @1.0_0

pkgconfig @0.29.2_0

再安装,

megumikichikus-MacBook-Pro:~ xxxx$ sudo port install php

--->? Computing dependencies for php

The following dependencies will be installed:

argon2

gsed

mhash

pcre2

php80

php_select

pkgconfig

Continue? [Y/n]: --->? Fetching archive for argon2

--->? Attempting to fetch argon2-20190702_1.darwin_18.x86_64.tbz2 from http://mse.uk.packages.macports.org/argon2

--->? Attempting to fetch argon2-20190702_1.darwin_18.x86_64.tbz2.rmd160 from http://mse.uk.packages.macports.org/argon2

--->? Installing argon2 @20190702_1

--->? Activating argon2 @20190702_1

--->? Cleaning argon2

--->? Fetching archive for gsed

--->? Attempting to fetch gsed-4.8_0.darwin_18.x86_64.tbz2 from http://mse.uk.packages.macports.org/gsed

--->? Attempting to fetch gsed-4.8_0.darwin_18.x86_64.tbz2.rmd160 from http://mse.uk.packages.macports.org/gsed

--->? Installing gsed @4.8_0

--->? Activating gsed @4.8_0

--->? Cleaning gsed

--->? Fetching archive for mhash

--->? Attempting to fetch mhash-0.9.9.9_1.darwin_18.x86_64.tbz2 from http://mse.uk.packages.macports.org/mhash

--->? Attempting to fetch mhash-0.9.9.9_1.darwin_18.x86_64.tbz2.rmd160 from http://mse.uk.packages.macports.org/mhash

--->? Installing mhash @0.9.9.9_1

--->? Activating mhash @0.9.9.9_1

--->? Cleaning mhash

--->? Fetching archive for pcre2

--->? Attempting to fetch pcre2-10.37_0.darwin_18.x86_64.tbz2 from http://mse.uk.packages.macports.org/pcre2

--->? Attempting to fetch pcre2-10.37_0.darwin_18.x86_64.tbz2.rmd160 from http://mse.uk.packages.macports.org/pcre2

--->? Installing pcre2 @10.37_0

--->? Activating pcre2 @10.37_0

--->? Cleaning pcre2

--->? Fetching archive for php_select

--->? Attempting to fetch php_select-1.0_0.darwin_18.noarch.tbz2 from http://mse.uk.packages.macports.org/php_select

--->? Attempting to fetch php_select-1.0_0.darwin_18.noarch.tbz2.rmd160 from http://mse.uk.packages.macports.org/php_select

--->? Installing php_select @1.0_0

--->? Activating php_select @1.0_0

--->? Cleaning php_select

--->? Fetching archive for pkgconfig

--->? Attempting to fetch pkgconfig-0.29.2_0.darwin_18.x86_64.tbz2 from http://mse.uk.packages.macports.org/pkgconfig

--->? Attempting to fetch pkgconfig-0.29.2_0.darwin_18.x86_64.tbz2.rmd160 from http://mse.uk.packages.macports.org/pkgconfig

--->? Installing pkgconfig @0.29.2_0

--->? Activating pkgconfig @0.29.2_0

--->? Cleaning pkgconfig

--->? Fetching archive for php80

--->? Attempting to fetch php80-8.0.12_0+libedit.darwin_18.x86_64.tbz2 from http://mse.uk.packages.macports.org/php80

--->? Attempting to fetch php80-8.0.12_0+libedit.darwin_18.x86_64.tbz2.rmd160 from http://mse.uk.packages.macports.org/php80

--->? Installing php80 @8.0.12_0+libedit

--->? Activating php80 @8.0.12_0+libedit

--->? Cleaning php80

--->? Fetching archive for php

--->? Attempting to fetch php-8.0_0.darwin_18.noarch.tbz2 from http://mse.uk.packages.macports.org/php

--->? Attempting to fetch php-8.0_0.darwin_18.noarch.tbz2.rmd160 from http://mse.uk.packages.macports.org/php

--->? Installing php @8.0_0

--->? Activating php @8.0_0

--->? Cleaning php

--->? Some of the ports you installed have notes:

? php80 has the following notes:

? ? To customize php80, copy /opt/local/etc/php80/php.ini-development (if this is a development server) or /opt/local/etc/php80/php.ini-production (if this is a production server)

? ? to /opt/local/etc/php80/php.ini and then make changes.

5. 安装?php80-cgi?

megumikichikus-MacBook-Pro:~ xxxx$ sudo port install php80-cgi

--->? Computing dependencies for php80-cgi

--->? Fetching archive for php80-cgi

--->? Attempting to fetch php80-cgi-8.0.12_0.darwin_18.x86_64.tbz2 from http://mse.uk.packages.macports.org/php80-cgi

--->? Attempting to fetch php80-cgi-8.0.12_0.darwin_18.x86_64.tbz2.rmd160 from http://mse.uk.packages.macports.org/php80-cgi

--->? Installing php80-cgi @8.0.12_0

--->? Activating php80-cgi @8.0.12_0

--->? Cleaning php80-cgi

--->? Updating database of binaries

--->? Scanning binaries for linking errors

--->? No broken files found.? ? ? ? ? ? ? ? ? ? ? ? ? ? ?

--->? No broken ports found.

--->? Some of the ports you installed have notes:

? php80-cgi has the following notes:

? ? If this is your first install, you need to enable php80-cgi in your web server.

安装完成后,在 /opt/local/bin/目录下,多了php-cgi80

phpstorm ——> Please ensure that configured PHP Interpreter built as CGI program (--enable-fastcgi was specified)

phpstorm找不到cgi,所以执行

megumikichikus-MacBook-Pro:php80 xxxx$ cd /opt/local/bin/

megumikichikus-MacBook-Pro:bin xxxx$ sudo cp php-cgi80 php-cgi

  PHP知识库 最新文章
Laravel 下实现 Google 2fa 验证
UUCTF WP
DASCTF10月 web
XAMPP任意命令执行提升权限漏洞(CVE-2020-
[GYCTF2020]Easyphp
iwebsec靶场 代码执行关卡通关笔记
多个线程同步执行,多个线程依次执行,多个
php 没事记录下常用方法 (TP5.1)
php之jwt
2021-09-18
上一篇文章      下一篇文章      查看所有文章
加:2022-04-13 22:06:44  更:2022-04-13 22:31:09 
 
开发: C++知识库 Java知识库 JavaScript Python PHP知识库 人工智能 区块链 大数据 移动开发 嵌入式 开发工具 数据结构与算法 开发测试 游戏开发 网络协议 系统运维
教程: HTML教程 CSS教程 JavaScript教程 Go语言教程 JQuery教程 VUE教程 VUE3教程 Bootstrap教程 SQL数据库教程 C语言教程 C++教程 Java教程 Python教程 Python3教程 C#教程
数码: 电脑 笔记本 显卡 显示器 固态硬盘 硬盘 耳机 手机 iphone vivo oppo 小米 华为 单反 装机 图拉丁

360图书馆 购物 三丰科技 阅读网 日历 万年历 2024年11日历 -2024/11/23 7:31:01-

图片自动播放器
↓图片自动播放器↓
TxT小说阅读器
↓语音阅读,小说下载,古典文学↓
一键清除垃圾
↓轻轻一点,清除系统垃圾↓
图片批量下载器
↓批量下载图片,美女图库↓
  网站联系: qq:121756557 email:121756557@qq.com  IT数码