Win32 Apache 多虚拟主机多版本PHP(5.2+5.3+5.4)共存运行配置全过程
Windows 2-3 936浏览 0评论因为某种需求,可能是因为早期的项目需要低版本的php,和目前开发所用的版本不太一致,我们需要给不同的虚拟主机配置不同版本的PHP。避免去额外配置多个Apache,等iis和apache共存的麻烦。
Linux查看和结束进程命令详解
Linux 2-3 957浏览 0评论在ubuntu中,终止一个进程或终止一个正在运行的程序,一般是通过 kill 、killall、pkill、xkill 等进行。 ------------------------------------------------------------------- 先看两个例子: 例子一:结束某个程序,如Firefox 键入命令: pkill firefox
启动php-fpm的时候出现 Starting php_fpmfpm_unix_conf_wp()
PHP 2-2 933浏览 0评论启动php-fpm的时候出现 Starting php_fpm Dec 29 15:27:32.502790 [ERROR] fpm_unix_conf_wp(), line 124: please specify user and group other than root, pool 'default'
Linux php编译安装后bin目录中怎么没有php-cgi文件
PHP 2-2 961浏览 0评论./configure --enable-fastcgi php安装后bin目录中怎么没有php-cgi文件, 为什么会这样啊 ?
Following unknown configure options were used:--enable-fpm
PHP 2-2 894浏览 0评论执行cd php-5.2.13安装时候 ./configure --prefix=/usr/local/php/ --with-config-file-path=/usr/local/php/etc/ --with-mysql=/usr/local/mysql/ --with-libxml-dir=/usr/local/libxml2/ --with-jpeg-dir=/usr/local/jpeg6/ --with-freetype-dir=/usr/local/freetype/ --with-gd=/usr/local/gd2/ --with-mcrypt=/usr/local/libmcrypt/ --with-mysqli=/usr/local/mysql/bin/mysql_config --enable-soap --enable-mbstring=all --enable-sockets --enable-fastcgi --enable-fpm 错误:Following unknown configure options were used:--enable-fpm
Apache2 + PHP-FPM 配置要点
PHP 2-2 955浏览 0评论Apache2 + PHP-FPM 配置要点,注释的都不是要点。 <VirtualHost *:80> ServerName my.domain.com ServerAdmin admin@domain.com DocumentRoot /var/www/my.domain.com RewriteEngine On <IfModule mod_fastcgi.c> #ScriptAlias /php/ "/usr/bin/" ScriptAlias /php/ "/usr/sbin/" #FastCgiExternalServer /app/php/php-cgi -socket /var/run/php5-fpm.sock FastCgiExternalServer /usr/sbin/php5-fpm -socket /var/run/php5-fpm.sock #<Directory "/usr/bin/"> # SetHandler fastcgi-script # Options FollowSymLinks # Order allow,deny # Allow from all #</Directory> #AddType application/x-httpd-php .php AddHandler php-fastcgi .php #Action php-fastcgi /php/php-cgi Action php-fastcgi /php/php5-fpm </IfModule> <Directory /app/www/owncloud> AllowOverride ALL </Directory> <IfModule dir_module> DirectoryIndex index.html </IfModule> AllowEncodedSlashes On ErrorLog /var/log/apache2/error.log CustomLog /var/log/apache2/access.log combined ServerSignature Off </VirtualHost> 注释过的地方,是走过的一些弯路。
SHELL syntax error:unexpected end of file 提示错误
Linux 2-2 889浏览 0评论SHELL syntax error:unexpected end of file 提示错误
Linux中编译apache服务器modules文件夹没有生成模块(.so)的问题
Linux 2-1 1250浏览 0评论Linux中编译apache服务器modules文件夹没有生成模块(.so)的问题