惯性聚合 高效追踪和阅读你感兴趣的博客、新闻、科技资讯
阅读原文 在惯性聚合中打开

推荐订阅源

P
Proofpoint News Feed
C
CERT Recently Published Vulnerability Notes
O
OpenAI News
V
Vulnerabilities – Threatpost
C
Cybersecurity and Infrastructure Security Agency CISA
S
Schneier on Security
Latest news
Latest news
F
Full Disclosure
T
Tenable Blog
T
Troy Hunt's Blog
The Last Watchdog
The Last Watchdog
S
Secure Thoughts
L
LangChain Blog
有赞技术团队
有赞技术团队
Project Zero
Project Zero
Cloudbric
Cloudbric
爱范儿
爱范儿
GbyAI
GbyAI
C
CXSECURITY Database RSS Feed - CXSecurity.com
T
The Exploit Database - CXSecurity.com
S
Security @ Cisco Blogs
Hugging Face - Blog
Hugging Face - Blog
Recorded Future
Recorded Future
大猫的无限游戏
大猫的无限游戏
Last Week in AI
Last Week in AI
C
Cisco Blogs
WordPress大学
WordPress大学
Apple Machine Learning Research
Apple Machine Learning Research
小众软件
小众软件
Cyber Security Advisories - MS-ISAC
Cyber Security Advisories - MS-ISAC
V2EX - 技术
V2EX - 技术
Engineering at Meta
Engineering at Meta
Spread Privacy
Spread Privacy
cs.CL updates on arXiv.org
cs.CL updates on arXiv.org
Hacker News: Ask HN
Hacker News: Ask HN
Recent Commits to openclaw:main
Recent Commits to openclaw:main
Schneier on Security
Schneier on Security
T
Threat Research - Cisco Blogs
M
MIT News - Artificial intelligence
让小产品的独立变现更简单 - ezindie.com
让小产品的独立变现更简单 - ezindie.com
K
Kaspersky official blog
The Hacker News
The Hacker News
V
V2EX
F
Fortinet All Blogs
L
LINUX DO - 最新话题
Cisco Talos Blog
Cisco Talos Blog
钛媒体:引领未来商业与生活新知
钛媒体:引领未来商业与生活新知
N
News | PayPal Newsroom
博客园 - 三生石上(FineUI控件)
cs.CV updates on arXiv.org
cs.CV updates on arXiv.org

博客园 - 八进制

博客已搬家 Swift开发iOS应用过程中的问题和解决记录 AndroidStudio的一些坑 Eclipse崩溃后无法启动的问题解决 Android 5.0/5.1开发问题专贴 Arduino单片机使用和开发问题记录 U盘启动笔记本无法安装Win7问题和解决 FreeSwitch安装配置记录 安装配置opensips过程记录 Android SDK开发包国内下载地址 博客园被黑了? [Android问答] 如何获得手机屏幕分辨率? [Android问答] 开发环境问题集锦 [Android问答] ListView如何加载远程图片?(附代码) [Android问答] 如何实现“退出应用”功能? [Android问答] 旋转屏幕导致Activity重建怎么办? [Android问答] 如何应对Activity进程被杀? [Android问答] 如何理解Activity生命周期? [Android问答] px、dp和sp,这些单位有什么区别?
WordPress安装使用问题记录
八进制 · 2014-11-24 · via 博客园 - 八进制

本文记录在使用WordPress过程中的问题和解决。

安装

比较顺利没有问题,具体如下(CentOS 6.5,DO的CentOS7 image里默认的yum源没有mysql-serve比较奇怪r):

安装apache、mysql和php

 yum install httpd mysql-server mysql php php-mysql

下载wordpress安装包

wget https://wordpress.org/latest.tar.gz

解压缩wordpress安装包

把wordpress移动到apache目录下

 mv /root/wp/wordpress /var/www/html

修改document root

vi /etc/httpd/conf/httpd.conf

修改:
ServerName www.mydomain.com

并在文件最后增加下面的设置:
<VirtualHost *:80>
    DocumentRoot /var/www/html/wordpress
    ServerName www.mydomain.com
</VirtualHost>  

注意:如果有多个<VirtualHost>,需要在httpd.conf里

启用下面这个配置:
NameVirutalHost *:80

启动apache和mysql服务器

service httpd start
service mysqld start

创建mysql用户(在mysql命令行里)

>create database wordpress;
>grant all privileges ON wordpress.* TO 'username'@'localhost' identified by 'mypassword' with grant option;
>flush privileges;

此时可以在浏览器里访问http://www.mydomain.com进入wordpress的安装向导,并按向导完成剩下的设置工作。

问题和解决

1、若wordpress向导提示无法建立"wp-config.php"文件,可手工在wordpress目录下建立此文件。

2、上传图片时提示“Unable to create directory wp-content/uploads/2014/11. Is its parent directory writable by the server?”或“无法建立目录wp-content/uploads/2014/11。有没有上级目录的写权限?”

试了网上一些办法没起作用,实际试验下来这样解决:

1)在wp-content下建立uploads目录,并执行“chown -R nobody:nobody uploads”;

2)将wp-content和wp-content/uploads的权限全部设置为777(chmod 777)。

3、上传plugin时提示需要ftp用户名密码

这也是由于权限不正确引起的,解决方法是将wordpress所在目录的所有者设为apache(在有些系统里可能是www):

chown -R apache /var/www/html/wordpress

参考链接

4、加载google字体慢导致blog打开很慢

通过安装插件,用国内镜像字体网址替代google字体网址。参考链接

(未完待续)