- 博客(8)
- 收藏
- 关注
原创 ubuntu apt-get方式安装和卸载
在终端里安装软件 apt-get install softname1 softname2 softname3……卸载软件 apt-get remove softname1 softname2 softname3……卸载并清除配置 apt-get remove --purge softname1更新软件信息数据库 apt-get update进行系统升级 apt-get up...
2011-12-26 13:47:54 136
ubuntu11.04编译安装nginx 1.0.11
ubuntu11.04编译安装nginx 1.0.11 nginx编译安装下载nginx-1.0.11.tar.gz,解压并编译安装 1. tar –zxvf nginx-1.0.11.tar.gz 进入相关目录 1. ./configure 2. make 3. sudo make install ./configure缺少...
2011-12-26 13:27:15 134
原创 ubuntu一键安装lamp
首先是安装LAMP,一个命令:sudo apt-get install apache2 php5 libapache2-mod-php5 mysql-server libapache2-mod-auth-mysql php5-mysql phpmyadmin期间会要求你输入mysql数据库的root用户密码,选择服务器类型[apache],phpMyAdmin的密码等。 装完之后重启一...
2011-12-22 15:39:07 141
原创 window nginx codeigniter rewrite
apache下只用。htaccess RewriteEngine onRewriteCond $1 !^(index\.php|css|themes|images|robots\.txt)RewriteRule ^(.*)$ index.php/$1 [L] nginx不支持rewriteCond,nginx配置方法: server { l...
2011-12-21 16:24:35 121
原创 window下nginx一鸡肋
window下配置虚拟主机时:server { listen 80; server_name test; location / { root D:/test; index index.html index.htm index.php; autoindex on; ...
2011-12-21 13:37:29 159
原创 window下nginx虚拟主机不能解析php
本地window7配置nginx 1.011虚拟主机不能解析php问题,导致:no input file specified nginx.conf中http{}增加: server { listen 80; server_name bbc060; location / { root E:\...
2011-12-19 15:30:47 336
原创 解决NGINX PHP "No input file specified"
本地apache,换成nginx1.0.11,配置文件如下:#user nobody;worker_processes 1;error_log logs/error.log;#error_log logs/error.log notice;#error_log logs/error.log info;#pid logs/nginx.p...
2011-12-19 11:01:07 160
原创 [转载]防御远程表单提交
防御远程表单提交<?phpsession_start();if ($_POST['submit'] == "go"){//check tokenif ($_POST['token'] == $_SESSION['token']){//strip_tags$name = strip_tags($_POST['name']);$name = sub...
2011-12-14 15:17:55 171
空空如也
空空如也
TA创建的收藏夹 TA关注的收藏夹
TA关注的人