好!欢迎访问迷津渡口 现在时间是: 天气 °C ~ °C

迷津渡口

越感到迷惑 越接近真理

无法建立目录wp-content/uploads/xxxx/xx。有没有上级目录的写权限?

环境一:Linux本地安装Wordpress

按照以下方法重新设置用户和安全权限:

  1. 创建用户www,输入两次密码

    sudo useradd www
    sudo passwd www
  2. 修改用户权限:

    sudo gedit /etc/passwd

    找到www的那一行,类似下面一行:

    www:x:1001:1001::/home/www:

    将www的home目录改为网页服务器的根目录如:/var/www/,并增加不让用户登录的设置:

    www:x:1001:1001::/var/www/:/sbin/nologin
  3. 设置httpd.conf:

    // 普通Linux
    sudo gedit /etc/httpd/conf/httpd.conf
    // Ubuntu
    sudo gedit /etc/apache2/httpd.conf
    // Xampp软件用户
    sudo gedit /opt/lampp/etc/httpd.conf

    找到设置服务器用户和群组的那一行,可能默认用户为daemon或者已经是www:

    User daemon
    Group daemon

    改为:

    User www
    Group www
  4. 配置/var/www文件夹和文件权限,完美安全的权限配置为:

    // 设置用户和群组
    sudo chown -R www:www /var/www
    // 设置文件夹权限为755
    sudo find /var/www -type d -exec chmod 755 {} \;
    // 设置文件权限为644
    sudo find /var/www -type f -exec chmod 644 {} \;

环境二:虚拟主机安装Wordpress

首先确认wp-content下有uploads目录,没有则创建,并修改权限为755,若不行则修改数据库:

  1. 使用PHPMyAdmin进入数据库,找到Wordpress的数据库,打开wp_options表

  2. 查看表中键名为upload_path的键值(可能在表的第二页)

  3. 将值改为: "wp-content/uploads"

若仍旧不行,修改所有文件夹权限为755,应该可以解决。 注意:最好文件夹权限为755,文件权限为644。


点赞7
 标签: wordpress权限设置
   支持一下
挤眼 亲亲 咆哮 开心 想想 可怜 糗大了 委屈 哈哈 小声点 右哼哼 左哼哼 疑问 坏笑 赚钱啦 悲伤 耍酷 勾引 厉害 握手 耶 嘻嘻 害羞 鼓掌 馋嘴 抓狂 抱抱 围观 威武 给力
 点赞
 签到
 表情
 图片
 代码
提交评论

清空信息
关闭评论
lakeshorelax
 lakeshorelax 2019-05-22 03:44回复
#175
<a href="http://www.kiprahrakyat.com/nike-roshe-run-clear-blau-schuhei">nike roshe run clear blau</a> <a href="http://www.bmwoodworx.com/penn-state-47-hat-hath">penn state 47 hat</a> <a href="http://www.stpetereads.com/air-jordan-retro-7-mintgr%C3%B8n-hvid-trainersce">air jordan retro 7 mintgr酶n hvid</a> <a href="http://www.madebyizzaroo.com/converse-alle-star-wei%C3%9F-leder-verkauf-schuhek">converse alle star wei脽 leder verkauf</a> <a href="http://www.eliteogame.com/kvinders-nike-flyknit-lunar-3-lyser%C3%B8d-gr%C3%A5-scarpeg">kvinders nike flyknit lunar 3 lyser酶d gr氓</a> <a href="http://www.betakimassage.com/nike-air-jordan-4-blanc-and-bleu-kurpesb">nike air jordan 4 blanc and bleu</a>
lakeshorelax http://www.lakeshorelax.com/
aspenmedisys
 aspenmedisys 2019-05-22 01:42回复
#174
<a href="http://www.shiftcampus.com/russell-westbrook-jersey-youth-large-nfli">russell westbrook jersey youth large</a> <a href="http://www.fiestanetwork.com/nike-zoom-structure-19-gr%C3%A5-r%C3%B8d-skoq">nike zoom structure 19 gr氓 r酶d</a> <a href="http://www.sunbeltsaves.com/ralph-lauren-rugby-shorts-poloh">ralph lauren rugby shorts</a> <a href="http://www.drmastella.com/air-jordan-retro-14-yellow-pink-shoesi">air jordan retro 14 yellow pink</a> <a href="http://www.khzrubber.com/womens-air-max-90-em-pink-white-shoesk">womens air max 90 em pink white</a> <a href="http://www.jkdeskisehir.com/nike-free-og-14-woven-off-hvit-obuvq">nike free og 14 woven off hvit</a>
aspenmedisys http://www.aspenmedisys.com/
new era mlb hats
 new era mlb hats 2019-05-21 22:34回复
#173
<a href="http://www.sportingsada.com/adidas-zx-630-blue-pink-shoesa">adidas zx 630 blue pink</a> <a href="http://www.cebupages.com/nike-air-presto-ultra-flyknit-rojo-marr%C3%B3n-kurpesa">nike air presto ultra flyknit rojo marr贸n</a> <a href="http://www.dechangwuliu.com/mens-asics-gel-hyper-33-red-silver-sportsd">mens asics gel hyper 33 red silver</a> <a href="http://www.kvkeshavpuram.com/nike-flyknit-lunar-1-teal-green-shoesc">nike flyknit lunar 1 teal green</a> <a href="http://www.xfangc.com/nike-air-max-95-todas-blanco-house-schuhef">nike air max 95 todas blanco house</a> <a href="http://www.cokhithinhanh.com/nike-lebron-12-marr%C3%B3n-negro-kurpesd">nike lebron 12 marr贸n negro</a>
new era mlb hats http://www.ojidrinks.com/new-era-mlb-hats-hats
dgrabovsky
 dgrabovsky 2019-05-21 13:33回复
#172
<a href="http://www.avantajreyonu.com/menn-asics-gel-lyte-v-5-brazil-gr%C3%B8nn-bl%C3%A5-gul-obuvk">menn asics gel lyte v 5 brazil gr酶nn bl氓 gul</a> <a href="http://www.oranjeskishop.com/air-jordan-retro-4-bianca-snake-scarpei">air jordan retro 4 bianca snake</a> <a href="http://www.johannafrost.com/nike-hyperdunk-2016-blanco-zapatosh">nike hyperdunk 2016 blanco</a> <a href="http://www.rolandviet.com/nike-air-pegasus-92-hvid-gr%C3%A5-skok">nike air pegasus 92 hvid gr氓</a> <a href="http://www.classmedya.com/converse-chuck-taylor-all-star-2-svart-obuvi">converse chuck taylor all star 2 svart</a> <a href="http://www.anteageserums.com/hombres-nike-air-max-2014-corriendo-zapatos-wolf-gris-zapatosl">hombres nike air max 2014 corriendo zapatos wolf gris</a>
dgrabovsky http://www.dgrabovsky.com/
ipodammo
 ipodammo 2019-05-21 12:59回复
#171
<a href="http://www.yogafriendly.com/croatia-home-croatia-away-nfli">croatia home croatia away</a> <a href="http://www.btvspassion.com/mujer-nike-air-force-1-flyknit-low-watermelon-rojo-zapatosh">mujer nike air force 1 flyknit low watermelon rojo</a> <a href="http://www.trusejenta.com/air-max-90-zapatilla-de-deporteboot-rojo-zapatosk">air max 90 zapatilla de deporteboot rojo</a> <a href="http://www.chatgroupies.com/ladies-pink-north-face-jacket-northfaceh">ladies pink north face jacket</a> <a href="http://www.tamarindoyam.com/nike-magistax-proximo-ii-ic-schwarz-orange-schuhek">nike magistax proximo ii ic schwarz orange</a> <a href="http://www.tinaandcoco.com/nike-air-max-thea-trainers-gr%C3%A5-skoi">nike air max thea trainers gr氓</a>
ipodammo http://www.ipodammo.com/
ayuinc
 ayuinc 2019-05-21 12:31回复
#170
<a href="http://www.snifferwalk.com/nike-flyknit-roshe-run-black-orange-shoesi">nike flyknit roshe run black orange</a> <a href="http://www.fishmackerel.com/womens-nike-roshe-run-slip-black-pink-shoesp">womens nike roshe run slip black pink</a> <a href="http://www.lauraenergy.com/nike-lebron-ambassador-9-bl%C3%A5-svart-obuvl">nike lebron ambassador 9 bl氓 svart</a> <a href="http://www.magellantt.com/kvinders-air-yeezy-ii-2-sp-max-90-alle-r%C3%B8d-skoj">kvinders air yeezy ii 2 sp max 90 alle r酶d</a> <a href="http://www.sportablecrew.com/femminile-nike-air-max-tailwind-7-blu-rosa-scarpel">femminile nike air max tailwind 7 blu rosa</a> <a href="http://www.digisolnc.com/nike-kobe-9-low-womens-purple-silver-shoesj">nike kobe 9 low womens purple silver</a>
ayuinc http://www.ayuinc.com/
mintyschoice
 mintyschoice 2019-05-21 07:26回复
#169
<a href="http://www.keleric.com/prada-bn2609-handbags-in-sakura-pink-pradah">prada bn2609 handbags in sakura pink</a> <a href="http://www.jeffreya.com/new-orleans-saints-td-queen-t-shirt-with-sequins-nfli">new orleans saints td queen t shirt with sequins</a> <a href="http://www.vuduchoan.com/nike-zoom-pegasus-33-r%C3%B8d-sort-skol">nike zoom pegasus 33 r酶d sort</a> <a href="http://www.gmfamilylaw.com/black-and-white-check-ralph-lauren-shirt-poloh">black and white check ralph lauren shirt</a> <a href="http://www.clubephytus.com/womens-nike-air-max-tailwind-5-yellow-purple-shoesi">womens nike air max tailwind 5 yellow purple</a> <a href="http://www.findnewcoupon.com/nike-air-max-lunar-1-womens-pink-red-shoesp">nike air max lunar 1 womens pink red</a>
mintyschoice http://www.mintyschoice.com/
mamatale
 mamatale 2019-05-21 06:22回复
#168
<a href="http://www.diplomabroad.com/sort-and-lyser%C3%B8d-adidas-soccer-cleats-skol">sort and lyser酶d adidas soccer cleats</a> <a href="http://www.trechadental.com/femmes-air-jordan-retro-12-oransje-obuvk">femmes air jordan retro 12 oransje</a> <a href="http://www.akhbarsanaye.com/converse-full-nero-scarpe-da-ginnastica-scarpei">converse full nero scarpe da ginnastica</a> <a href="http://www.timxes.com/nike-hypervenom-rojo-and-amarillo-zapatosh">nike hypervenom rojo and amarillo</a> <a href="http://www.leadercheetah.com/nike-kobe-11-elite-sort-skok">nike kobe 11 elite sort</a> <a href="http://www.arealleader.com/air-jordan-retro-9-svart-s%C3%B8lv-r%C3%B8d-obuvi">air jordan retro 9 svart s酶lv r酶d</a>
mamatale http://www.mamatale.com/
chatgroupies
 chatgroupies 2019-05-18 20:49回复
#167
<a href="http://www.npmgreenpros.com/air-jordan-after-game-white-black-red-shoesk">air jordan after game white black red</a> <a href="http://www.dosenotomotif.com/nike-kyrie-irving-4-gr%C3%B8n-hvid-skol">nike kyrie irving 4 gr酶n hvid</a> <a href="http://www.kuetahyalilar.com/nike-hypervenom-phantom-ii-fg-r%C3%B8d-svart-gr%C3%A5-obuvk">nike hypervenom phantom ii fg r酶d svart gr氓</a> <a href="http://www.seoaddress.com/maschio-nike-epic-react-flyknit-arancia-scarpei">maschio nike epic react flyknit arancia</a> <a href="http://www.drpfanstiel.com/nike-tiempo-legend-v-ag-negro-pomo-amarillo-zapatosh">nike tiempo legend v ag negro pomo amarillo</a> <a href="http://www.ericmichaelpr.com/adidas-superstar-hvid-b%C3%B8rn-skok">adidas superstar hvid b酶rn</a>
[url=http://www.chatgroupies.com/]chatgroupies[/url]
dominiogold
 dominiogold 2019-05-18 19:10回复
#166
<a href="http://www.dastforoush.com/nike-internationalist-men-red-shoesk">nike internationalist men red</a> <a href="http://www.etxekalte.com/new-jordan-ultra-fly-obsidian-infrar%C3%B8d-23-deep-skoj">new jordan ultra fly obsidian infrar酶d 23 deep</a> <a href="http://www.tumbhimall.com/nike-flyknit-max-blau-lagoon-bright-crimson-3-schuheh">nike flyknit max blau lagoon bright crimson 3</a> <a href="http://www.formulaforfun.com/men-nike-shox-current-black-white-shoesk">men nike shox current black white</a> <a href="http://www.icallvoters.com/michael-kors-monogram-crossbody-mkh">michael kors monogram crossbody</a> <a href="http://www.megadomenl.com/nike-air-max-270-kvinner-lilla-hvit-obuvi">nike air max 270 kvinner lilla hvit</a>
dominiogold http://www.dominiogold.com/
顶部留言底部
 00:00/00:00
我想和你虚度时光 - 花房姑娘(9)
  1. 我想和你虚度时光
  2. 花房姑娘
  3. 恋恋风尘
  4. 我喜爱一切不彻底的事物
  5. 我的心里是满的
  6. Long Way
  7. 给少年的歌
  8. 晴日共剪窗
  9. 天上的月你的脸