What are the differences in enabling OCI for PHP between CLI and httpd on a CentOS server?

Enabling OCI for PHP on a CentOS server requires different configurations for the CLI and httpd (Apache) versions. For the CLI, you need to edit the php.ini file, while for httpd, you need to modify the httpd.conf file to load the OCI8 extension. For CLI: 1. Edit the php.ini file located at /etc/php.ini 2. Uncomment or add the line extension=oci8.so 3. Save the file and restart PHP For httpd: 1. Edit the httpd.conf file located at /etc/httpd/conf/httpd.conf 2. Add the line LoadModule oci8_module modules/mod_oci8.so 3. Save the file and restart Apache PHP code snippet for CLI: ```bash sudo nano /etc/php.ini ``` Uncomment or add the following line: ```ini extension=oci8.so ``` Save the file and restart PHP: ```bash sudo systemctl restart php-fpm ``` PHP code snippet for httpd: ```bash sudo nano /etc/httpd/conf/httpd.conf ``` Add the following line: ```ini LoadModule oci8_module modules/mod_oci8.so ``` Save the file and restart Apache: ```bash sudo systemctl restart httpd