I’m trying to enable a PHP extension, but whenever I un-comment any extensions in my php.ini file it causes the code from a file to be downloaded whenever I try to run it in a browser.
EDIT
I’ve added
LoadModule php5_module modules/sdo.so
AddHandler php5-script php
AddType application/x-httpd-php php
To the httpd.conf file but it is still not working.
If this is a PHP extension, which I assume is the Service Data Objects extension, then you’re simply not enabling it correctly.
Extensions in PHP are enabled by editing
php.iniand adding a line like so:What you’re doing right now is loading the SDO extension as the
php5_module, causing an invalid or inexistent Apache module to handle PHP files.You don’t have to edit any Apache configuration files to enable a PHP extension.