在Ubuntu中授予用户htdocs的权限 [英] Give user permissions to htdocs in Ubuntu

查看:112
本文介绍了在Ubuntu中授予用户htdocs的权限的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我在Ubuntu中以root权限安装了xampp的opt/lampp文件夹,但是由于lampp文件夹只有root权限,所以我无法访问htdocs文件夹并且无法启动apache服务器.在Ubuntu中安装xampp

I installed xampp with root permission to opt/lampp folder in Ubuntu.but i cant access htdocs folder and unable to start apache server since the lampp folder has only root permission.How can i solve this and are there any proper way to install xampp in Ubuntu

推荐答案

要更改htdocs文件夹的所有权,请运行以下命令. [代替 用户名和您自己的用户名]

To change ownership of htdocs folder run following command. [Replace username with your own username]

sudo chown -R username:username /opt/lampp/htdocs

我们还需要更新httpd.conf文件.运行以下命令以打开 apache配置文件: sudo gedit /opt/lampp/etc/httpd.conf

We also need to update httpd.conf file. Run following command to open apache configuration file: sudo gedit /opt/lampp/etc/httpd.conf

查找以下几行:

 User nobody
 Group nogroup

有关picutres的完整答案位于

The Complete answer with picutres is in this article

这篇关于在Ubuntu中授予用户htdocs的权限的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆