好!欢迎访问迷津渡口 现在时间是: 天气 °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权限设置
   支持一下
挤眼 亲亲 咆哮 开心 想想 可怜 糗大了 委屈 哈哈 小声点 右哼哼 左哼哼 疑问 坏笑 赚钱啦 悲伤 耍酷 勾引 厉害 握手 耶 嘻嘻 害羞 鼓掌 馋嘴 抓狂 抱抱 围观 威武 给力
 点赞
 签到
 表情
 图片
 代码
提交评论

清空信息
关闭评论
calaforracs
 calaforracs 约 13 小时前回复
#134
<a href="http://www.energiidesign.com/hombres-nike-free-5.0-rojo-oro-obuvd">hombres nike free 5.0 rojo oro</a> <a href="http://www.fuelrat.com/kyrie-3-plata-lake-obuvf">kyrie 3 plata lake</a> <a href="http://www.artkabis.com/nike-air-max-1-vert-essential-schuhee">nike air max 1 vert essential</a> <a href="http://www.auroraprop.com/nike-blazer-high-sb-noir-blanc-obuvd">nike blazer high sb noir blanc</a> <a href="http://www.bnkolabs.com/nike-free-tr-fit-3-rosa-wei%C3%9F-butyd">nike free tr fit 3 rosa wei脽</a> <a href="http://www.cifretail.com/air-jordan-11-low-for-vendita-obuvc">air jordan 11 low for vendita</a>
[url=http://www.calaforracs.com/]calaforracs[/url]
minicomposer
 minicomposer 2019-04-24 15:14回复
#133
<a href="http://www.twistnik.com/nike-huarache-gris-and-blanc-chaussuresj">nike huarache gris and blanc</a> <a href="http://www.pkbocrangsu.com/nike-cortez-nylon-m%C3%A4nner-guangzhou-rot-schuhek">nike cortez nylon m盲nner guangzhou rot</a> <a href="http://www.celudela.com/phoenix-all-star-game-scottie-pippen-30-away-jersey-authentic-and-stitched-great-quality-nflh">phoenix all star game scottie pippen 30 away jersey authentic and stitched great quality</a> <a href="http://www.fooksung.com/nike-tiempo-legacy-tf-football-r%C3%B8d-hvit-obuvi">nike tiempo legacy tf football r酶d hvit</a> <a href="http://www.ankaramarti.com/nike-air-max-classic-bw-schwarz-pink-shoesj">nike air max classic bw schwarz pink</a> <a href="http://www.gcpoloclub.com/nike-dunk-sky-hi-all-white-shoesl">nike dunk sky hi all white</a>
minicomposer http://www.minicomposer.com/
townyplay
 townyplay 2019-04-23 01:24回复
#132
<a href="http://www.reviewtogel.com/ray-ban-sunglasses-rb2132-price-sunglassesh">ray ban sunglasses rb2132 price</a> <a href="http://www.igrejamormon.com/los-angeles-dodgers-new-era-mlb-antique-camo-59fifty-cap-hatj">los angeles dodgers new era mlb antique camo 59fifty cap</a> <a href="http://www.skonya.com/nike-shox-deliver-grigio-and-blu-line-scarpej">nike shox deliver grigio and blu line</a> <a href="http://www.monsterplate.com/adidas-porsche-schwarz-schuhei">adidas porsche schwarz</a> <a href="http://www.kentimpendik.com/m%C3%A6nd-nike-zoom-pegasus-34-dark-bl%C3%A5-jade-skoh">m忙nd nike zoom pegasus 34 dark bl氓 jade</a> <a href="http://www.attivopizza.com/elite-vince-wilfork-new-england-patriots-mens-road-jersey-75-super-bowl-xlix-nike-nfl-white-nfli">elite vince wilfork new england patriots mens road jersey 75 super bowl xlix nike nfl white</a>
townyplay http://www.townyplay.com/
losvalenzuela
 losvalenzuela 2019-04-22 11:13回复
#131
<a href="http://www.wirtagraphy.com/nike-kobe-icon-bl%C3%A5-gr%C3%B8n-scarpee">nike kobe icon bl氓 gr酶n</a> <a href="http://www.yolkedprotein.com/air-jordan-4.5-s%C3%B8lv-hvit-obuvc">air jordan 4.5 s酶lv hvit</a> <a href="http://www.ensitele.com/air-jordan-low-future-sort-weaving-scarpea">air jordan low future sort weaving</a> <a href="http://www.kaavun.com/nike-kaishi-herren-2.0-chaussuresg">nike kaishi herren 2.0</a> <a href="http://www.loanswithcash.com/air-jordan-retro-11-anti-fur-sort-bl%C3%A5-kurpese">air jordan retro 11 anti fur sort bl氓</a> <a href="http://www.maconeonone.com/air-jordan-retro-12-or-rouge-obuva">air jordan retro 12 or rouge</a>
losvalenzuela http://www.losvalenzuela.com/
redfiveonline
 redfiveonline 2019-04-21 07:48回复
#130
<a href="http://www.delicouncil.com/adidas-tubular-r%C3%B8d-and-sort-skol">adidas tubular r酶d and sort</a> <a href="http://www.jeffaudette.com/nike-kd-8-lilla-gr%C3%B8nn-obuvk">nike kd 8 lilla gr酶nn</a> <a href="http://www.ezappspro.com/air-jordan-retro-6-bianca-gituttio-scarpei">air jordan retro 6 bianca gituttio</a> <a href="http://www.susannekober.com/hombres-nike-blazer-rojo-zapatosh">hombres nike blazer rojo</a> <a href="http://www.kingsroomlv.com/m%C3%A6nd-nike-air-huarache-hvid-bl%C3%A5-r%C3%B8d-skok">m忙nd nike air huarache hvid bl氓 r酶d</a> <a href="http://www.sadecemerak.com/nike-mercurial-victory-v-cr-indoor-bl%C3%A5-gr%C3%A5-oransje-obuvi">nike mercurial victory v cr indoor bl氓 gr氓 oransje</a>
redfiveonline http://www.redfiveonline.com/
staholidays
 staholidays 2019-04-20 03:39回复
#129
<a href="http://www.cmtalks.com/nike-air-max-noir-man-chaussuresh">nike air max noir man</a> <a href="http://www.ianbaaske.com/nike-air-force-1-low-lizard-wei%C3%9F-metalleic-gold-schuheh">nike air force 1 low lizard wei脽 metalleic gold</a> <a href="http://www.escawinebar.com/nike-kaishi-grey-black-shoesk">nike kaishi grey black</a> <a href="http://www.nexcouriers.com/air-jordan-retro-9-hvid-bl%C3%A5-orange-skoj">air jordan retro 9 hvid bl氓 orange</a> <a href="http://www.admitoneuk.com/m%C3%A4nner-nike-air-max-tailwind-6-blau-schwarz-orange-schuheh">m盲nner nike air max tailwind 6 blau schwarz orange</a> <a href="http://www.rizeingilizce.com/air-max-90-lime-green-south-africa-shoesk">air max 90 lime green south africa</a>
staholidays http://www.staholidays.com/
escortsue
 escortsue 2019-04-19 13:30回复
#128
<a href="http://www.cnovas.com/air-jordan-horizon-oransje-gr%C3%B8nn-obuvk">air jordan horizon oransje gr酶nn</a> <a href="http://www.omnicitycorp.com/adidas-nmd-runner-pink-silver-shoesi">adidas nmd runner pink silver</a> <a href="http://www.cmcheechalk.com/nike-kobe-9-mid-guld-gr%C3%B8n-skoj">nike kobe 9 mid guld gr酶n</a> <a href="http://www.armandopaz.com/air-yeezy-ii-2-sp-max-90-kvinners-hvit-r%C3%B8d-obuvi">air yeezy ii 2 sp max 90 kvinners hvit r酶d</a> <a href="http://www.alrightdesign.com/nike-kobe-9-low-kvinners-lilla-s%C3%B8lv-obuvk">nike kobe 9 low kvinners lilla s酶lv</a> <a href="http://www.parksindust.com/kvinners-asics-gel-kinsei-4-hvit-s%C3%B8lv-obuvi">kvinners asics gel kinsei 4 hvit s酶lv</a>
escortsue http://www.escortsue.com/
sarhallafk
 sarhallafk 2019-04-18 23:24回复
#127
<a href="http://www.townyplay.com/air-jordan-9-blu-scarpej">air jordan 9 blu</a> <a href="http://www.djpunjabii.com/nike-blazer-mid-lr-neutral-grau-schwarz-schuhej">nike blazer mid lr neutral grau schwarz</a> <a href="http://www.avsomurie.com/tennessee-snapback-hath">tennessee snapback</a> <a href="http://www.circusveil.com/nike-air-presto-hommes-bleu-chaussuresh">nike air presto hommes bleu</a> <a href="http://www.laconiaoil.com/nike-m%C3%A4nner-air-max-flair-schwarz-wei%C3%9F-schuheh">nike m盲nner air max flair schwarz wei脽</a> <a href="http://www.hurizmir.com/converse-navy-blue-low-shoesk">converse navy blue low</a>
sarhallafk http://www.sarhallafk.com/
livefreshpbc
 livefreshpbc 2019-04-18 13:29回复
#126
<a href="http://www.zeraxia.com/adidas-yeezy-v2-sort-skoj">adidas yeezy v2 sort</a> <a href="http://www.turisim.com/schwarz-gum-covers-the-nike-air-force-1-low-schuheh">schwarz gum covers the nike air force 1 low</a> <a href="http://www.sybelite.com/2017-air-jordan-11-purple-velvet-shoesk">2017 air jordan 11 purple velvet</a> <a href="http://www.lemodemo.com/mini-mk-backpack-mkh">mini mk backpack</a> <a href="http://www.fskanglipu.com/adidas-zx-flux-gr%C3%A5-and-rosa-obuvi">adidas zx flux gr氓 and rosa</a> <a href="http://www.tekmenu.com/nero-friday-jordan-eclipse-scarpek">nero friday jordan eclipse</a>
livefreshpbc http://www.livefreshpbc.com/
shopdunks
 shopdunks 2019-04-18 04:44回复
#125
<a href="http://www.theskifanatic.com/mujeres-air-jordan-retro-11-todas-negro-zapatosk">mujeres air jordan retro 11 todas negro</a> <a href="http://www.bestoftumblr.com/new-north-face-hoodie-northfaceh">new north face hoodie</a> <a href="http://www.thehogrider.com/nike-zoom-structure-20-dam%C3%A4nner-grau-gelb-schuhej">nike zoom structure 20 dam盲nner grau gelb</a> <a href="http://www.artpreneure.com/kvinders-nike-roshe-run-speckle-hvid-bl%C3%A5-skoh">kvinders nike roshe run speckle hvid bl氓</a> <a href="http://www.thefarmergirl.com/air-jordan-future-femmes-hommesthe-verte-argent-chaussuresh">air jordan future femmes hommesthe verte argent</a> <a href="http://www.shetablink.com/buffalo-bills-hat-with-horns-hatl">buffalo bills hat with horns</a>
shopdunks http://www.shopdunks.com/
顶部留言底部
 00:00/00:00
我想和你虚度时光 - 花房姑娘(9)
  1. 我想和你虚度时光
  2. 花房姑娘
  3. 恋恋风尘
  4. 我喜爱一切不彻底的事物
  5. 我的心里是满的
  6. Long Way
  7. 给少年的歌
  8. 晴日共剪窗
  9. 天上的月你的脸