xampp配置以及suitcrm搭建

下载地址:

https://www.apachefriends.org/zh_cn/download.html

安装

①先赋予权限:chmod 777 xampp-linux-x64-7.2.4-0-installer.run

②执行:./xampp-linux-x64-7.2.4-0-installer.run

Linux 下 Xampp 实现域名绑定到指定目录

1.到XAMPP安装目录下,找到ETC文件夹下面的httpd.conf的文件。

找里面的

Virtual hosts

#Include etc/extra/httpd-vhosts.conf

把#去掉已开启它

Virtual hosts

Include etc/extra/httpd-vhosts.conf

然后再到extra里的httpd-vhosts.conf文件

<VirtualHost *:80>

    ServerAdmin [email protected]

    DocumentRoot /opt/lampp/htdocs/b    (这里写上所绑定到的目录)

    ServerName www.linuxidc.com                              (这里写上域名)

    ServerAlias www.dummy-host.example.com

    ErrorLog logs/dummy-host.example.com-error_log

    CustomLog logs/dummy-host.example.com-access_log common

 </VirtualHost>

创建用户:useradd apache

组的添加:groupadd apache

分配文件用户:chown -R apache /opt/lampp/htdocs/www/hqnsc

分配文件组:chgrp -R apache /opt/lampp/htdocs/www/hqnsc

分配文件权限:chmod -R 777 /opt/lampp/htdocs/www/hqnsc

启动命令:
/opt/lampp/manager-linux-x64.run

猜你喜欢

转载自blog.csdn.net/weixin_42388648/article/details/80579018