摘要:如果是Centos OS 64 位,首先更新rpm -ivh http://dl.fedoraproject.org/pub/epel/6/x86_64/epel-release-6-8.noarch.rpmyum clean dbcachegive SELinux permissions to that directory: chcon -R -h -t httpd_sys_content_t /data/然后: yum install nginxyum install mysql mysql-server mysql-devel mysql-clientyum -y install php
阅读全文
摘要:<?xml version="1.0" encoding="UTF-8"?><configuration> <system.webServer> <rewrite> <rules> <rule name="Redirect To WWW" patternSyntax="Wildcard" stopProcessing="true"> <match url="*"/> <condition
阅读全文
摘要:首先将在theme的function.php中加入:update_option('siteurl','http://www.new.com');update_option('home','http://www.new.com');重新刷新站点,待好了后,再移除这2行。如果发现还是有很多连接指向老地址,那么:运行下面mysql命令,替换某些字段内容;如果将mysql全部导出,然后全文替换,会有意想不到的问题. update wp_posts set post_content=replace( post_content , '
阅读全文
摘要:1)主文件 location / { root /opt/webroot; index index.html index.htm index.php if (!-e $request_filename){ rewrite^/(.*)/yiiGuestBook/index.phplast; }} location ~ \.php$ { root /opt/webroot/; fastcgi_pass 127.0.0.1:9001; fastcgi_index index.php; fastcgi_param YII_ENVIRONMENT "STAGING"...
阅读全文
摘要:可以执行 yum命令来安装先决软件:yum install libxml2 libxml2-devel curl-devel free-type-devel1)安装pcrewget ftp://ftp.csx.cam.ac.uk/pub/software/programming/pcre/pcre-...
阅读全文
摘要:PHP.ini中的error_reporting不起作用,一般是因为自己的程序override了这个全局设置,所有要在自己的程序所在的apache虚拟主机中再设置一次:php_admin_value error_reporting 22519#error_reporting = E_ALL & ~E_DEPRECATED & ~E_NOTICE#php_admin_value error_log /custom/log/path/php_errors.logphp_admin_flag log_errors Onphp_admin_flag display_errors Off
阅读全文
摘要:下载Apache文件:wget http://archive.apache.org/dist/httpd/httpd-2.2.20.tar.gz解压缩,然后:./configure --prefix=/data/system/apache --enable-so --enable-modules=a...
阅读全文
摘要:Windows 2012 IIS7.5 安装PHP5下载安装:http://windows.php.net/downloads/releases/php-5.5.10-nts-Win32-VC11-x64.ziphttp://download.microsoft.com/download/9/C/D...
阅读全文