Sponsor:

Server and Web Integrator
Link:
Kloxo-MR logo
6.5.0 or 7.0.0
Click for "How to install"
Donation/Sponsorship:
Kloxo-MR is open-source.
Donate and or Sponsorship always welcome.
Click to:
Click Here
Please login or register. 2017-11-07, 20:02:55

Author Topic: Unable to start httpd 2.4  (Read 1201 times)

0 Members and 1 Guest are viewing this topic.

Offline Spacedust

  • Super Grand Master
  • ****
  • Posts: 3,944
  • Karma: +1/-0
    • View Profile
Unable to start httpd 2.4
« on: 2016-02-26, 10:14:03 »
Quote
[root@onlinecity modules]# /etc/init.d/httpd restart
Stopping httpd:                                            [FAILED]
Starting httpd: httpd: Syntax error on line 8 of /etc/httpd/conf/httpd.conf: Syntax error on line 16 of /etc/httpd/conf.modules.d/15-php.conf: Cannot load modules/libphp7-zts.so into server: libpcre.so.1: cannot open shared object file: No such file or directory
                                                           [FAILED]

I've changed:

Quote
cat /etc/httpd/conf.modules.d/15-php.conf
#
# PHP is an HTML-embedded scripting language which attempts to make it
# easy for developers to write dynamically generated webpages.
#

# Cannot load both php5 and php7 modules
<IfModule !mod_php5.c>
  <IfModule prefork.c>
    LoadModule php7_module modules/libphp7.so
  </IfModule>
</IfModule>


#<IfModule !mod_php5.c>
#  <IfModule !prefork.c>
#    LoadModule php7_module modules/libphp7-zts.so
#  </IfModule>
#</IfModule>

and it worked again.

Offline MRatWork

  • Administrator
  • The Elite
  • *****
  • Posts: 15,381
  • Karma: +112/-9
  • Gender: Male
    • View Profile
    • MRatWork Forum
Re: Unable to start httpd 2.4
« Reply #1 on: 2016-02-26, 10:20:08 »
Better use php-fpm_event (now use mod24u_fastcgi instead mod24u_proxy_fcgi). Your code (15-php.conf) tend to use prefork mpm like ruid2 where only work using 'php branch'.
..:: MRatWork (Mustafa Ramadhan Projects) ::..
-- Server/Web-integrator - Web Hosting (Kloxo-MR READY!) --

Offline Spacedust

  • Super Grand Master
  • ****
  • Posts: 3,944
  • Karma: +1/-0
    • View Profile
Re: Unable to start httpd 2.4
« Reply #2 on: 2016-02-26, 12:37:45 »
Better use php-fpm_event (now use mod24u_fastcgi instead mod24u_proxy_fcgi). Your code (15-php.conf) tend to use prefork mpm like ruid2 where only work using 'php branch'.

I use event with php-fpm:

Quote
httpd -V
Server version: Apache/2.4.18 (Red Hat)
Server built:   Dec 14 2015 18:38:47
Server's Module Magic Number: 20120211:52
Server loaded:  APR 1.5.2, APR-UTIL 1.5.4
Compiled using: APR 1.5.2, APR-UTIL 1.5.4
Architecture:   64-bit
Server MPM:     event
  threaded:     yes (fixed thread count)
    forked:     yes (variable process count)
Server compiled with....
 -D APR_HAS_SENDFILE
 -D APR_HAS_MMAP
 -D APR_HAVE_IPV6 (IPv4-mapped addresses enabled)
 -D APR_USE_SYSVSEM_SERIALIZE
 -D APR_USE_PTHREAD_SERIALIZE
 -D SINGLE_LISTEN_UNSERIALIZED_ACCEPT
 -D APR_HAS_OTHER_CHILD
 -D AP_HAVE_RELIABLE_PIPED_LOGS
 -D DYNAMIC_MODULE_LIMIT=256
 -D HTTPD_ROOT="/etc/httpd"
 -D SUEXEC_BIN="/usr/sbin/suexec"
 -D DEFAULT_PIDLOG="/var/run/httpd/httpd.pid"
 -D DEFAULT_SCOREBOARD="logs/apache_runtime_status"
 -D DEFAULT_ERRORLOG="logs/error_log"
 -D AP_TYPES_CONFIG_FILE="conf/mime.types"
 -D SERVER_CONFIG_FILE="conf/httpd.conf"

Offline MRatWork

  • Administrator
  • The Elite
  • *****
  • Posts: 15,381
  • Karma: +112/-9
  • Gender: Male
    • View Profile
    • MRatWork Forum
Re: Unable to start httpd 2.4
« Reply #3 on: 2016-02-26, 13:07:59 »
15-php.conf is not from httpd24u but from php (in 'php branch').
..:: MRatWork (Mustafa Ramadhan Projects) ::..
-- Server/Web-integrator - Web Hosting (Kloxo-MR READY!) --

Offline Spacedust

  • Super Grand Master
  • ****
  • Posts: 3,944
  • Karma: +1/-0
    • View Profile
Re: Unable to start httpd 2.4
« Reply #4 on: 2016-02-26, 23:38:45 »
15-php.conf is not from httpd24u but from php (in 'php branch').

It says php-fpm_event in php branch:

Quote

A. Control Panel:
   - Kloxo-MR: 7.0.0.b-2016022601
   - Web: hiawatha-10.1.0-f.6.mr.el6.x86_64
   - PHP: php54s-5.4.45-2.w6 (cgi mode)
B. Plateform:
   - OS: CentOS release 6.7 (Final) x86_64
   - Hostname: xxx.pl
C. Services:
   1. MySQL: MariaDB-server-10.0.24-1.el6.x86_64
   2. PHP:
      - Branch: php-cli-7.0.3-1.el6.remi.x86_64
      - Multiple:
        * php52m-5.2.17-102.mr.el6
        * php53m-5.3.29-1.ius.el6
        * php54m-5.4.45-2.w6
        * php55m-5.5.32-1.ius.el6
        * php56m-5.6.18-1.ius.el6
        * php70m-7.0.3-1.w6
      - Used: --Use PHP Branch--
   3. Httpd: httpd24u-2.4.18-1.ius.el6.x86_64
      - PHP Type: php-fpm_event
   4. Web Used: nginxproxy
     - Hiawatha: --unused--
     - Lighttpd: --uninstalled--
     - Nginx: nginx-1.9.12-1.el6.ngx.x86_64
   5. WebCache: none
     - ATS: --uninstalled--
     - Squid: --uninstalled--
     - Varnish: --uninstalled--
   6. Dns: pdns
     - Bind: --uninstalled--
     - DJBDns: --uninstalled--
     - NSD: --uninstalled--
     - PowerDNS: pdns-3.3.3-101.mr.el6.x86_64
     - Yadifa: --uninstalled--
   7. Mail: qmail-toaster-1.03-1.3.55.mr.el6.x86_64
      - pop3/imap4: courier-imap-toaster-4.1.2-1.3.18.mr.el6.x86_64
      - spam: spamassassin
D. Memory:
                total       used       free     shared    buffers     cached
   Mem:          7970       7593        376         48        514       3610
   -/+ buffers/cache:       3467       4502
   Swap:          255        255          0
E. Disk Space:
   Filesystem      Size  Used Avail Use% Mounted on
   /dev/sda2       117G   88G   24G  79% /


*** Process Time: 00:00:00:03.3632 (dd:hh:mm:ss:xxxxxx) ***

* Note: run 'sh /script/sysinfo -y' if you want run 'fix-service-list' also
        (importance after Kloxo-MR update)

Offline Spacedust

  • Super Grand Master
  • ****
  • Posts: 3,944
  • Karma: +1/-0
    • View Profile
Re: Unable to start httpd 2.4
« Reply #5 on: 2016-02-26, 23:42:17 »
I've removed this file and all works fine.

 


Top 4 Global Search Engines:    Google    Bing    Baidu    Yahoo
Click Here

Page created in 0.04 seconds with 17 queries.

web stats analysis
 
Mirror created by MasterkinG32.CoM