[SOLVED] Restarting httpd (via systemctl): job failed

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] Restarting httpd (via systemctl): job failed

Postby janpihlgren » Dec 11th, '12, 10:58

I have just installed Mageia 2 x86-64. Installed Apache and phpmyadmin and mariadb.
I wish to use phpmyadmin to do fast checks of databases.
I can't remember or understand why httpd wouldn't start.
I need some hints to correct what's wrong.
Last edited by janpihlgren on Dec 11th, '12, 16:31, edited 1 time in total.
User avatar
janpihlgren
 
Posts: 294
Joined: Mar 30th, '11, 12:23
Location: Marsta, Sweden

Re: Restarting httpd (via systemctl): job failed

Postby djennings » Dec 11th, '12, 11:30

Look in the log /var/log/http

you are probably missing a required package
User avatar
djennings
 
Posts: 613
Joined: Jun 2nd, '11, 23:51
Location: Wokingham, UK

Re: Restarting httpd (via systemctl): job failed

Postby janpihlgren » Dec 11th, '12, 12:23

There was no /var/log/http
I search in messages an found the following:
Code: Select all
Dec 11 08:59:02 zebbie drakxservices[4863]: GP_LANG="UTF-8" service httpd-event restart
Dec 11 08:59:02 zebbie httpd-event[5183]: httpd-event: Syntax error on line 223 of /etc/httpd/conf/httpd.conf: Cannot load /etc/httpd/modules/mod_authn_file.so into server: /etc/httpd/modules/mod_authn_file.so: wrong ELF class: ELFCLASS32
Dec 11 08:59:02 zebbie systemd[1]: httpd-event.service: control process exited, code=exited status=1
Dec 11 08:59:02 zebbie systemd[1]: Unit httpd-event.service entered failed state.

I don't know how change the file /etc/httpd/modules/mod_authn_file.so
I supose that the value will be ELFCLASS64 but I'm not sure.
User avatar
janpihlgren
 
Posts: 294
Joined: Mar 30th, '11, 12:23
Location: Marsta, Sweden

Re: Restarting httpd (via systemctl): job failed

Postby djennings » Dec 11th, '12, 13:47

The log files are in /var/log/httpd directory. In there you will find access_log and error_log

Dec 11 08:59:02 zebbie httpd-event[5183]: httpd-event: Syntax error on line 223 of /etc/httpd/conf/httpd.conf: Cannot load /etc/httpd/modules/mod_authn_file.so into server: /etc/httpd/modules/mod_authn_file.so: wrong ELF class: ELFCLASS32


Well here is your problem. It looks like you have mixed up 64 bit and 32 bit packages. Check the sources and the packages you have installed.
User avatar
djennings
 
Posts: 613
Joined: Jun 2nd, '11, 23:51
Location: Wokingham, UK

Re: Restarting httpd (via systemctl): job failed

Postby Ken-Bergen » Dec 11th, '12, 14:16

djennings wrote:Well here is your problem. It looks like you have mixed up 64 bit and 32 bit packages. Check the sources and the packages you have installed.
I see that problem when using "Add & Remove Software".
Both the 32bit and 64bit versions of rpm's are shown and one has to be careful to choose the correct one.
urpmi does that automatically.
Ken
Ken-Bergen
 
Posts: 1019
Joined: Mar 30th, '11, 02:45
Location: Chilliwack, BC, Canada

Re: Restarting httpd (via systemctl): job failed

Postby janpihlgren » Dec 11th, '12, 14:59

I uninstall apache 2.2.23 1.mga2. The directory /etc/httpd disapear.
I install apache 2.2.23 1.mga2. The directory /etc/httpd was there again.
I tried to start httpd by MCC and get the same error.
I will try to use CLI and urpmi. First I will uninstall apache again.
Then I did an install by CLI
Code: Select all
[root@zebbie jan]# urpmi apache


    $MIRRORLIST: media/core/updates/apache-2.2.23-1.mga2.x86_64.rpm
installerar apache-2.2.23-1.mga2.x86_64.rpm från /var/cache/urpmi/rpms
Förbereder...                    #############################################
      1/1: apache                #############################################
httpd.service is not a native service, redirecting to /sbin/chkconfig.
Executing /sbin/chkconfig httpd on
Restarting httpd (via systemctl):  [  OK  ]
[root@zebbie jan]#


The same error.
User avatar
janpihlgren
 
Posts: 294
Joined: Mar 30th, '11, 12:23
Location: Marsta, Sweden

Re: Restarting httpd (via systemctl): job failed

Postby djennings » Dec 11th, '12, 15:27

And what about apache-mod_php and apache-mpm-prefork ?

They should also be installed and be the 64 bit version.
User avatar
djennings
 
Posts: 613
Joined: Jun 2nd, '11, 23:51
Location: Wokingham, UK

Re: Restarting httpd (via systemctl): job failed

Postby janpihlgren » Dec 11th, '12, 16:30

apache-mod_php where installed but apache-mpm-prefork not
I installed apache-mpm-prefork.
:D Now httpd started :D
Thank You djennings
User avatar
janpihlgren
 
Posts: 294
Joined: Mar 30th, '11, 12:23
Location: Marsta, Sweden


Return to Basic support

Who is online

Users browsing this forum: No registered users and 1 guest

cron