# yum install httpd httpd-devel
# yum install php php-devel
Setup proxy for pecl
#
yum install php-pear
# pear config-set http_proxy http://username:xxxxx@proxy.goweekend.ca:8888
Trouble sooting
PHP Warning: PHP Startup: Unable to load dynamic library '/usr/lib64/php/modules/oci8.so' - libclntsh.so.12.1: cannot enable executable stack as shared object requires: Permission denied in Unknown on line 0
-rwxr-xr-x. 1 root root 575176 Feb 15 14:12 oci8.so
# find . -print0 |xargs -0 -n 1 setfattr -h -x security.selinux
Install Mongodb and OCI8 Extension
Certain software are required to install mongodb
# dnf install gcc* -y
# dnf -y install re2c
# dnf -y install openssl-devel
# pecl install oci8
# pecl install mongodb
add "extension=mongodb.so" to /etc/php.ini
# dnf -y install openldap-clients mod_ldap openldap-devel openldap
# yum install php-ldap
# yum install mod_ssl openssl
# yum install mailx
# yum install sendmail
Add below snippet to /etc/php.ini
[OCI8]connection_class = MyApp
extension_dir=/usr/lib64/php/modules
extension=mongodb.so
mongodb.debug=DEBUG
extension=oci8.so
No comments:
Post a Comment