我试图在Ubuntu上下载Wordpress,但我似乎总是收到这样的信息:
web2@web2-Advent-DT3411:~$ cd ~/wordpress
web2@web2-Advent-DT3411:~/wordpress$ cp wp-config-sample.php wp-config.php
cp: cannot create regular file ‘wp-config.php’: Permission denied是否因为我没有创建或编辑文件和文件夹的权限?
发布于 2014-09-25 20:15:15
请试一下这个。
为您的文件夹授予权限
sudo chmod -R 777 /opt/lampp/htdocs/your folder name或
复制wp-config-sample.php文件并将其重命名为wp-config.php,然后
更改您的用户名、数据库名称、密码和主机。
像这样:
define('DB_NAME', 'wordpress');
/** MySQL database username */
define('DB_USER', 'root');
/** MySQL database password */
define('DB_PASSWORD', '');
/** MySQL hostname */
define('DB_HOST', 'localhost');发布于 2017-01-16 18:14:04
我在我的ubuntu 14.04上成功地安装了wordpress,只需遵循以下三个步骤:
1.从https://www.apachefriends.org/download.html安装xampp

使用命令=>运行下载的文件
local_ubuntu$ sudo chmod 777 xampp-linux-x64-7.0.13-1-installer.run
local_ubuntu$ ./xampp-linux-x64-7.0.13-1-installer.run
Installer将弹出,然后安装。
2.然后类似地从https://bitnami.com/stack/wordpress/installer下载wordpress

运行下载的Wordpress文件=>
bitnami-wordpress-4.7.1-0-linux-x64-installer.run local_ubuntu$ sudo chmod 777
local_ubuntu$ ./bitnami-wordpress-4.7.1-0-linux-x64-installer.run
安装程序弹出,然后我将其安装在/opt/lamp/htdocs/WordPress中。
3.a.)从XAMPP屏幕-->启动所有服务。
B.)转到浏览器,在地址栏中键入->localhost:8080/wordpress。
一切都完成了……
https://stackoverflow.com/questions/26037907
复制相似问题