[scl.org] php instructions?

Jozef Mlich jmlich at redhat.com
Thu Mar 26 12:49:58 UTC 2015


On Wed, 2015-03-25 at 14:14 -0700, Greg Lindahl wrote:
> The php55 package instructions are generic, saying how to run it on
> the command line:
> 
> scl enable php55 bash
> 
> Most usage of php is in cgi scripts. How do you use php55 with Apache?
> The system php rpm contains the file /etc/httpd/modules/libphp5.so,
> and the php55 packages don't seem to have a file like that.
> 
> Am I missing something obvious? I'm on CentOS 7.
> 
> -- greg
> 
> _______________________________________________
> SCLorg mailing list
> SCLorg at redhat.com
> https://www.redhat.com/mailman/listinfo/sclorg

Hi,

I agree that README file should be more verbose about running php as a
apache module.

I have tried to run rh-php56 in RHEL7. It have installed additionally
httpd24. The module was enabled/installed by default in that apache. I
was using command "yum install rh-php6-*" and started apache by
"systemctl start httpd24-httpd"

I am not sure if httpd module is installed in base package. I guess you
can install just php55-php-cli without support of httpd.

I was also testing php70 from Remi Collet [1] in Fedora 21. The php70
apache module cannot run with simultaneously with system version of
apache module. You can uninstall system version of php or modify httpd
configuration files.

In my case it is "#" added to "LoadModule" lines of
/etc/httpd/conf.modules.d/10-php.conf file


[1]
http://blog.famillecollet.com/post/2015/03/25/PHP-7.0-as-Software-Collection


regards,
-- 
Jozef Mlich <jmlich at redhat.com>
Associate Software Engineer - EMEA ENG Developer Experience
Mobile: +420 604 217 719
http://cz.redhat.com/
Red Hat, Inc.




More information about the SCLorg mailing list