Blogger Information
Blog 16
fans 0
comment 0
visits 14624
Popular Tutorials
More>
Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template
php7.4源码安装
进击的小菜鸟
Original
1547 people have browsed it

下载安装

  1. 1.首先到php官网下载最新的源码包
    在ubuntu下运行
    wget https://www.php.net/distributions/php-7.4.4.tar.bz2
  2. 2.解压进入目录 执行 ./configure --with-internal-glib
  3. 3.执行make
  4. 4.执行make check & make install

    设置环境变量

    vi ~/.bash_profile
    在PATH后面就上一行 alias php=php路径 保存退出 执行
    source ~/.bash_profile让文件生效 该方法只针对当前用户,若要全局设置应修改/etc/profile

    一些需要注意的地方

    • 系统中必需要安装这两个软件 gcc autoconfig
    • php的编译目录下默认是没有php.ini文件的 需要在源码目录中拷贝一份过去
    • php默认的ini文件路径可运行php -i |grep php.ini查看 拷贝到这个路径就可以了
Statement of this Website
The copyright of this blog article belongs to the blogger. Please specify the address when reprinting! If there is any infringement or violation of the law, please contact admin@php.cn Report processing!
All comments Speak rationally on civilized internet, please comply with News Comment Service Agreement
0 comments
Author's latest blog post
About us Disclaimer Sitemap
php.cn:Public welfare online PHP training,Help PHP learners grow quickly!