trying to configure according - http://www.howtoforge.com/perfect-server-debian-wheezy-apache2-bind-dovecot-ispconfig-3-p3 using debian vps and have problem with configuration of my network. $ Vi / etc / network / interfaces auto lo iface lo inet loopback ********address 168.my.ip.ad ********netmask 255.0.0.0 ********broadcast 127.255.255.255 ********up ip route replace 127.0.0.0 / 8 dev lo # Auto generated venet0 interfaces auto venet0 iface venet0 inet static ********address 168.my.ip.ad ********netmask 255.255.255.255 ********broadcast 168.my.ip.ad ****network 168.my.ip.ad ********gateway 168.my.ip.ad ********up route add default dev venet0 and $ Vi / etc / hosts 127.0.0.1 localhost 168.my.ip.ad server1.example.com server1 :: 1 localhost ip6-localhost ip6-loopback fe00 :: 0 ip6-localnet ff00 :: 0 ip6-mcastprefix ff02 :: 1 ip6-allnodes ff02 :: 2 ip6-allrouters getting - */ etc / init.d / networking restart [....] Running / etc / init.d / networking restart is deprecated because it may not re-ena [warnome interfaces ... (warning). [....] Reconfiguring network interfaces ... RTNETLINK answers: No such process done . where I'm wrong ? Thank you
tried to service bind9 start - ok service networking start - ok and root@server1:~# /etc/init.d/apache2 restart [....] Restarting web server: apache2no listening sockets available, shutting down Unable to open logs Action 'start' failed. The Apache error log may have more information. /var/log/apache2/error.log... " apache2: apr_sockaddr_info_get() failed for server1.example.com apache2: Could not reliably determine the server's fully qualified domain name, using 127.0.0.1 for ServerName thank you "
Your vps is a openvz or virtuozzoe based vps. in this case, the network card is configured on the host server and not in the vm. So you can skip the network configuration steps from the tutorial. Regarding the apache error: Please post the output of: cat /proc/user_beancounters
Thank you Sir, 1. Do I need to change my changes to the original? 2. root@server1:~# cat /proc/user_beancounters Version: 2.5 uid resource held maxheld barrier limit failcnt 17196: kmemsize 55575193 57081856 9223372036854775807 9223372036854775807 0 lockedpages 0 0 9223372036854775807 9223372036854775807 0 privvmpages 613676 615964 9223372036854775807 9223372036854775807 0 shmpages 962 978 9223372036854775807 9223372036854775807 0 dummy 0 0 9223372036854775807 9223372036854775807 0 numproc 129 159 9223372036854775807 9223372036854775807 0 physpages 413995 418564 1048576 1048576 0 vmguarpages 0 0 9223372036854775807 9223372036854775807 0 oomguarpages 308477 308477 9223372036854775807 9223372036854775807 0 numtcpsock 33 33 9223372036854775807 9223372036854775807 0 numflock 24 25 9223372036854775807 9223372036854775807 0 numpty 1 1 9223372036854775807 9223372036854775807 0 numsiginfo 1 36 9223372036854775807 9223372036854775807 0 tcpsndbuf 575520 575520 9223372036854775807 9223372036854775807 0 tcprcvbuf 540672 540672 9223372036854775807 9223372036854775807 0 othersockbuf 293624 302080 9223372036854775807 9223372036854775807 0 dgramrcvbuf 0 1288 9223372036854775807 9223372036854775807 0 numothersock 240 242 9223372036854775807 9223372036854775807 0 dcachesize 44056956 44142788 9223372036854775807 9223372036854775807 0 numfile 2021 2100 9223372036854775807 9223372036854775807 0 dummy 0 0 9223372036854775807 9223372036854775807 0 dummy 0 0 9223372036854775807 9223372036854775807 0 dummy 0 0 9223372036854775807 9223372036854775807 0 numiptent 25 25 9223372036854775807 9223372036854775807 0
1) Yes. Or restart your vm, that should reset your changes as well. 2) thats ok.Please post the output of: ls -la /var/log/apache2/
-16121:~# ls -la /var/log/apache2/ total 20 drwxr-x--- 2 root adm 4096 May 11 06:25 . drwxr-xr-x 12 root root 4096 May 12 06:09 .. -rw-r----- 1 root adm 0 May 11 06:25 access.log -rw-r----- 1 root adm 1059 May 9 17:31 access.log.1 -rw-r----- 1 root adm 0 May 11 06:25 error.log -rw-r----- 1 root adm 878 May 9 17:34 error.log.1 -rw-r----- 1 root adm 0 May 11 06:25 other_vhosts_access.log -rw-r--r-- 1 root root 1 Dec 23 2012 other_vhosts_access.log.1
ok. An the lines: apache2: apr_sockaddr_info_get() failed for server1.example.com apache2: Could not reliably determine the server's fully qualified domain name, using 127.0.0.1 for ServerName are the only errors in apache error.log file?
/var/log/apache2/error.log - is empty but /var/log/apache2/error.log.1 - " [Fri May 09 16:52:14 2014] [notice] Apache/2.2.16 (Debian) configured -- resuming normal operations [Fri May 09 17:05:45 2014] [notice] caught SIGTERM, shutting down [Fri May 09 17:05:51 2014] [notice] Apache/2.2.16 (Debian) configured -- resuming normal operations [Fri May 09 17:06:08 2014] [error] [client 180.76.5.193] File does not exist: /var/www/moodle [Fri May 09 17:08:06 2014] [notice] Graceful restart requested, doing restart apache2: apr_sockaddr_info_get() failed for server1.example.com apache2: Could not reliably determine the server's fully qualified domain name, using 127.0.0.1 for ServerName [Fri May 09 17:08:06 2014] [notice] Apache/2.2.16 (Debian) configured -- resuming normal operations [Fri May 09 17:31:14 2014] [error] [client 66.249.76.20] File does not exist: /var/www/robots.txt [Fri May 09 17:34:31 2014] [notice] caught SIGTERM, shutting down
The log is ok so far. Please try this to reinstall the apache and php packages: Code: apt-get install --reinstall apache2 apache2.2-common apache2-doc apache2-mpm-prefork apache2-utils libexpat1 ssl-cert libapache2-mod-php5 php5 php5-common php5-gd php5-mysql php5-imap phpmyadmin php5-cli php5-cgi libapache2-mod-fcgid apache2-suexec php-pear php-auth php5-mcrypt mcrypt php5-imagick imagemagick libapache2-mod-suphp libruby libapache2-mod-ruby libapache2-mod-python php5-curl php5-intl php5-memcache php5-memcached php5-ming php5-ps php5-pspell php5-recode php5-snmp php5-sqlite php5-tidy php5-xmlrpc php5-xsl memcached
during the installation ... g package has no files currently installed dpkg: warning: files list file for package 'libxcb1-dev:amd64' missing; assuming package has no files currently installed dpkg: warning: files list file for package 'libpulse-dev:amd64' missing; assuming package has no files currently installed dpkg: warning: files list file for package 'libmp3lame-dev:amd64' missing; assuming package has no files currently installed dpkg: warning: files list file for package 'libpthread-stubs0:amd64' missing; assuming package has no files currently installed dpkg: warning: files list file for package 'libmagickcore5-extra:amd64' missing; assuming package has no files currently installed dpkg: warning: files list file for package 'libasound2-dev:amd64' missing; assuming package has no files currently installed dpkg: warning: files list file for package 'libxdmcp-dev:amd64' missing; assuming package has no files currently installed dpkg: warning: files list file for package 'libxslt1.1:amd64' missing; assuming package has no files currently installed dpkg: warning: files list file for package 'libquadmath0:amd64' missing; assuming package has no files currently installed dpkg: warning: files list file for package 'libgdk-pixbuf2.0-0:amd64' missing; assuming package has no files currently installed dpkg: warning: files list file for package 'libwavpack1:amd64' missing; assuming package has no files currently installed dpkg: warning: files list file for package 'libc6-dev:amd64' missing; assuming package has no files currently installed dpkg: warning: files list file for package 'libxext-dev:amd64' missing; assuming package has no files currently installed dpkg: warning: files list file for package 'libwbclient0:amd64' missing; assuming package has no files currently installed dpkg: warning: files list file for package 'libgpac-dev:amd64' missing; assuming package has no files currently installed dpkg: warning: files list file for package 'libgssapi-krb5-2:amd64' missing; assuming package has no files currently installed dpkg: warning: files list file for package 'libva-dev:amd64' missing; assuming package has no files currently installed dpkg: warning: files list file for package 'libjpeg62:amd64' missing; assuming package has no files currently installed dpkg: warning: files list file for package 'libcurl3-gnutls:amd64' missing; assuming package has no files currently installed dpkg: warning: files list file for package 'libgd2-xpm:amd64' missing; assuming package has no files currently installed dpkg: warning: files list file for package 'libaio1:amd64' missing; assuming package has no files currently installed dpkg: warning: files list file for package 'libxinerama1:amd64' missing; assuming package has no files currently installed dpkg: warning: files list file for package 'libsdl1.2debian:amd64' missing; assuming package has no files currently installed dpkg: warning: files list file for package 'libogg-dev:amd64' missing; assuming package has no files currently installed dpkg: warning: files list file for package 'libcairo2:amd64' missing; assuming package has no files currently installed dpkg: warning: files list file for package 'libffi5:amd64' missing; assuming package has no files currently installed dpkg: warning: files list file for package 'libflac8:amd64' missing; assuming package has no files currently installed dpkg: warning: files list file for package 'libvorbis-dev:amd64' missing; assuming package has no files currently installed dpkg: warning: files list file for package 'libvorbisfile3:amd64' missing; assuming package has no files currently installed dpkg: warning: files list file for package 'libdbus-1-3:amd64' missing; assuming package has no files currently installed dpkg: warning: files list file for package 'libssl1.0.0:amd64' missing; assuming package has no files currently installed dpkg: warning: files list file for package 'libxml2:amd64' missing; assuming package has no files currently installed dpkg: warning: files list file for package 'libjpeg8-dev:amd64' missing; assuming package has no files currently installed dpkg: warning: files list file for package 'libxcb-shm0:amd64' missing; assuming package has no files currently installed dpkg: warning: files list file for package 'libfreetype6:amd64' missing; assuming package has no files currently installed dpkg: warning: files list file for package 'libva-glx1:amd64' missing; assuming package has no files currently installed dpkg: warning: files list file for package 'libtheora-dev:amd64' missing; assuming package has no files currently installed dpkg: warning: files list file for package 'libgl1-mesa-dri:amd64' missing; assuming package has no files currently installed dpkg: warning: files list file for package 'libxdmcp6:amd64' missing; assuming package has no files currently installed dpkg: warning: files list file for package 'libart-2.0-2:amd64' missing; assuming package has no files currently installed dpkg: warning: files list file for package 'libmagickcore5:amd64' missing; assuming package has no files currently installed dpkg: warning: files list file for package 'libltdl-dev:amd64' missing; assuming package has no files currently installed dpkg: warning: files list file for package 'librecode0:amd64' missing; assuming package has no files currently installed Setting up apache2.2-common (2.2.22-13+deb7u1) ... Setting up apache2-mpm-prefork (2.2.22-13+deb7u1) ... [....] Starting web server: apache2no listening sockets available, shutting down Unable to open logs Action 'start' failed. The Apache error log may have more information. failed! invoke-rc.d: i and than - /etc/init.d/apache2 restart [....] Restarting web server: apache2no listening sockets available, shutting down Unable to open logs Action 'start' failed. The Apache error log may have more information.
The dpkg warnings are not a good sign, there must be a lot of files and folders missing. it seems as if the linux system is really broken. you should connsider to start the setup again from scratch. Choose a minimal debian image as starting point, if your sp offers that.