Using httpd24, php55, python26, mysql55 on RHEL 6.8 from RHSCL for production

Latest response

Hello!

My application on RHEL 6.8 requires Apache Web Server 2.4, PHP 5.5, Python 2.6/2.7 and MySQL 5.5. All this versions on RHEL 6.8 are available from RHCSL channels.

What is vision of RedHat about should I use RHSCL channels for production application or need install this software via rpm/other repos, compile httpd by myself?

I have successfully installed mysql55, httpd24 and services runs. But it is not clear for me, how can my application use php and .py without 'scl enable' as usual versions - Apache needs to work with php, my application calls .py.

Great thanks for any help!

Responses

Check this link: http://developers.redhat.com/blog/2014/04/08/apache-with-various-php-versions-using-scl/

It might not be necessary to use fpm if the OP author has no need for multiple php versions; dso would be sufficient.

When you use httpd24-httpd instead of the default httpd package, the configuration files are set/located in /opt/rh/httpd24/root/etc/. Therefore, the php version is also configured there; namely:

ls -alh /opt/rh/httpd24/root/etc/httpd/conf.d/rh-php56-php.conf 
-rw-r--r--. 1 root root 1.2K Jul 25 03:09 /opt/rh/httpd24/root/etc/httpd/conf.d/rh-php56-php.conf

Note, in your case it would be rh-php55-php.conf.

As for the python version, that would be the default python-2.7.

https://teslayenash.blogspot.com/2016/08/apache-webserver-php-and-software_69.html

Close

Welcome! Check out the Getting Started with Red Hat page for quick tours and guides for common tasks.