problem with php5, not plays and downloads the file

Gentlemen, good morning.
I have the following problem, my laptop is a dell inspiron 14r, i5 processor and 4GB of ram. I tried to install lamp server in various ways, once done automatically by a package lamp-server ^ he makes the installation of all modules and dependencies, but does not interpret php, when I try to read a file extension. Php it low and does not interpret the file in the browser, how to proceed?

Thank you in advance

PHP is never interpreted in a browser. It is interpreted in the (Apache2 in your case) server.

But first please tell us which version of openSUSE you are using.

And then, it is not quite clear how you installed LAMP. Did you use YaST > Softwae > Software Management and then choose Patterns from the View and then installed the Web and Lamp server Pattern?

And please tell more precise what you do, what you expected to happen and what happened instead. E.g. show us the URL you used and waht was the result.

I have the same problem, OpenSUSE 13.01, LAMP server (YAST) patterns-openSUSE-lamp_server, when i try execute files .php in the Lamp server, the browser (or LAMP server) have some problems to recognize it (cant interpreted php lenguage), and try to download like a file.

I see all documentation about Lamp, apache2 and php, but the information for Opensuse its too old(around 2010).

Check that you have “apache2-mod_php5” installed. (should be, if you installed the LAMP pattern)

Probably the php5_module is not loaded:

apache2ctl -M | grep php5

This should say: “php5_module (shared)”
If not, add php5 to the modules to be loaded, either by running “a2enmod php5” or by manually adding “php5” to the “APACHE_MODULES=” line in /etc/sysconfig/apache2.
And don’t forget to restart Apache afterwards. :wink:

I love you man (or i don’t know), It works!! :slight_smile: i try add manually “php5” to the “APACHE_MODULES” in /etc/sysconfig/apache2 :

APACHE_MODULES="actions **php5** alias auth_basic authn_file authz_host authz_groupfile authz_user autoindex cgi dir env expires include log_config mime negotiation setenvif ssl userdir reqtimeout authn_core authz_core"