xampp lampp 改变网页root目录的方法
This is an old question but I haven't seen it properly answered yet. Here is what you need to do:
- Install XAMPP in Windows and LAMPP in Ubuntu
- Boot into Ubuntu and record your Windows htdocs folder (say
/media/user/OS/xampp/htdocs
) - Go to
/opt/lampp/etc
and edithttpd.conf
and make the following changes (you will need root permissions to do so) - Replace
by#DocumentRoot "/opt/lamp/htdocs"
#DocumentRoot "/media/user/OS/xampp/htdocs"
- Replace
byDirectory "/opt/lampp/htdocs"
Directory "/media/user/OS/xampp/htdocs"
-
In the
section replaceIfModule unixd_module
byUser daemon Group daemon
User yourUsername Group yourGroupname
Typically yourUsername and yourGroupname are the same: the name of your Ubuntu user but you can check this out in/etc/passwd
and/etc/groups
-
Restart LAMPP services and you should be good to go.
----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
支付宝扫一扫捐赠
支付宝扫一扫捐赠

微信公众号: 共鸣圈
欢迎讨论,邮件: 924948$qq.com 请把$改成@
QQ群:263132197
QQ: 924948