dolibarr是一个开放源代码的可商用的erp和crm管理系统,也就是说可白嫖,下面看看安装dolibarr的过程。
- mysqli::__construct(): (HY000/2002): No such file or directory
Warning: mysqli: (HY000/2002): No such file or directory inon line Failed to connect to MySQL: No such file or directory
提示:No such file or directory,但是其实不是文件找不到的意思。问题一般是数据库连不上,检查下连接数据库的配置信息,尤其是localhost,将它换成127.0.0.1试试。
我将localhost换成127.0.0.1就可以了。
新建文件和文件夹
1
2
3
4
5
6
7
8cd dolibarr/
touch htdocs/conf/conf.php
# 授权
chmod -R 777 htdocs/conf
mkdir documents
chmod -R 777 documents访问
1
2
3
4
5
6
7
8
9
10# 检查apache2服务配置
vim /etc/apache2/httpd.conf
# DocumentRoot指定到dolibarr/htdocs目录下即可
DocumentRoot "/Users/zuolichen/opt/dolibarr/htdocs"
# 启动apache2
sudo apachectl start
http://localhost/
We smile, we angry, we disappoint, we excited, we love, we hate, that’s our life.
书山有路勤为径,学海无涯苦作舟。
欢迎关注微信公众号:【程序员写书】
喜欢宠物的朋友可以关注:【电巴克宠物Pets】
一起学习,一起进步。
