无法启动 apache2

无法启动 apache2

我使用 Ubuntu 18.04。

命令sudo service apache2 restart返回错误。

  kurusa kernel: apache2[17035]: segfault at 7f478cc64e00 ip 00007f4788e13fcf sp 00007ffdb66f0620 error 6 in libphp7.0.so[7f4788bc1000+390000]
  kurusa apachectl[17032]: Segmentation fault (core dumped)
  kurusa apachectl[17032]: Action 'start' failed.

以下是结果中的几行journalctl -xe

   kurusa anacron[16951]: Anacron 2.3 started on 2018-12-19
   kurusa anacron[16951]: Normal exit (0 jobs run)
   kurusa wpa_supplicant[1022]: TDLS: Invalid frame - payloadtype=1 category=240 action=10
   kurusa wpa_supplicant[1022]: TDLS: Invalid frame - payloadtype=1 category=240 action=10
   kurusa sudo[17006]:   kurusa : TTY=pts/0 ; PWD=/etc ; USER=root ; COMMAND=/bin/ps -f -p 4489
   kurusa sudo[17006]: pam_unix(sudo:session): session opened for user root by (uid=0)
   kurusa sudo[17006]: pam_unix(sudo:session): session closed for user root
   kurusa sudo[17008]:   kurusa : TTY=pts/0 ; PWD=/etc ; USER=root ; COMMAND=/bin/ps -f -p 2197
   kurusa sudo[17008]: pam_unix(sudo:session): session opened for user root by (uid=0)
   kurusa sudo[17008]: pam_unix(sudo:session): session closed for user root
   kurusa sudo[17011]:   kurusa : TTY=pts/0 ; PWD=/etc ; USER=root ; COMMAND=/bin/kill 2197
   kurusa sudo[17011]: pam_unix(sudo:session): session opened for user root by (uid=0)
   kurusa sudo[17011]: pam_unix(sudo:session): session closed for user root
   kurusa sudo[17021]:   kurusa : TTY=pts/0 ; PWD=/etc ; USER=root ; COMMAND=/bin/ps -f -p 4489
   kurusa sudo[17021]: pam_unix(sudo:session): session opened for user root by (uid=0)
   kurusa sudo[17021]: pam_unix(sudo:session): session closed for user root
   kurusa sudo[17026]:   kurusa : TTY=pts/0 ; PWD=/etc ; USER=root ; COMMAND=/usr/sbin/service apache2 restart
   kurusa sudo[17026]: pam_unix(sudo:session): session opened for user root by (uid=0)

这是我的apache2.conf

DefaultRuntimeDir ${APACHE_RUN_DIR}
PidFile ${APACHE_PID_FILE}
Timeout 300
KeepAlive On
KeepAliveTimeout 5
MaxKeepAliveRequests 100
User ${APACHE_RUN_USER}
Group ${APACHE_RUN_GROUP}
HostnameLookups Off
ErrorLog ${APACHE_LOG_DIR}/error.log

IncludeOptional mods-enabled/*.load
IncludeOptional mods-enabled/*.conf
Include ports.conf

<Directory />
    Options FollowSymLinks
    AllowOverride All
    Require all denied
</Directory>

<Directory /usr/share>
    AllowOverride All
    Require all granted
</Directory>

<Directory /var/www/>
    Options Indexes FollowSymLinks
    AllowOverride All
    Require all granted
</Directory>

<Directory /home/kurusa/proj>
    Options Indexes FollowSymLinks
    AllowOverride All
    Require all granted
</Directory>

AccessFileName .htaccess
<FilesMatch "^\.ht">
    Require all denied
</FilesMatch>

IncludeOptional conf-enabled/*.conf
IncludeOptional sites-enabled/*.conf
Include /etc/phpmyadmin/apache.conf

命令还sudo a2dismod php7.0返回:

ERROR: /etc/apache2/mods-enabled/php7.0.load is not a symbolic link, not deleting

我该如何解决这个问题?

相关内容