# server_nginx_php **Repository Path**: office_kenn/server_nginx_php ## Basic Information - **Project Name**: server_nginx_php - **Description**: No description available - **Primary Language**: Unknown - **License**: Not specified - **Default Branch**: master - **Homepage**: None - **GVP Project**: No ## Statistics - **Stars**: 0 - **Forks**: 0 - **Created**: 2020-07-28 - **Last Updated**: 2022-03-16 ## Categories & Tags **Categories**: Uncategorized **Tags**: None ## README # php 全局变量 vi /etc/profile 在最后添加 PATH="$PATH:/usr/local/php/bin" 保持,执行 source /etc/profile # mac install php ``` brew install libiconv echo 'export PATH="/usr/local/opt/libiconv/bin:$PATH"' >> ~/.zshrc brew install openssl echo 'export PATH="/usr/local/opt/openssl@3/bin:$PATH"' >> ~/.zshrc sudo ./configure --prefix=/usr/local/php \ --with-config-file-path=/usr/local/php/etc \ --with-iconv-dir=/usr/local/opt/libiconv \ --with-freetype-dir \ --with-jpeg-dir \ --with-png-dir \ --with-zlib \ --with-libxml-dir=/usr \ --enable-xml \ --disable-rpath \ --enable-bcmath \ --enable-shmop \ --enable-sysvsem \ --enable-inline-optimization \ --with-curl \ --enable-mbregex \ --enable-fpm \ --enable-mbstring \ --with-gd \ --with-openssl \ --with-mhash \ --enable-pcntl \ --enable-sockets \ --with-xmlrpc \ --enable-zip \ --enable-soap \ --enable-short-tags \ --enable-static \ --with-xsl \ --enable-opcache \ --enable-pdo \ --with-mysqli=mysqlnd \ --with-pdo-mysql=mysqlnd \ --with-zlib-dir \ --with-pdo-sqlite \ --with-fpm-user=nginx \ --with-fpm-group=nginx \ --enable-ftp && \ make && make install ```