httpd.conf===>
Listen 80 Listen 9001 ServerName 123.123.123.123:80 用IP地址作为servername LoadModule rewrite_module modules/mod_rewrite.so Include conf/extra/httpd-vhosts.conf <FilesMatch ".ph(p[2-6]?|tml)$"> SetHandler application/x-httpd-php </FilesMatch>
httpd-vhost.conf===>
# Virtual Hosts <VirtualHost *:80> ServerName www.abc2.com ServerAlias abc2.com tianpin.bj.12543534.clb.myqcloud.com DocumentRoot "/var/www/html" <Directory "/var/www/html"> Options +Indexes +Includes +FollowSymLinks +MultiViews AllowOverride All Require all granted </Directory> </VirtualHost> # <VirtualHost *:80> #设置主机名 ServerName www.abc.com #设置主机别名,即用该别名也可以访问(前提是域名解析正确) #ServerAlias abc.com DocumentRoot "/var/www/pttabc" <Directory "/var/www/pttabc"> #加上Indexes用于显示设定“可显示文件列表”(当无可显示网页的时候) Options FollowSymLinks #启用文件夹访问控制的文件.htaccess设置 AllowOverride All #请求控制 Require all granted </Directory> </VirtualHost>
linux下php7安装memcached、redis扩展
http://www.cnblogs.com/hejun695/p/5369610.html
http://www.cnblogs.com/zqifa/p/linux-php-2.html
http://blog.csdn.net/sinat_21125451/article/details/51656474
cd php-memcached
/usr/local/php/bin/phpize
./configure --with-php-config=/usr/local/php/bin/php-config
make && make install
然后扩展文件目录就有了.so
/usr/local/php/lib/php/extensions/no-debug-zts-20151012/memcached.so
在php.ini加入
extension=memcached.so
Centos下Yum安装PHP5.5,5.6,7.0
http://www.blogjava.net/nkjava/archive/2015/01/20/422289.html
php中fastcgi和php-fpm是什么东西
http://www.360doc.com/content/16/0611/13/12146850_566738546.shtml
php安装目录(即usr/local/php)下连ext目录都没有
dll 是windows下用的
linux 下 ext目录在 .../php/include/php/ext/
扩展的话如 memcache 或者 redis 他们的 .so 文件都是放在 .../php/lib/php/extensions
Putty文件夹蓝色太暗问题
http://blog.sina.com.cn/s/blog_74a7e56e0101bzkk.html