Tag: Debian8

  • [Application] Debian 8.6 安装nginx+php时出错dpkg无法配置nginx

    [Application] Debian 8.6 安装nginx+php时出错dpkg无法配置nginx

    其实这个问题我不是第一次遇到了,第一次遇到是很久之前在树莓派上遇到的。 先说结论:实际上是由于 apt-get install nginx php5  时,apt先安装了php5的依赖,其中有apache2,而且后面setting up的时候也是先set up的apache2,当dpkg configure nginx的时候由于80端口已经被apache2使用,所以无法继续configure nginx 解决方案就是删掉apache2,然后apt purge nginx,最后重新apt-get install nginx即可。   root@****:~# apt-get install nginx php5 Reading package lists… Done Building dependency tree Reading state information… Done The following extra packages will be installed: apache2 apache2-bin apache2-data apache2-utils libapache2-mod-php5 libapr1 libaprutil1 libaprutil1-dbd-sqlite3 libaprutil1-ldap libgd3 liblua5.1-0 libonig2 libqdbm14 libvpx1…