zoukankan      html  css  js  c++  java
  • linux下安装配置php

    1.获得文件:

      php.tar.gz

    2.安装libxml2:

      ./configure --prefix=/usr/local/libxml2; make; make install;

    3.安装php:

      ./configure --prefix=/usr/local/php --with-mysql=/usr/local/mysql --with-apxs=/usr/local/apache2/bin/apxs --with-libxml-dir=/usr/local/libxml2; make; make install;

    4.配置apache:

      vi httpd.conf, 添加AddType application/x-httpd-php .php, AddType application/x-httpd-php-source .phps

      vi php.ini, registe-globals=on

      /etc/init.d/httpd restart

    5.安装bcmath扩展:

      cd <php-src>/ext/bcmath;

      /usr/local/php/bin/phpize;

      ./configure --with-php-config=/usr/local/php/bin/php-config;

      make; make install;

      mv bcmath.so /usr/local/php/lib/php/extensions/;

      echo "extension=bcmath.so">>php.ini;

  • 相关阅读:
    HDU 1423
    POJ 3264
    POJ 3177
    CodeForces 81A
    SPOJ RATING
    ZOJ 2588
    POJ 1523
    POJ 3667
    递归
    数据结构
  • 原文地址:https://www.cnblogs.com/feilv/p/4070823.html
Copyright © 2011-2022 走看看