You are not logged in.

#1 2017-03-16 15:45:16

isengart
Member
Registered: 2017-03-16
Posts: 1

Issue with apache and php56

Hello guys,

After installing the php56 package from AUR and apache I followed the 2nd comment on this : https://aur.archlinux.org/packages/php56

and went to /etc/httpd/conf/httpd.conf and added theese 2:

LoadModule php5_module modules/libphp56.so
Include conf/extra/php56_module.conf


After that:

systemctl restart httpd.service
systemctl status httpd.service
And I get this:


● httpd.service - Apache Web Server
   Loaded: loaded (/usr/lib/systemd/system/httpd.service; enabled; vendor preset: disabled)
   Active: failed (Result: exit-code) since Thu 2017-03-16 17:40:14 EET; 5s ago
  Process: 8739 ExecStop=/usr/bin/httpd -k graceful-stop (code=exited, status=1/FAILURE)
  Process: 8737 ExecStart=/usr/bin/httpd -k start -DFOREGROUND (code=exited, status=1/FAILURE)
Main PID: 8737 (code=exited, status=1/FAILURE)

Μάρ 16 17:40:14 sin-pc systemd[1]: Started Apache Web Server.
Μάρ 16 17:40:14 sin-pc httpd[8737]: [Thu Mar 16 17:40:14.566885 2017] [:crit] [pid 8737:tid 140634924523712] Apache is running a threaded MPM, but your PHP Module is not compiled to be threadsafe.  You need to recompile PHP.
Μάρ 16 17:40:14 sin-pc httpd[8737]: AH00013: Pre-configuration failed
Μάρ 16 17:40:14 sin-pc systemd[1]: httpd.service: Main process exited, code=exited, status=1/FAILURE
Μάρ 16 17:40:14 sin-pc httpd[8739]: [Thu Mar 16 17:40:14.611916 2017] [:crit] [pid 8739:tid 139718125002944] Apache is running a threaded MPM, but your PHP Module is not compiled to be threadsafe.  You need to recompile PHP.
Μάρ 16 17:40:14 sin-pc httpd[8739]: AH00013: Pre-configuration failed
Μάρ 16 17:40:14 sin-pc systemd[1]: httpd.service: Control process exited, code=exited status=1
Μάρ 16 17:40:14 sin-pc systemd[1]: httpd.service: Unit entered failed state.
Μάρ 16 17:40:14 sin-pc systemd[1]: httpd.service: Failed with result 'exit-code'.


Removing the line: Include conf/extra/php56_module.conf makes apache work but php doesnt (  I have a php file echoing phpinfo(); and doesnt do anything )

Im completly new to arch and Im searching to solves this issue for hours. Any help would be awesome!

Thanks in advance!

Offline

#2 2017-03-16 23:47:19

edacval
Member
From: .LT
Registered: 2008-10-23
Posts: 89

Re: Issue with apache and php56

From our perfect  Wiki :

In /etc/httpd/conf/httpd.conf, comment the line:

#LoadModule mpm_event_module modules/mod_mpm_event.so

and uncomment the line:

LoadModule mpm_prefork_module modules/mod_mpm_prefork.so

and restart apache

Offline

Board footer

Powered by FluxBB