VPS注意:最近在VPS安装过程中,MYSQL老是报错
dpkg: error processing package mysql-server-5.6 (--configure): subprocess installed post-installation script returned error exit status 127 dpkg: dependency problems prevent configuration of mysql-server: mysql-server depends on mysql-server-5.6; however: Package mysql-server-5.6 is not configured yet. dpkg: error processing package mysql-server (--configure): dependency problems - leaving unconfigured Processing triggers for libc-bin (2.21-0ubuntu4) ... Errors were encountered while processing: mysql-server-5.6 mysql-server E: Sub-process /usr/bin/dpkg returned an error code (1)[/color]
百般折腾,终于谷歌一个答案生效,各位可参考一下:
locale-gen en_US en_US.UTF-8 pl_PL pl_PL.UTF-8 dpkg-reconfigure locales apt-get update apt-get --reinstall install bsdutils
仅供参考!
1、安装apache2
apt-get install apache2
2、安装PHP 和apache2 php5 mod
apt-get install php5 libapache2-mod-php5
3、安装MYSQL
apt-get install mysql-server mysql-client libmysqlclient-dev
可以通过netstat -tap | grep mysql 查看端口状态,来确认mysql是否安装正常
问题:在安装mysql时候出现问题,不知道什么原因,网上大部分的解答都是删除重新安装,删除命令如下:
rm /var/lib/mysql/ -R
rm /etc/mysql/ -R
apt-get autoremove -–purge mysql*
apt-get remove apparmor
reboot
重启之后继续安装,仍然出错,折腾几遍后,在mysql安装过程中,密码为空,安装成功,现在依然不知道原因。
4、安装phpmyadmin
apt-get install phpmyadmin
5、部分插件
安装cURL
apt-get install curl libcurl3 libcurl3-dev php5-curl
安装php-mysql
apt-get install php5-mysql
安装gd
apt-get install php5-gd
配置使用: