ubuntu 11 安装 mysql dedecms
#/etc/init.d/mysql.server start
错误
Starting MySQL
* Couldn't find MySQL manager (/usr/bin/mysqlmanager) or server (/usr/bin/mysqld_safe)
# ln -s /usr/local/mysql/bin/mysqlmanager /usr/bin/mysqlmanager 添加一个快捷方式
# ln -s /usr/local/mysql/bin/mysqld_safe /usr/bin/mysqld_safe
在启动正常了
#/etc/init.d/mysql.server start
重新编译 php 以支持 mysql
#./configure --prefix=/usr/local/php5 --with-gd --enable-fpm --with-jpeg-dir --with-png-dir --enable-mbstring --with-mysql=/usr/local/mysql
#make && make install
经测试无法连接数据库
#ln -s /var/run/mysqld/mysqld.sock /tmp/mysqld.sock 加个快捷方式也可以 或者重新编译 php 加上 --with-mysql-sock=/var/run/mysqld/mysqld.sock
安装 dedecms 发现 图形验证码无法显示,而我自己的简单验证码可以生成,应该是织梦的验证码用到的函数有的没有编译到 PHP 里面。查看错误日志也没有任何内容。
分析 dedecms 的源码 有加载字体的
Fatal error: Call to undefined function imagettftext() in /usr/local/nginx/html/include/vdimgck.php on line 140
加上 --with-freetype-dir[=DIR] 重新编译 php
先安装吧
apt-get install freetype6*
./configure --prefix=/usr/local/php5 --with-gd --enable-fpm --with-jpeg-dir --with-png-dir --enable-mbstring --with-mysql=/usr/local/mysql --with-freetype-dir --enable-gd-native-ttf --enable-gd-jis-conv
重新编译以前最好清除一下上次编译
#make clean
ubuntu 11 桌面版 vi 编辑器不好用 使用前先更新一下 apt-get install vim