Linux to view Nginx, Apache, MySQL, php compilation parameters

Source: Internet
Author: User
Tags config php compiler

Below we look at a Linux to see Nginx, Apache, MySQL, php compiler parameters Examples, I hope this example will help you.

View Nginx, Apache, MySQL, PHP parameters we can use

/app/nginx/sbin/nginx-v View Nginx Parameters

# cat Config.nice View Apache parameters

#cat "/usr/local/mysql/bin/mysqlbug" |grep Configure view MySQL parameters

/usr/local/php/bin/php-i |grep Configure view PHP parameters

1. View Nginx Parameters

[Root@361way ~]#/app/nginx/sbin/nginx-v

Nginx:nginx version:nginx/1.2.6

NGINX:TLS SNI Support Disabled

Nginx:configure arguments:--prefix=/app/nginx--with-http_stub_status_module--with-http_ssl_module--with-http_ Gzip_static_module

2. View Apache Parameters

[Root@361way build]# Cat Config.nice

#! /bin/sh

#

# Created by Configure

"./configure"

"--PREFIX=/USR/LOCAL/HTTPD"

"--WITH-APR=/USR/LOCAL/APR"

"--with-apr-util=/usr/local/apr-util"

"--with-pcre"

"--with-mpm=event"

"--enable-rewrite"

"--enable-proxy"

"--with-z"

"--enable-so"

"$@"

3. View MySQL Parameters

[Root@361way Build] #cat "/usr/local/mysql/bin/mysqlbug" |grep Configure

# This are set by configure

Configure_line= "./configure '--prefix=/usr/local/mysql '--localstatedir=/var/lib/mysql '--with-comment=Source ' --with-server-suffix=-h863′ '--with-mysqld-user=mysql '--without-debug '--with-big-tables '--WITH-CHARSET=GBK ' --with-collation=gbk_chinese_ci '--with-extra-charsets=all '--with-pthread '--enable-static '-- Enable-thread-safe-client '--with-client-ldflags=-all-static ' '--with-mysqld-ldflags=-all-static '-- Enable-assembler '--without-isam '--without-innodb '--without-ndb-debug '

4. View PHP Parameters

/usr/local/php/bin/php-i |grep Configure

Configure Command => './configure '--prefix=/usr/local/php '--with-apxs2=/usr/local/apache2/bin/apxs '-- With-config-file-path=/usr/local/php/etc '--with-mysql=/usr/local/mysql '--with-libxml-dir=/usr/local/libxml2/ Bin '--with-gd=/usr/local/gd2′ '--with-jpeg-dir '--with-png-dir '--with-bz2′ '--with-xmlrpc '-- With-freetype-dir '--with-zlib-dir '

Related Article

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.