Monday, December 16, 2013

Apache not processing php in suse

If you have php installed on your suse os, but apache is not processing php page, then the following might help solve your problem:

1. edit /etc/sysconfig/apache2, on "APACHE_MODULES=" add "mod_php5"

2. Edit /etc/apache2/sysconfig.d/loadmodule.conf

Add this line for 32 bit OS
LoadModule php5_module /usr/lib/apache2/mod_php5.so

Add this line for 64 bit OS
LoadModule php5_module /usr/lib64/apache2/mod_php5.so


3. run these command
 /etc/init.d/apache2 stop
 /etc/init.d/apache2 start