On 02/25/2016 03:05 PM, J dreadpiratejeff@gmail.com [LINUX_Newbies] wrote:
> On Thu, Feb 25, 2016 at 3:49 PM, Michael Sullivan msulli1355@gmail.com
> [LINUX_Newbies] <LINUX_Newbies@yahoogroups.com> wrote:
> > My current problem is with apache. It won't start. It will not tell me
> > why it won't start.
> >
> > michael@camille ~ $ sudo /etc/init.d/apache2 start
> > Password:
> > * Starting apache2 ...
> > * start-stop-daemon: failed to start `/usr/sbin/apache2'
> > [ !! ]
> > * ERROR: apache2 failed to start
>
> I don't know about Gentoo, but usually the start/stop messages will
> show up in syslog:
>
> (note this is ubuntu)
>
> Feb 25 16:01:55 galactica systemd[1]: Stopping LSB: Apache2 web server...
> Feb 25 16:01:55 galactica apache2[27048]: * Stopping web server apache2
> Feb 25 16:01:56 galactica apache2[27048]: *
> Feb 25 16:01:56 galactica systemd[1]: Stopped LSB: Apache2 web server.
> Feb 25 16:01:56 galactica systemd[1]: Starting LSB: Apache2 web server...
> Feb 25 16:01:56 galactica apache2[27074]: * Starting web server apache2
> Feb 25 16:01:56 galactica apache2[27074]: AH00558: apache2: Could not
> reliably determine the server's fully qualified domain name, using
> 127.0.1.1. Set the 'ServerName' directive globally to suppress this
> message
> Feb 25 16:01:57 galactica apache2[27074]: *
> Feb 25 16:01:57 galactica systemd[1]: Started LSB: Apache2 web server.
>
> > michael@camille ~ $ sudo /usr/sbin/apache2
> > no listening sockets available, shutting down
> > Unable to open logs
>
> So what are the permissions on /var/log/apache2?
> (again, Ubuntu, so YMMV)
> drwxr-x--- 2 root adm 4096 Feb 24 21:26 apache2
>
> bladernr@galactica:/var/log$ ll apache2/
> total 204
> -rw-r----- 1 root adm 200347 Feb 25 09:32 access.log
> -rw-r----- 1 root adm 1493 Feb 25 16:01 error.log
> -rw-r----- 1 root adm 0 Feb 24 21:26 other_vhosts_access.log
camille apache2 # ls -l /var/log
total 11448
drwxr-x--- 2 apache apache 4096 Feb 25 14:44 apache2
And it would be greatly appreciated if you didn't flame me for using the
root account to get this information. I am VERY VERY careful whenever I
use the root account. It has its own tab in my terminal. I NEVER EVER
use wildcards with rm using my root tab. If anything goes wrong (well,
wronger than usual), I have backups of the /etc and michael home
directories made every 24 hours of every file under said directories
that's changed in the last 24 hours, as well as complete backups of /etc
and /home/michael made the first of every month.
I just did some more digging, and according to
https://archives.gentoo.org/gentoo-user/message/f2fb5430aacaf14f7f16d27470cd3146
this is not an apache problem at all, but a php problem. I issued those
two ldd orders. I altered the syntax to where whose files would exist
on my 32-bit system. I have no idea how to interpet the output. I'll
paste it here:
camille apache2 # ldd /usr/lib/apache2/modules/libphp5.so
ldd: warning: you do not have execution permission for
`/usr/lib/apache2/modules/libphp5.so'
libc-client.so.1 => /usr/lib/libc-client.so.1 (0xb6bb2000)
libcrypto.so.1.0.0 => /usr/lib/libcrypto.so.1.0.0 (0xb69e1000)
libssl.so.1.0.0 => /usr/lib/libssl.so.1.0.0 (0xb696e000)
libtidy-0.99.so.0 => /usr/lib/libtidy-0.99.so.0 (0xb6916000)
libreadline.so.6 => /lib/libreadline.so.6 (0xb68d4000)
libaspell.so.15 => /usr/lib/libaspell.so.15 (0xb6818000)
libmcrypt.so.4 => /usr/lib/libmcrypt.so.4 (0xb67e5000)
libdl.so.2 => /lib/libdl.so.2 (0xb67e0000)
libonig.so.2 => /usr/lib/libonig.so.2 (0xb6793000)
libldap-2.4.so.2 => /usr/lib/libldap-2.4.so.2 (0xb6749000)
liblber-2.4.so.2 => /usr/lib/liblber-2.4.so.2 (0xb6739000)
libresolv.so.2 => /lib/libresolv.so.2 (0xb6722000)
libt1.so.5 => /usr/lib/libt1.so.5 (0xb66c5000)
libm.so.6 => /lib/libm.so.6 (0xb667d000)
libpng16.so.16 => /usr/lib/libpng16.so.16 (0xb6643000)
libz.so.1 => /lib/libz.so.1 (0xb662a000)
libjpeg.so.62 => /usr/lib/libjpeg.so.62 (0xb65ca000)
libgdbm.so.4 => /usr/lib/libgdbm.so.4 (0xb65bd000)
libbz2.so.1 => /lib/libbz2.so.1 (0xb65ab000)
libpcre.so.1 => /lib/libpcre.so.1 (0xb6536000)
libxml2.so.2 => /usr/lib/libxml2.so.2 (0xb63d5000)
libfreetype.so.6 => /usr/lib/libfreetype.so.6 (0xb632b000)
libnetsnmp.so.30 => /usr/lib/libnetsnmp.so.30 (0xb6255000)
libc.so.6 => /lib/libc.so.6 (0xb60ad000)
libpam.so.0 => /lib/libpam.so.0 (0xb609e000)
libncurses.so.5 => /lib/libncurses.so.5 (0xb604f000)
libstdc++.so.6 => /usr/lib/gcc/i686-pc-linux-gnu/4.9.3/libstdc++.so.6
(0xb5f5a000)
/lib/ld-linux.so.2 (0xb76f1000)
libgnutls.so.28 => /usr/lib/libgnutls.so.28 (0xb5e3d000)
libgcrypt.so.20 => /usr/lib/libgcrypt.so.20 (0xb5d93000)
libpthread.so.0 => /lib/libpthread.so.0 (0xb5d77000)
libgcc_s.so.1 => /usr/lib/gcc/i686-pc-linux-gnu/4.9.3/libgcc_s.so.1
(0xb5d58000)
libtasn1.so.6 => /usr/lib/libtasn1.so.6 (0xb5d44000)
libnettle.so.6 => /usr/lib/libnettle.so.6 (0xb5d02000)
libhogweed.so.4 => /usr/lib/libhogweed.so.4 (0xb5cce000)
libgmp.so.10 => /usr/lib/libgmp.so.10 (0xb5c5a000)
libgpg-error.so.0 => /usr/lib/libgpg-error.so.0 (0xb5c45000)
camille apache2 # ldd /usr/lib/libcurl.so.4
libssl.so.1.0.0 => /usr/lib/libssl.so.1.0.0 (0xb7636000)
libcrypto.so.1.0.0 => /usr/lib/libcrypto.so.1.0.0 (0xb7465000)
libldap-2.4.so.2 => /usr/lib/libldap-2.4.so.2 (0xb741c000)
liblber-2.4.so.2 => /usr/lib/liblber-2.4.so.2 (0xb740c000)
libresolv.so.2 => /lib/libresolv.so.2 (0xb73f4000)
libgnutls.so.28 => /usr/lib/libgnutls.so.28 (0xb72d7000)
libgcrypt.so.20 => /usr/lib/libgcrypt.so.20 (0xb722d000)
libgpg-error.so.0 => /usr/lib/libgpg-error.so.0 (0xb7219000)
libz.so.1 => /lib/libz.so.1 (0xb7201000)
libpthread.so.0 => /lib/libpthread.so.0 (0xb71e4000)
libc.so.6 => /lib/libc.so.6 (0xb703c000)
libdl.so.2 => /lib/libdl.so.2 (0xb7037000)
libtasn1.so.6 => /usr/lib/libtasn1.so.6 (0xb7023000)
libnettle.so.6 => /usr/lib/libnettle.so.6 (0xb6fe1000)
libhogweed.so.4 => /usr/lib/libhogweed.so.4 (0xb6fac000)
libgmp.so.10 => /usr/lib/libgmp.so.10 (0xb6f38000)
/lib/ld-linux.so.2 (0xb7739000)
Also, I don't know if it matters, but my /etc/conf.d/apache2 file is:
camille apache2 # cat /etc/conf.d/apache2
# /etc/conf.d/apache2: config file for /etc/init.d/apache2
# When you install a module it is easy to activate or deactivate the modules
# and other features of apache using the APACHE2_OPTS line. Every module
should
# install a configuration in /etc/apache2/modules.d. In that file will
have an
# <IfDefine NNN> directive where NNN is the option to enable that module.
#
# Here are the options available in the default configuration:
#
# AUTH_DIGEST Enables mod_auth_digest
# AUTHNZ_LDAP Enables authentication through mod_ldap (available if
USE=ldap)
# CACHE Enables mod_cache
# DAV Enables mod_dav
# ERRORDOCS Enables default error documents for many languages.
# INFO Enables mod_info, a useful module for debugging
# LANGUAGE Enables content-negotiation based on language and charset.
# LDAP Enables mod_ldap (available if USE=ldap)
# MANUAL Enables /manual/ to be the apache manual (available if
USE=docs)
# MEM_CACHE Enables default configuration mod_mem_cache
# PROXY Enables mod_proxy
# SSL Enables SSL (available if USE=ssl)
# STATUS Enabled mod_status, a useful module for statistics
# SUEXEC Enables running CGI scripts (in USERDIR) through suexec.
# USERDIR Enables /~username mapping to /home/username/public_html
#
#
# The following two options provide the default virtual host for the
HTTP and
# HTTPS protocol. YOU NEED TO ENABLE AT LEAST ONE OF THEM, otherwise apache
# will not listen for incomming connections on the approriate port.
#
# DEFAULT_VHOST Enables name-based virtual hosts, with the default
# virtual host being in /var/www/localhost/htdocs
# SSL_DEFAULT_VHOST Enables default vhost for SSL (you should enable this
# when you enable SSL)
#
APACHE2_OPTS="-D DEFAULT_VHOST -D INFO -D SSL -D SSL_DEFAULT_VHOST -D
LANGUAGE -D PERL -D PHP5.6"
# Extended options for advanced uses of Apache ONLY
# You don't need to edit these unless you are doing crazy Apache stuff
# As not having them set correctly, or feeding in an incorrect configuration
# via them will result in Apache failing to start
# YOU HAVE BEEN WARNED.
# PID file
#PIDFILE=/var/run/apache2.pid
# timeout for startup/shutdown checks
#TIMEOUT=10
# ServerRoot setting
#SERVERROOT=/usr/lib/apache2
# Configuration file location
# - If this does NOT start with a '/', then it is treated relative to
# $SERVERROOT by Apache
#CONFIGFILE=/etc/apache2/httpd.conf
# Location to log startup errors to
# They are normally dumped to your terminal.
#STARTUPERRORLOG="/var/log/apache2/startuperror.log"
# A command that outputs a formatted text version of the HTML at the URL
# of the command line. Designed for lynx, however other programs may work.
#LYNX="lynx -dump"
# The URL to your server's mod_status status page.
# Required for status and fullstatus
#STATUSURL="http://localhost/server-status"
# Method to use when reloading the server
# Valid options are 'restart' and 'graceful'
# See http://httpd.apache.org/docs/2.2/stopping.html for information on
# what they do and how they differ.
#RELOAD_TYPE="graceful"
It says -D PHP 5.6. I couldn't find a libphp5.6 file anywhere in the
/usr/lib/modules/ directory, so I'm thinking that's not the issue, but I
could be wrong. Did I mention that I know very little about this stuff?
-Michael Sullivan-
Posted by: Michael Sullivan <msulli1355@gmail.com>
Reply via web post | • | Reply to sender | • | Reply to group | • | Start a New Topic | • | Messages in this topic (3) |
No comments:
Post a Comment