e3v3 多少度玩绝地大逃杀蓝屏死机么

您的位置:
Apache2部署WordPress
发布者: moke |
在Apache2部署WordPress程序,
环境:Ubuntu 14.04 LTS x64
Apache 2.4.7
WordPress 4.5.2-zh_CN
sudo apt-get install mysql-server
安装过程中会有几个设置选项:
New password for the MySQL “root” user:
Repeat password for the MySQL “root” user:
测试MySQL安装成功:
mysql -u root -p
Welcome to the MySQL monitor.
Your MySQL connection id is 42
Server version: 5.5.49-0ubuntu0.14.04.1 (Ubuntu)
Copyright (c) , Oracle and/or its affiliates. All rights reserved.
Oracle is a registered trademark of Oracle Corporation and/or its
affiliates. Other names may be trademarks of their respective
Type '' or 'h' for help. Type 'c' to clear the current input statement.
安装Apache2
sudo apt-get install apache2
浏览器地址中输入:
http://localhost/ 或者 http://127.0.0.1
看到Apache2主页
常见问题:
Apache2重启时遇到
AH00558: apache2: Could not reliably determine the server's fully qualified domain name, using 127.0.1.1. Set the 'ServerName' directive globally to suppress this message
sudo vim /etc/apache2/apache2.conf
# 输入一下内容
ServerName 127.0.0.1
# 重启Apache2
sudo service apache2 restart
sudo apt-get install php5
安装PHP其他模块
# MySQL连接
sudo apt-get install php5-mysql
# 安装phpMyAdmin
sudo apt-get install phpMyAdmin
# Web server to reconfigure automatically
# 选择Apache2
# Configure database for phpmyadmin with dbconfig-common? # Yes
# Password of the database's administrative user:
# MySQL application password for phpmyadmin:
# Password confirmation:
# 创建连接
sudo ln -s /usr/share/phpmyadmin /var/www/html
测试PHP和phpMyAdmin安装成功
cd /var/www/html
sudo vim test.php
# 加入Hello PHP! 保存退出
浏览器输入:
http://localhost/test.php
phpMyAdmin测试
浏览器输入:
http://localhost/phpmyadmin
# 进入登录页面
安装WordPress
官网下载WordPress
解压WordPress
sudo tar -zxvf wordpress-4.5.2-zh_CN.tar.gz -C /var/www/html/
创建数据库
# 登录MySQL
mysql -u root -p
# 创建数据库
create database db_
# 查看数据库
配置WordPress
浏览器输入:
http://localhost/wordpress
现在就开始
数据库用户名
数据库密码
数据库主机
数据库表前缀
抱歉,我不能写入wp-config.php文件
您可以手工创建wp-config.php文件并将以下信息贴入其中
sudo vim /var/www/html/wordpress/wp-config.php
# 将浏览器上的内容复制进去
# 将编码格式改成utf8
/** 创建数据表时默认的文字编码 */
define('DB_CHARSET', 'utf8');
# 保存退出,浏览器进行安装
设置WordPress基本信息
登录后进入后台仪表盘,安装结束!
本文地址:
文章标题:
最新分享资源
0102030405060708Maxthon 3.0
Windows 7刚刚按照你的伪静态规则设置了一下。成功了。谢谢啦!
Firefox 3.0.6
openSUSE不客气~~
Google Chrome 8.0.556.0
Windows 7hi,我使用了vps和cos-html-cache以及inove主题,但是搜索不管用了,可以帮我写写静态化么?
Firefox 3.6.9
Red Hat Enterprise Linux 6cos-html-cache这个插件我没用过,可能不一样~~
Google Chrome 10.0.634.0
Windows XP您好,我按照您的设置,还是不对,是wordpress刚刚装好的
Google Chrome 12.0.742.112
Windows 7可以的,你可能放错地方了!
Google Chrome 13.0.782.112
Windows 7 x64 Edition设置成功,非常感谢!
Sogou Explorer
Windows 7请问遇到过没有网页返回404很慢的情况呢?
就是访问一个不存在的页面,后台已经是404了。但是前台一直是等待服务器响应的状态。。
Firefox 14.0.1
Windows 7 x64 Edition请教 如果wordpress要是放在子目录,怎么办呢?
例如 /home/wwwroot//blog
Google Chrome 22.0.1229.79
Windows 7 x64 Edition设置成功,谢谢啦!
Firefox 19.0
Ubuntu帮我大忙啦.
Google Chrome 26.0.1410.65
10.7.5测试成功,但是不知道是什么原理?
电子邮件 *
博文浏览排名
- 272,238 views - 266,618 views - 136,473 views - 120,353 views - 96,104 views - 75,937 views - 72,581 views - 69,074 views - 68,153 views - 64,897 views
2017年五月
891011121314
15161718192021
22232425262728IIS下实现Wordpress伪静态的方法_网页制作_西部e网
IIS下实现Wordpress伪静态的方法
在Apache下实现Wordpress伪静态是十分容易的,但是在IIS下实现似乎就遇到了一些麻烦。以前不少方法都是使用ISAPI_Rewrite.dll来实现,但是ISAPI_Rewrite.dll需要破解。下面介绍一个使用WordPressURLRewrite来实现伪
在Apache下实现Wordpress伪静态是十分容易的,但是在IIS下实现似乎就遇到了一些麻烦。以前不少方法都是使用ISAPI_Rewrite.dll来实现,但是ISAPI_Rewrite.dll需要破解。下面介绍一个使用WordPressURLRewrite来实现伪静态的方法,这个可是free的哦~~~
1、下载WordPressURLRewrite
WordPressURLRewrite支持32位和64位的Windows版本。下载地址如下:
下载后解压,里面有四个文件。其中WordPressURLRewrite32.dll和WordPressURLRewrite64.dll文件就是最重要的ISAPI文件,WordPressURLRewrite.ini文件是配置文件,这个文件后面介绍,txt文件是说明文件。
2、配置WordPressURLRewrite
选择版本后,要保证dll文件和ini文件在同一目录下面。在ISAPI筛选器中加载WordPressURLRewrite32.dll文件(如图),然后要给dll所在的目录加上IIS_WPG组的权限。
配置完成后只需要重启网站就可以了,无需重启IIS。
3、ini配置文件介绍
WordPressURLRewrite.ini文件主要是为了设置网站目录和需要排除的目录。
以下是文件内容:
#Paths to Rewrite (not case sensitive)
#Path Exceptions (not case sensitive)
/wp%2dadmin
/wp-content
/wp%2dcontent
这里主要介绍Path Exceptions,因为我自己在网站中放了一个about目录,但是配置了WordPressURLRewrite之后,却发现无法访问这个目录了,想正常访问这个真实的目录,就需要加入到这里:
#Path Exceptions (not case sensitive)
/wp%2dadmin
/wp-content
/wp%2dcontent
加入之后,需要重启IIS才可以生效。
4、WordPressURLRewrite的缺点
WordPressURLRewrite无法重写以.html结尾的URL,只能以目录形式组成,而且不支持中文的tag。
赞助商链接:看有的网上说只支持静态网页。可是自己建了一个wordpress,就是apache的。
动态http互动是不是都是HttpServlet实现的?
谢谢。
java编程用的。Apache是普通服务器,本身只支持html即普通网页。不过可以通过插件支持PHP,还可以与Tomcat连通(单向Apache连接Tomcat...
自己做或者找。
你太懒了。
1. Support JPG, JPEG, GIF, BMP and PNG files,with maximum size of 4M
2. Preferr...
给你看看这个:目前行内流行Blast病毒,症状为svchost.exe进程报错, 提示
系统60秒内关机。若提示svchost.exe进程报错时,勿点击“确
...
www就是万维网 没有www没有什么特别的意思 我的主页地址就没有~
大家还关注
确定举报此问题
举报原因(必选):
广告或垃圾信息
激进时政或意识形态话题
不雅词句或人身攻击
侵犯他人隐私
其它违法和不良信息
报告,这不是个问题
报告原因(必选):
这不是个问题
这个问题分类似乎错了
这个不是我熟悉的地区博客访问: 132288
博文数量: 50
博客积分: 2691
博客等级: 少校
技术积分: 527
注册时间:
IT168企业级官微
微信号:IT168qiye
系统架构师大会
微信号:SACC2013
分类: LINUX
Linux+mysql+apache+php+wordpress
,windowwindowsipip
Linuxlinuxfreebsdgentooubuntuubuntu
ubuntu10.04iso
mysq5.0mysql-5.1.49
mysql(rpm)
mysqlmysqlmysql
mysql-5.1.49libmysqlclient.so.16libmysqlclient.so.15mysqlbinlibmy.cnfbin/bin,/sbin,/usr/bin,/usr/sbin,/usr/local/bin,ls mysql*mysqlbinrm mysql*lib/lib,/usr/lib,/usr/local/lib,ls libmysql*mysqllibrm libmysql*/f/etc/mysql
mysqltar/usr/local
tar xvf mysql-5.1.49-linux-i686-glibc23.tar.gz
mysql-5.1.49-linux-i686-glibc23mysql
cd /usr/local/mysqlINSTALL-BINARY
shell> groupadd mysql
shell> useradd -g mysql mysql
shell> cd /usr/local
shell> cd mysql
shell> chown -R mysql .
shell> chgrp -R mysql .
shell> scripts/mysql_install_db --user=mysql
shell> chown -R root .
shell> chown -R mysql data
shell> bin/mysqld_safe --user=mysql &
./mysqladmin –u root password 123456
./mysql –p123456mysql
mysql –p123456mysqlbinPATH
mysqlbinPATH
export PATH=$PATH::/usr/local/mysql/bin
mysqlroot123456
phpapachedsophpapachedsodso
./configure –prefix=/usr/local/apache –enable-so
--enable-sophp
make install
./apachectl start apache
ip192.168.16.7it worksapache
httpd: Could not reliably determine the server's fully qualified domain name, using 127.0.0.1 for ServerName
conf/httpd.confServerNamehttpd.conf
ServerName #
apacheApache
./configure --prefix=/usr/local/php --with-apxs2=/usr/local/apache/bin/apxs
--with-mysql=/usr/local/mysql
--with-mysqlmysql
--with-apxs2apachemodulesphpso
--with-apxs2apache2.0
--with-apxsapache1.0
apache2.0--with-apxs2
make install
apacheapachephpphpinfo.php,<?php& phpinfo(); ?>
apachehttpd.confAddType application/x-gzip .gz .tgz
AddType application/x-httpd-php .php
phppcrecurl
/usr/local/apache/htdocs
apachehttpd.confDocumentRoot
/usr/local/apache/htdocswordpressip192.168.16.7
cp wp-config-sample.php wp-config.php
wp-config.php
define('DB_NAME', 'database_name_here');
define('DB_USER', 'username_here');
define('DB_PASSWORD', 'password_here');
define('DB_HOST', 'localhost');
database_name_heremysqlmysqlwordpressdatabase_name_herewordpress
username_hereroot
password_here123456
Index of /wordpress
httpd.conf
AllowOverride None
AllowOverride NoneAllowOverride All
wordpress.htaccess
DirectoryIndex index.php index.html
# BEGIN WordPress
RewriteEngine On
RewriteBase /
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule . /index.php [L]
# END WordPress
wordpressbug
阅读(4540) | 评论(0) | 转发(0) |
相关热门文章
给主人留下些什么吧!~~
请登录后评论。

我要回帖

更多关于 玩绝地大逃杀蓝屏死机 的文章

 

随机推荐