I use Ubuntu 18.04.
Command sudo service apache2 restart
returns an error.
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.
These are some lines from journalctl -xe
result:
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)
Here is my 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
Also the command sudo a2dismod php7.0
returned:
ERROR: /etc/apache2/mods-enabled/php7.0.load is not a symbolic link, not deleting
How can I fix this problem?
0 Answers