Facing apache2 service issue

Asked by Lalit Singh Dhidwal

Hello Team,

After installing multiple PHP version on the local system from 5.6 to 7.3 and tried to change the PHP version. After changing the version, plus disabling the current version and enabling the new version. Then, we need to restart the apache2 service to get the new PHP version to get in effect.

But after restarting the service, I am getting the below error.

-----------------------------------------------------------------------
-- Logs begin at Tue 2019-08-13 16:28:02 IST. --
Aug 14 15:39:23 xxxxx-Latitude-E5440 systemd[1]: Failed to start The Apache HTTP Server.
Aug 14 15:40:40 xxxxx-Latitude-E5440 systemd[1]: Starting The Apache HTTP Server...
Aug 14 15:40:40 xxxxx-Latitude-E5440 apachectl[20211]: 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
Aug 14 15:40:40 xxxxx-Latitude-E5440 kernel: apache2[20214]: segfault at 7f1fb3055e80 ip 00007f1faf1ca1cb sp 00007ffeb418fea0 error 6 in libphp7.2.so[7f1faef36000+3fb000]
Aug 14 15:40:40 xxxxx-Latitude-E5440 apachectl[20211]: Segmentation fault (core dumped)
Aug 14 15:40:40 xxxxx-Latitude-E5440 apachectl[20211]: Action 'start' failed.
Aug 14 15:40:40 xxxxx-Latitude-E5440 apachectl[20211]: The Apache error log may have more information.
Aug 14 15:40:40 xxxxx-Latitude-E5440 systemd[1]: apache2.service: Control process exited, code=exited status=139
Aug 14 15:40:40 xxxxx-Latitude-E5440 systemd[1]: apache2.service: Failed with result 'exit-code'.
Aug 14 15:40:40 xxxxx-Latitude-E5440 systemd[1]: Failed to start The Apache HTTP Server.
----------------------------------------------------------------------

Can you please check and assist further on it.

Best Regards,
Lalit Dhidwal

Question information

Language:
English Edit question
Status:
Answered
For:
Ubuntu Edit question
Assignee:
No assignee Edit question
Last query:
Last reply:
Revision history for this message
actionparsnip (andrew-woodhead666) said :
#1

What is the output of:

lsb_release -a; uname -a; apt-cache policy apache2; echo; echo; cat /etc/hosts

Have you read the apache error log, as stated in the output? Does that give clues?

Thanks

Revision history for this message
Lalit Singh Dhidwal (lalitd) said :
#2

I have checked the apache error logs and below are the same stack

[Wed Aug 14 11:21:14.359115 2019] [mpm_prefork:notice] [pid 1318] AH00163:
Apache/2.4.29 (Ubuntu) configured -- resuming normal operations
[Wed Aug 14 11:21:14.359337 2019] [core:notice] [pid 1318] AH00094: Command
line: '/usr/sbin/apache2'
[Wed Aug 14 11:48:20.244292 2019] [mpm_prefork:notice] [pid 1318] AH00169:
caught SIGTERM, shutting down
[Wed Aug 14 11:48:38.553284 2019] [mpm_prefork:notice] [pid 1159] AH00163:
Apache/2.4.29 (Ubuntu) configured -- resuming normal operations
[Wed Aug 14 11:48:38.553513 2019] [core:notice] [pid 1159] AH00094: Command
line: '/usr/sbin/apache2'
[Wed Aug 14 15:03:58.533641 2019] [mpm_prefork:notice] [pid 1159] AH00169:
caught SIGTERM, shutting down
[Wed Aug 14 15:04:15.967809 2019] [mpm_prefork:notice] [pid 1110] AH00163:
Apache/2.4.29 (Ubuntu) configured -- resuming normal operations
[Wed Aug 14 15:04:15.969175 2019] [core:notice] [pid 1110] AH00094: Command
line: '/usr/sbin/apache2'
[Wed Aug 14 15:38:03.603556 2019] [mpm_prefork:notice] [pid 1110] AH00169:
caught SIGTERM, shutting down
[Wed Aug 14 15:42:03.944984 2019] [mpm_prefork:notice] [pid 20251] AH00163:
Apache/2.4.29 (Ubuntu) configured -- resuming normal operations
[Wed Aug 14 15:42:03.945044 2019] [core:notice] [pid 20251] AH00094:
Command line: '/usr/sbin/apache2'
[Wed Aug 14 15:42:34.820935 2019] [mpm_prefork:notice] [pid 20251] AH00169:
caught SIGTERM, shutting down
[Wed Aug 14 15:43:23.276331 2019] [mpm_prefork:notice] [pid 20305] AH00163:
Apache/2.4.29 (Ubuntu) configured -- resuming normal operations
[Wed Aug 14 15:43:23.276384 2019] [core:notice] [pid 20305] AH00094:
Command line: '/usr/sbin/apache2'

Plus, below is the output of your request

root@xxxx-Latitude-E5440:~# lsb_release -a; uname -a; apt-cache policy
apache2; echo; echo; cat /etc/hosts
No LSB modules are available.
Distributor ID: Ubuntu
Description: Ubuntu 18.04.3 LTS
Release: 18.04
Codename: bionic
Linux xxxxx-Latitude-E5440 4.15.0-55-generic #60-Ubuntu SMP Tue Jul 2
18:22:20 UTC 2019 x86_64 x86_64 x86_64 GNU/Linux
apache2:
  Installed: 2.4.29-1ubuntu4.8
  Candidate: 2.4.29-1ubuntu4.8
  Version table:
 *** 2.4.29-1ubuntu4.8 500
        500 http://in.archive.ubuntu.com/ubuntu bionic-updates/main amd64
Packages
        100 /var/lib/dpkg/status
     2.4.29-1ubuntu4.6 500
        500 http://security.ubuntu.com/ubuntu bionic-security/main amd64
Packages
     2.4.29-1ubuntu4 500
        500 http://in.archive.ubuntu.com/ubuntu bionic/main amd64 Packages

127.0.0.1 localhost
127.0.1.1 xxxx-Latitude-E5440

# The following lines are desirable for IPv6 capable hosts
::1 ip6-localhost ip6-loopback
fe00::0 ip6-localnet
ff00::0 ip6-mcastprefix
ff02::1 ip6-allnodes
ff02::2 ip6-allrouters

Please check.

On Wed, Aug 14, 2019 at 4:08 PM actionparsnip <
<email address hidden>> wrote:

> Your question #682874 on Ubuntu changed:
> https://answers.launchpad.net/ubuntu/+question/682874
>
> Status: Open => Needs information
>
> actionparsnip requested more information:
> What is the output of:
>
> lsb_release -a; uname -a; apt-cache policy apache2; echo; echo; cat
> /etc/hosts
>
> Have you read the apache error log, as stated in the output? Does that
> give clues?
>
> Thanks
>
> --
> To answer this request for more information, you can either reply to
> this email or enter your reply at the following page:
> https://answers.launchpad.net/ubuntu/+question/682874
>
> You received this question notification because you asked the question.
>

--
Best Regards,
*Lalit Dhidwal / *Linux System Administrator
+91 172 2739754
*<email address hidden> <email address hidden> *

*Cue Blocks Technologies Pvt.Ltd *
*'If it's online, we go the distance with you' *
*www.cueblocks.com <http://www.cueblocks.com/>*

*www.cueblocks.com/blog/ <http://www.cueblocks.com/blog/>*

Revision history for this message
Lalit Singh Dhidwal (lalitd) said :
#3

Any Idea? On the issue above.

Because this is a strange error I have received after installing the multiple PHP version.

Revision history for this message
actionparsnip (andrew-woodhead666) said :
#4
Revision history for this message
Lalit Singh Dhidwal (lalitd) said :
#5

Okay will try it with reinstalling the apache and PHP

Revision history for this message
Lalit Singh Dhidwal (lalitd) said :
#6

Meanwhile, can you please share any alternative other than reinstalling the apache and PHP.

Revision history for this message
actionparsnip (andrew-woodhead666) said :
#7

Did the reinstall work?

Revision history for this message
Lalit Singh Dhidwal (lalitd) said :
#8

Yes, the reinstallation of PHP worked fine.

And now I am not facing any warning as well error.

Just for the Information, Is there any alternative solution other than reinstalling?

And thanks the issue has been resolved.

Can you help with this problem?

Provide an answer of your own, or ask Lalit Singh Dhidwal for more information if necessary.

To post a message you must log in.