Page 1 of 2 12 LastLast
Results 1 to 10 of 12

Thread: Apache does not recognize *.php files...

  1. #1

    Unhappy Apache does not recognize *.php files...

    Hi!
    yesterday everything was working fine. I installed Zend Server CE. Then I uninstalled Zend Server CE and installed PHP5 + Apache using Yast and now *.php files my Firefox want to download not display.

    Apache:
    apache2
    apache2-mod_php5
    apache2-prefork
    apache2-utils
    libapr-util1
    libapr1
    libapr1-devel

    Php:
    php5
    apache2-mod_php5
    php5-mysql
    php5-pdo

    OpenSuSe 10.2

  2. #2
    Join Date
    Jun 2008
    Location
    UTC+10
    Posts
    9,686
    Blog Entries
    4

    Default Re: Apache does not recognize *.php files...

    Did you enable the loading of the php5 module in /etc/sysconfig/apache2, variable APACHE_MODULES?

    PS: I hope you don't intend to expose this webserver to users, because 10.2 is out of support and PHP has had many security fixes since then.

  3. #3

    Default Re: Apache does not recognize *.php files...

    grep ".php" /etc/apache2/conf.d/php5.conf
    (don't know on 10.2)

  4. #4

    Default Re: Apache does not recognize *.php files...

    APACHE_MODULES="actions alias auth_basic authn_file authz_host authz_groupfile authz_default authz_user autoindex cgi dir env expires include log_config mime negotiation setenvif ssl userdir "
    This OpenSuSe 10.2 as OS on my laptop not as a server and what you mean out of support? 10.2 is the latest stable OpenSuSe?
    Sorry I`m new on linux.

    ---> grep ".php" /etc/apache2/conf.d/php5.conf
    <IfModule mod_php5.c>
    AddHandler application/x-httpd-php .php4
    AddHandler application/x-httpd-php .php5
    AddHandler application/x-httpd-php .php
    AddHandler application/x-httpd-php-source .php4s
    AddHandler application/x-httpd-php-source .php5s
    AddHandler application/x-httpd-php-source .phps
    DirectoryIndex index.php4
    DirectoryIndex index.php5
    DirectoryIndex index.php

  5. #5

    Default Re: Apache does not recognize *.php files...

    Quote Originally Posted by bluebird0384 View Post
    This OpenSuSe 10.2 as OS on my laptop not as a server and what you mean out of support? 10.2 is the latest stable OpenSuSe?
    Sorry I`m new on linux.
    11.2 is the latest release.

  6. #6

    Default Re: Apache does not recognize *.php files...

    But why I`s out of support?

  7. #7
    Join Date
    Jun 2008
    Location
    Groningen, Netherlands
    Posts
    19,662
    Blog Entries
    14

    Default Re: Apache does not recognize *.php files...

    openSUSE releases have a lifetime. The lifetime of 10.2 has ended. It's simply not possible for the developpers to maintain every version released.
    If this is a production critical server, I suggest you switch to SUSE Linux Enterprise Server, it has a much longer lifetime.
    ° Appreciate my reply? Click the star and let me know why.

    ° Perfection is not gonna happen. No way.

    https://en.opensuse.org/openSUSE:Board#Members
    http://en.opensuse.org/User:Knurpht
    http://nl.opensuse.org/Gebruiker:Knurpht

  8. #8

    Default Re: Apache does not recognize *.php files...

    Thnx for information.
    But i still have problem with apache+php!!
    How I can fix it?

  9. #9
    Join Date
    Jun 2008
    Location
    UTC+10
    Posts
    9,686
    Blog Entries
    4

    Default Re: Apache does not recognize *.php files...

    Quote Originally Posted by bluebird0384 View Post
    APACHE_MODULES="actions alias auth_basic authn_file authz_host authz_groupfile authz_default authz_user autoindex cgi dir env expires include log_config mime negotiation setenvif ssl userdir "
    You need php5 in there. But really, for your own safety, please don't use this 10.2 as a production server.

  10. #10

    Default Re: Apache does not recognize *.php files...

    But really, for your own safety, please don't use this 10.2 as a production server.
    ok! I`ll know this now!

    --> my php problem:

    1. /etc/sysconfig/apache2
    To "APACHE_MODULES=" added "mod_php5"

    2. /etc/apache2/sysconfig.d/loadmodule.conf
    Added LoadModule php5_module /usr/lib/apache2/mod_php5.so

    3. /etc/init.d/apache2 restart

    And now it works!

    But interesting why it did not happened automatically when I selected using Yast!

Page 1 of 2 12 LastLast

Tags for this Thread

Posting Permissions

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