首页
学习
活动
专区
圈层
工具
发布
社区首页 >问答首页 >WP无法创建新目录

WP无法创建新目录
EN

WordPress Development用户
提问于 2016-01-05 23:05:20
回答 1查看 189关注 0票数 1

Edit2:我把这个问题从"WP没有自动添加主题“重命名为"WP无法创建新目录”,因为我发现问题有点复杂。我所做的任何涉及将数据写入/var/www/html/wordpress的操作都会发生相同的错误。我已经试过了这里的建议,也尝试过gpasswd -a www-data sudo,什么都没有.我现在不知道该怎么办了。/Edit2

我只是在学习教程,就像他从02:30到03:30:在/wp-content/themes/mytheme**中添加了一个文件夹,在mytheme中添加了一个style.css和index.php。当我进入仪表板时,它不是自动添加的,所以我尝试手动上传theme.zip。现在我收到了错误消息“无法创建目录”。我已经将** chmod -R 777设置为wordpress文件夹,但仍有以下内容

编辑:

ls -la /var/www/html/wordpress的产出**:**

lrwxrwxrwx 1 fabio www-数据20 1月4日16:45 /var/www/html/wordpress -> /usr/share/wordpress

ls -ld /usr/share/wordpress的产出**:**

drwxrwxrwx 5 www-数据根目录4096 1月8日15:46 /usr/share/wordpress

在我的主题文件夹中,我只得到了index.phpstyle.css**,这就是它们是atm:**

index.php**:**

代码语言:javascript
复制
<h1>Hello, world!</h1>

style.css**:**

代码语言:javascript
复制
/*
Theme Name: ThemeTutorial
Theme URI: http://github.com/FabioNevesRezende
Author: fabiotk
Author URI: http://github.com/FabioNevesRezende
Description: Descrição do tema
Version: 1.0
Tags: black, brown, orange, tan, white, yellow, light, one-column, two-columns, right-sidebar, flexible-width, custom-header, custom-menu, editor-style, featured-images, microformats, post-formats, rtl-language-support, sticky-post, translation-ready
Text Domain: twentythirteen

Este tema foi criado por Fábio Neves Rezende
*/

我放那些github链接只是因为我没有其他链接可放,我认为这不会造成任何错误,对吗?

EN

回答 1

WordPress Development用户

发布于 2016-01-05 23:36:49

您的style.css文件顶部是否有类似的内容,可定制为您的主题?

代码语言:javascript
复制
/*
Theme Name: ! Startups in Boston
Theme URI: http://bostonstartupsguide.com/
Author: Jay Neely
Author URI: http://socialstrategist.com
Description: Theme for BostonStartupsGuide.com. Initially built using Whiteboard Framework (http://whiteboardframework.com), redesigned using HTML 5 Boilerplate and inspired by 960.gs.
Version: 1.0
 */
票数 0
EN
页面原文内容由WordPress Development提供。腾讯云小微IT领域专用引擎提供翻译支持
原文链接:

https://wordpress.stackexchange.com/questions/213784

复制
相关文章

相似问题

领券
问题归档专栏文章快讯文章归档关键词归档开发者手册归档开发者手册 Section 归档