編譯apache2: ./configure --prefix=/usr/local/apache2 --enable-so --with-apr=/usr/local/apr --with-apr-util=/usr/local/apr-util --with-pcre=/usr/local/pcre --with-mpm=prefork 編譯PHP: cd ext/intl phpize ./configure --enable-intl make make install CGI模式: ./configure --with-mysql=mysqlnd --with-mysqli=mysqlnd --with-pdo-mysql=mysqlnd --with-curl --enable-mbstring --with-mhash --with-mcrypt --with-gd --enable-sockets --with-gettext --enable-zip --enable-soap --with-xmlrpc --with-readline --with-mysql-sock=/var/run/mysqld/mysqld.sock --with-config-file-path --with-config-file-scan-dir=/etc/php5/apache2/conf.d FCGID模式: ./configure --prefix=/usr/local/php --with-mysql=mysqlnd --with-curl --enable-mbstring --with-mhash --with-mcrypt --with-gd --enable-sockets --with-gettext --enable-zip --enable-soap --with-xmlrpc --with-readline --enable-fpm --with-fpm-user=fpm --with-fpm-group=fpm RewriteEngine On <IfModule mod_fastcgi.c> ScriptAlias /php/ "/usr/sbin/" FastCgiExternalServer /usr/sbin/php5-fpm -socket /var/run/php5-fpm.sock AddHandler php-fastcgi .php Action php-fastcgi /php/php5-fpm </IfModule> ./configure --prefix=/usr/local/php --with-config-file-path=/usr/local/php/etc --with-mysql=/usr/local/mysql --with-mysqli=/usr/local/mysql/bin/mysql_config --with-mysql-sock=/tmp/mysql.sock --with-gd --with-iconv --with-zlib --with-fpm-user=php --with-fpm-group=php --enable-xml --enable-bcmath --enable-shmop --enable-sysvsem --enable-inline-optimization --enable-mbregex --enable-fpm --enable-mbstring --enable-ftp --enable-gd-native-ttf --with-openssl --enable-pcntl --enable-sockets --with-xmlrpc --enable-zip --enable-soap --with-pear --with-gettext --enable-session --with-curl --enable-exif apache模塊方式: ./configure --prefix=/usr/local/php --with-apxs2=/usr/local/apache2/bin/apxs --with-mysql=mysqlnd --with-curl --enable-mbstring --with-mhash --with-mcrypt --with-gd --enable-sockets --with-gettext --enable-zip --enable-soap --with-xmlrpc --with-readline 設(shè)置配置文件路徑: --with-config-file-path=PATH --with-config-file-scan-dir= thinkphp URL重寫(xiě)規(guī)則 RewriteEngine On RewriteCond %{REQUEST_FILENAME} !-d RewriteCond %{REQUEST_FILENAME} !-f RewriteRule ^(.*)$ index.php/$1 [QSA,PT,L] |
|
來(lái)自: guitarhua > 《工作總結(jié)》