Top Menu

Debian 7.8 设置WordPress文件夹权限

以Root账户登录SFTP方式上传的Wordpress文件都是归属于Root用户的,而Wordpress运行的时候Apache是以www-data用户权限运行的,所以如果发现更新插件出现需要FTP登陆,就说嘛Wordpress文件夹的权限设置有问题。

修改Wordpress文件夹权限

首先,cd 到wordpress所在的根目录

# cd /your/wordpress/root

接着运行命令,-R  表示修改所有子文件夹,www-data 是Apache使用的用户名,* 代表修改当前目录下的所有文件

# chown -R www-data:www-data *

Continue Reading 0

Debian 7.8 Wheezy 64-bit U盘重新分区及格式化为ext4

最近在测试DD-WRT的USB功能,需要一个ext4格式的U盘,下面就来用Debian来格式化U盘。

系统环境

Debian 7.8 Wheezy 64-bit,Vmware Workstation 10,16GB exFAT文件格式U盘一个

格式化U盘

首先在虚拟机上将U盘连接到虚拟机,这时会弹出窗口提示U盘的文件系统问题,忽略并关闭窗口。

打开Terminal窗口,输入命令查找U盘的路径

# fdisk -l

fdisk命令会输出所有disk

Disk /dev/sda: 21.5 GB, 21474836480 bytes 255 heads, 63 sectors/track, 2610 cylinders, total 41943040 sectors Units = sectors of 1 * 512 = 512 bytes Sector size (logical/physical): 512 bytes / 512 bytes I/O size (minimum/optimal): 512 bytes / 512 bytes Disk identifier: 0x0006dbe7 Device Boot Start End Blocks Id System /dev/sda1 * 2048 40136703 20067328 83 Linux /dev/sda2 40138750 41940991 901121 5 Extended /dev/sda5 40138752 41940991 901120 82 Linux swap / Solaris Disk /dev/sdb: 16.0 GB, 16008609792 bytes 255 heads, 63 sectors/track, 1946 cylinders, total 31266816 sectors Units = sectors of 1 * 512 = 512 bytes Sector size (logical/physical): 512 bytes / 512 bytes I/O size (minimum/optimal): 512 bytes / 512 bytes Disk identifier: 0x00000000 Device Boot Start End Blocks Id System /dev/sdb1 32 31266815 15633392 7 HPFS/NTFS/exFAT

Continue Reading 0

Debian 7.8 Wheezy 64-bit 安装Vmware Tools

全新安装完Debian7.8之后,为了实现根据窗口自动调整分辨率和共享剪贴板,需要安装Vmware Tools。

安装环境

Debian 7.8 Wheezy 64-bit,Vmware Workstation 10

安装支持库

因为全新安装,所以首先需要安装一些缺少的支持库

#apt-get install binutils cpp gcc make psmisc linux-headers-$(uname -r)

Continue Reading 0

Powered by WordPress. Designed by WooThemes