Results 1 to 5 of 5

Thread: problem with php5, not plays and downloads the file

  1. #1

    Angry 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

  2. #2
    Join Date
    Jun 2008
    Location
    Netherlands
    Posts
    25,378

    Default Re: problem with php5, not plays and downloads the file

    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.
    Henk van Velden

  3. #3

    Question Re: problem with php5, not plays and downloads the file

    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).

  4. #4

    Default Re: problem with php5, not plays and downloads the file

    Quote Originally Posted by hendrikob View Post
    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.
    Check that you have "apache2-mod_php5" installed. (should be, if you installed the LAMP pattern)

    Probably the php5_module is not loaded:
    Code:
    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.

  5. #5

    Cool Re: problem with php5, not plays and downloads the file

    Quote Originally Posted by wolfi323 View Post
    Check that you have "apache2-mod_php5" installed. (should be, if you installed the LAMP pattern)

    Probably the php5_module is not loaded:
    Code:
    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.
    I love you man (or i don’t know), It works!! i try add manually "php5" to the "APACHE_MODULES" in /etc/sysconfig/apache2 :

    Code:
    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"

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •