[SOLVED]Apache problem

This forum is dedicated to basic help and support :

Ask here your questions about basic installation and usage of Mageia. For example you may post here all your questions about getting Mageia isos and installing it, configuring your printer, using your word processor etc.

Try to ask your questions in the right sub-forum with as much details as you can gather. the more precise the question will be, the more likely you are to get a useful answer

[SOLVED]Apache problem

Postby mackowiakp » Mar 16th, '15, 12:23

Probably after lust upgrade (i dont know exactly is it true or not) my http server does not want to start. I am not expert in that so can anybody help me?
My system is M4 32 bit

Logs below. If any other info will be necessery, I send it ASAP:

Code: Select all
[root@mackowiak ~]# service httpd restart         
Redirecting to /bin/systemctl restart httpd.service
Job for httpd.service failed. See 'systemctl status httpd.service' and 'journalctl -xn' for details.
[root@mackowiak ~]# systemctl status httpd.service
httpd.service - The Apache HTTP Server
   Loaded: loaded (/usr/lib/systemd/system/httpd.service; enabled)
   Active: failed (Result: signal) since pon 2015-03-16 10:34:41 CET; 16s ago
  Process: 9029 ExecStop=/usr/bin/kill -WINCH ${MAINPID} (code=exited, status=0/SUCCESS)
  Process: 9028 ExecStart=/usr/sbin/httpd $OPTIONS -DFOREGROUND (code=killed, signal=SEGV)
 Main PID: 9028 (code=killed, signal=SEGV)

mar 16 10:34:41 mackowiak.no-ip.org systemd[1]: httpd.service: main process exited, code=killed, status=11/SEGV
mar 16 10:34:41 mackowiak.no-ip.org systemd[1]: Failed to start The Apache HTTP Server.
mar 16 10:34:41 mackowiak.no-ip.org systemd[1]: Unit httpd.service entered failed state.
[root@mackowiak ~]# journalctl -xn
-- Logs begin at nie 2015-02-08 08:56:43 CET, end at pon 2015-03-16 10:34:42 CET. --
mar 16 10:34:41 mackowiak.no-ip.org systemd[1]: Starting The Apache HTTP Server...
mar 16 10:34:41 mackowiak.no-ip.org kernel: httpd[9028]: segfault at f ip b54c71a9 sp bfb5a8f0 error 6 in apc-mmap.so[b54b00
mar 16 10:34:41 mackowiak.no-ip.org systemd[1]: httpd.service: main process exited, code=killed, status=11/SEGV
mar 16 10:34:41 mackowiak.no-ip.org systemd[1]: Failed to start The Apache HTTP Server.
mar 16 10:34:41 mackowiak.no-ip.org systemd[1]: Unit httpd.service entered failed state.


And httpd log:

Code: Select all
[root@mackowiak httpd]# cat error_log
[Mon Mar 16 10:47:00.428573 2015] [ssl:warn] [pid 9685] AH01906: RSA server certificate is a CA certificate (BasicConstraints: CA == TRUE !?)
[Mon Mar 16 10:47:00.428722 2015] [ssl:warn] [pid 9685] AH01909: RSA certificate configured for mackowiak.ddns.net:443 does NOT include an ID which matches the server name
[Mon Mar 16 10:47:00.481727 2015] [auth_digest:notice] [pid 9685] AH01757: generating secret for digest authentication ...
[Mon Mar 16 10:47:00.483539 2015] [lbmethod_heartbeat:notice] [pid 9685] AH02282: No slotmem from mod_heartmonitor
[Mon Mar 16 10:47:00.484720 2015] [ssl:warn] [pid 9685] AH01906: RSA server certificate is a CA certificate (BasicConstraints: CA == TRUE !?)
[Mon Mar 16 10:47:00.484754 2015] [ssl:warn] [pid 9685] AH01909: RSA certificate configured for mackowiak.ddns.net:443 does NOT include an ID which matches the server name
PHP Fatal error:  PHP Startup: apc_mmap: mkstemp on /var/lib/php-apc/apc.I4jPHY failed: in Unknown on line 0
PHP Fatal error:  PHP Startup: apc_fcntl_create: open(/var/lib/php-apc/.apc.HUmWOZ, O_RDWR|O_CREAT, 0666) failed: in Unknown on line 0


Please help me, becuse my http based OwnCloud is extrimely necessery for me!

[EDIT]

I wanted reinstall httpd but I got VERY strange result:

Code: Select all
[root@mackowiak ~]# urpme httpd
unknown package: httpd
Last edited by mackowiakp on Mar 17th, '15, 08:23, edited 1 time in total.
Linux is like wigwam. No Windows, no Gates but Apache inside

WARNING ! The administrator has the right to refuse to install WINDOWS, invoking the conscience clause
mackowiakp
 
Posts: 660
Joined: May 23rd, '13, 07:32
Location: Gdynia, Poland

Re: Apache problem

Postby jkerr82508 » Mar 16th, '15, 14:08

I'm no expert, but my apache server is still functioning correctly on my 64 bit mga4 system.

I'm not sure that it will help, but try
Code: Select all
systemctl start httpd


The apache packages are named "apache"
Code: Select all
$ rpm -qa | grep apache
apache-commons-lang-2.6-11.mga4
apache-doc-2.4.7-5.6.mga4
apache-commons-codec-1.8-1.mga4
apache-mod_userdir-2.4.7-5.6.mga4
apache-2.4.7-5.6.mga4
apache-commons-logging-1.1.3-2.mga4


It should not be necessary and is unlikely to help, but to re-install packages one would use:
Code: Select all
urpmi --replacepkgs


You might want to check the updates that you have installed since the server was last functioning correctly to see if you can identify one that may have caused the problem:
http://advisories.mageia.org/

Jim
jkerr82508
 
Posts: 946
Joined: Mar 26th, '11, 01:34
Location: Fife, Scotland

Re: Apache problem

Postby mackowiakp » Mar 16th, '15, 14:15

So my outputs:

Code: Select all
[root@mackowiak ~]# systemctl start httpd
Job for httpd.service failed. See 'systemctl status httpd.service' and 'journalctl -xn' for details.


Code: Select all
[root@mackowiak ~]# rpm -qa | grep apache
[root@mackowiak ~]#


Totally strange because physically Apache is installed but not listed from CLI and MCC.
Linux is like wigwam. No Windows, no Gates but Apache inside

WARNING ! The administrator has the right to refuse to install WINDOWS, invoking the conscience clause
mackowiakp
 
Posts: 660
Joined: May 23rd, '13, 07:32
Location: Gdynia, Poland

Re: Apache problem

Postby jkerr82508 » Mar 16th, '15, 14:57

mackowiakp wrote:
Code: Select all
[root@mackowiak ~]# rpm -qa | grep apache
[root@mackowiak ~]#


Totally strange because physically Apache is installed but not listed from CLI and MCC.

Try rebuilding the rpm data base
Code: Select all
# rm -f /var/lib/rpm/__db*
# rpm --rebuilddb

Jim
jkerr82508
 
Posts: 946
Joined: Mar 26th, '11, 01:34
Location: Fife, Scotland

Re: Apache problem

Postby mackowiakp » Mar 16th, '15, 15:42

I try:

Code: Select all
# rm -f /var/lib/rpm/__db*
# rpm --rebuilddb


and the result is the same:

Code: Select all
[root@mackowiak ~]# rpm -qa | grep apache
[root@mackowiak ~]#
Linux is like wigwam. No Windows, no Gates but Apache inside

WARNING ! The administrator has the right to refuse to install WINDOWS, invoking the conscience clause
mackowiakp
 
Posts: 660
Joined: May 23rd, '13, 07:32
Location: Gdynia, Poland

Re: Apache problem

Postby jkerr82508 » Mar 16th, '15, 17:27

Are you sure that apache is still installed? It seems that it may not be.

What is the result of
Code: Select all
urpmi --test apache

I expect it to report that apache is installable, which would suggest that somehow apache may have been removed. I can't think of any other explanation. Have you executed "urpme --auto-orphans" recently, or removed any other packages?

At this point re-installing apache may be appropriate, but we really need a more competent troubleshooter than I, to help find out how/why it was removed.

Jim
jkerr82508
 
Posts: 946
Joined: Mar 26th, '11, 01:34
Location: Fife, Scotland

Re: Apache problem

Postby mackowiakp » Mar 16th, '15, 17:40

Now I know. Problem is with apache-mod_php-3:5.5.22-1.2.mga4.i586. If I urpme this module, http server starts normaly. If I install it - crashes. Any idea why?
Linux is like wigwam. No Windows, no Gates but Apache inside

WARNING ! The administrator has the right to refuse to install WINDOWS, invoking the conscience clause
mackowiakp
 
Posts: 660
Joined: May 23rd, '13, 07:32
Location: Gdynia, Poland

Re: Apache problem

Postby jkerr82508 » Mar 16th, '15, 18:02

jkerr82508
 
Posts: 946
Joined: Mar 26th, '11, 01:34
Location: Fife, Scotland

Re: Apache problem

Postby mackowiakp » Mar 16th, '15, 18:05

Similar but not the same. It is Couldron bug. Is any workaround? How to live without PHP in Apache?
Linux is like wigwam. No Windows, no Gates but Apache inside

WARNING ! The administrator has the right to refuse to install WINDOWS, invoking the conscience clause
mackowiakp
 
Posts: 660
Joined: May 23rd, '13, 07:32
Location: Gdynia, Poland

Re: Apache problem

Postby jkerr82508 » Mar 16th, '15, 18:26

As stated in the whiteboard it also applies to mga4. Have you tried the work-around described regarding opcache?

Jim
jkerr82508
 
Posts: 946
Joined: Mar 26th, '11, 01:34
Location: Fife, Scotland

Re: Apache problem

Postby mackowiakp » Mar 16th, '15, 18:30

No. Any link how can I do it? Or is any previously working version of php_mod?
Linux is like wigwam. No Windows, no Gates but Apache inside

WARNING ! The administrator has the right to refuse to install WINDOWS, invoking the conscience clause
mackowiakp
 
Posts: 660
Joined: May 23rd, '13, 07:32
Location: Gdynia, Poland

Re: Apache problem

Postby mackowiakp » Mar 16th, '15, 18:34

But when I install owncloud, it still wants to install current repo php_mod. So my basic WEB app does not work. Tragedy....
Linux is like wigwam. No Windows, no Gates but Apache inside

WARNING ! The administrator has the right to refuse to install WINDOWS, invoking the conscience clause
mackowiakp
 
Posts: 660
Joined: May 23rd, '13, 07:32
Location: Gdynia, Poland

Re: Apache problem

Postby jkerr82508 » Mar 16th, '15, 18:41

I missed this line earlier:
mar 16 10:34:41 mackowiak.no-ip.org kernel: httpd[9028]: segfault at f ip b54c71a9 sp bfb5a8f0 error 6 in apc-mmap.so[b54b00

I'm not familiar with php-apc (which installs the file apc-mmap.so) but it seems to be related to caching:

APC was conceived of to provide a way of boosting the performance of PHP on
heavily loaded sites by providing a way for scripts to be cached in a compiled
state, so that the overhead of parsing and compiling can be almost completely
eliminated.

Jim
jkerr82508
 
Posts: 946
Joined: Mar 26th, '11, 01:34
Location: Fife, Scotland

Re: Apache problem

Postby jkerr82508 » Mar 16th, '15, 18:46

mackowiakp wrote:No. Any link how can I do it? Or is any previously working version of php_mod?

I assume that one would remove php-opcache and install php-fpm.

Jim
jkerr82508
 
Posts: 946
Joined: Mar 26th, '11, 01:34
Location: Fife, Scotland

Re: Apache problem

Postby mackowiakp » Mar 16th, '15, 18:50

After fresh instalation of Apache with php_mod I got such results in logs:

Code: Select all
[root@mackowiak ~]# systemctl status httpd.service
httpd.service - The Apache HTTP Server
   Loaded: loaded (/usr/lib/systemd/system/httpd.service; enabled)
   Active: failed (Result: signal) since pon 2015-03-16 17:47:07 CET; 1min 19s ago
  Process: 10103 ExecStop=/usr/bin/kill -WINCH ${MAINPID} (code=exited, status=0/SUCCESS)
  Process: 10102 ExecStart=/usr/sbin/httpd $OPTIONS -DFOREGROUND (code=killed, signal=SEGV)
 Main PID: 10102 (code=killed, signal=SEGV)
   Status: "Total requests: 0; Current requests/sec: 0; Current traffic:   0 B/sec"

mar 16 17:47:07 mackowiak.no-ip.org systemd[1]: Starting The Apache HTTP Server...
mar 16 17:47:07 mackowiak.no-ip.org systemd[1]: httpd.service: main process exited, code=killed, status=11/SEGV
mar 16 17:47:07 mackowiak.no-ip.org systemd[1]: Failed to start The Apache HTTP Server.
mar 16 17:47:07 mackowiak.no-ip.org systemd[1]: Unit httpd.service entered failed state.
[root@mackowiak ~]# journalctl -xn
-- Logs begin at nie 2015-02-08 08:56:43 CET, end at pon 2015-03-16 17:48:01 CET. --
mar 16 17:46:58 mackowiak.no-ip.org urpmi[10071]: transaction on / (remove=0, install=0, upgrade=1)
mar 16 17:46:59 mackowiak.no-ip.org perl[10071]: [RPM] apache-mod_php-3:5.5.22-1.2.mga4.i586 installed
mar 16 17:47:07 mackowiak.no-ip.org systemd[1]: Starting The Apache HTTP Server...
mar 16 17:47:07 mackowiak.no-ip.org kernel: httpd[10102]: segfault at f ip b553b1a9 sp bfc43e50 error 6 in apc-mma
mar 16 17:47:07 mackowiak.no-ip.org systemd[1]: httpd.service: main process exited, code=killed, status=11/SEGV
mar 16 17:47:07 mackowiak.no-ip.org systemd[1]: Failed to start The Apache HTTP Server.
mar 16 17:47:07 mackowiak.no-ip.org systemd[1]: Unit httpd.service entered failed state.


Any idea to get Apache working on M4?
Linux is like wigwam. No Windows, no Gates but Apache inside

WARNING ! The administrator has the right to refuse to install WINDOWS, invoking the conscience clause
mackowiakp
 
Posts: 660
Joined: May 23rd, '13, 07:32
Location: Gdynia, Poland

Re: Apache problem

Postby lula » Mar 16th, '15, 20:18

mackowiakp wrote:
Code: Select all
PHP Fatal error:  PHP Startup: apc_mmap: mkstemp on /var/lib/php-apc/apc.I4jPHY failed: in Unknown on line 0


Did you check if the directory/var/lib/php-apc exists and is writable for the webserver?
lula
 
Posts: 12
Joined: Feb 10th, '12, 21:32

Re: Apache problem

Postby mackowiakp » Mar 16th, '15, 20:26

No such dir .... :-(
Linux is like wigwam. No Windows, no Gates but Apache inside

WARNING ! The administrator has the right to refuse to install WINDOWS, invoking the conscience clause
mackowiakp
 
Posts: 660
Joined: May 23rd, '13, 07:32
Location: Gdynia, Poland

Re: Apache problem

Postby lula » Mar 16th, '15, 20:31

Just create it as root and chown it to the webserver's user (don't know by heart on Mageia, might be httpd or wwwrun, not quite sure). And by the way, the package containing the webserver is not httpd but apache.
lula
 
Posts: 12
Joined: Feb 10th, '12, 21:32

Re: Apache problem

Postby mackowiakp » Mar 16th, '15, 20:44

I just urpme/urpmi php-apc ;-)
Linux is like wigwam. No Windows, no Gates but Apache inside

WARNING ! The administrator has the right to refuse to install WINDOWS, invoking the conscience clause
mackowiakp
 
Posts: 660
Joined: May 23rd, '13, 07:32
Location: Gdynia, Poland

Re: Apache problem

Postby doktor5000 » Mar 16th, '15, 21:39

Please mark the thread accordingly by editing the topic of the first post and prefix it by [SOLVED], thanks
Cauldron is not for the faint of heart!
Caution: Hot, bubbling magic inside. May explode or cook your kittens!
----
Disclaimer: Beware of allergic reactions in answer to unconstructive complaint-type posts
User avatar
doktor5000
 
Posts: 18052
Joined: Jun 4th, '11, 10:10
Location: Leipzig, Germany

Re: Apache problem

Postby mackowiakp » Mar 16th, '15, 21:47

At this moment is not solved yet. Tomorrow I will try to recover my OwnCloud instance. If it will work, the thread will be marked as solved.
Linux is like wigwam. No Windows, no Gates but Apache inside

WARNING ! The administrator has the right to refuse to install WINDOWS, invoking the conscience clause
mackowiakp
 
Posts: 660
Joined: May 23rd, '13, 07:32
Location: Gdynia, Poland

Re: Apache problem

Postby doktor5000 » Mar 16th, '15, 22:19

That's a matter for a separate thread - this one is about apache itself not starting due to some PHP modules.

Does your apache start now or not?
Cauldron is not for the faint of heart!
Caution: Hot, bubbling magic inside. May explode or cook your kittens!
----
Disclaimer: Beware of allergic reactions in answer to unconstructive complaint-type posts
User avatar
doktor5000
 
Posts: 18052
Joined: Jun 4th, '11, 10:10
Location: Leipzig, Germany

Re: Apache problem

Postby mackowiakp » Mar 17th, '15, 08:23

Yep. You are right (as always ;-) ). So - SOLVED
Linux is like wigwam. No Windows, no Gates but Apache inside

WARNING ! The administrator has the right to refuse to install WINDOWS, invoking the conscience clause
mackowiakp
 
Posts: 660
Joined: May 23rd, '13, 07:32
Location: Gdynia, Poland


Return to Basic support

Who is online

Users browsing this forum: No registered users and 1 guest