php - How do I build / get libphp5.so? -


i running suse amazon image came pre loaded apache2 , php. have got website , running test index.html file, works. when index.php test browser tries download file. think because php / apache2 not configured correctly.

the bit think need in httpd.conf

loadmodule php5_module modules/libphp5.so 

i have added block already

<files *.php>    setoutputfilter php    setinputfilter php    limitrequestbody 9524288 </files> addtype application/x-httpd-php .php addtype application/x-httpd-php-source .phps 

i have installed apache2-mod_php5 via zypper expectation add libphp5.so somewhere - can't find it. have seen people mentioning built somehow in installation of php / apache. updated apache2 , php via zypper , nada.

how file?

the module called mod_php5.so , lives under

/usr/lib64/apache2/mod_php5.so

it's living there along lot of other mods, php5 module not included anywhere!

so line add config (/etc/apache2/sysconfig.d/loadmodule.conf) loadmodule php5_module /usr/lib64/apache2/mod_php5.so

i used command a2enmod php enable mod

also don't forget restart apache2 , clear browser cache. httpd2 -k -restart


Comments

Popular posts from this blog

plot - Remove Objects from Legend When You Have Also Used Fit, Matlab -

java - Why does my date parsing return a weird date? -

Need help in packaging app using TideSDK on Windows -