Results 1 to 5 of 5

Thread: I'm crazy with PHP7 and Leap 15

  1. #1

    Default I'm crazy with PHP7 and Leap 15

    I did clean install with LAMP pattern and PHP7 doesn't process .php files (browser offers to save http://localhost/test.php).
    Code:
    linux-tgrw:~/Desktop # a2enmod -l
    authz_host actions alias authz_user auth_basic authn_file authz_groupfile autoindex cgi dir include log_config mime negotiation setenvif status userdir asis imagemap reqtimeout authn_core authz_core socache_shmcb php7
    
    linux-tgrw:~/Desktop # apachectl -M
    Loaded Modules:
     core_module (static)
     so_module (static)
     http_module (static)
     mpm_prefork_module (static)
     unixd_module (static)
     systemd_module (static)
     authz_host_module (shared)
     actions_module (shared)
     alias_module (shared)
     authz_user_module (shared)
     auth_basic_module (shared)
     authn_file_module (shared)
     authz_groupfile_module (shared)
     autoindex_module (shared)
     cgi_module (shared)
     dir_module (shared)
     include_module (shared)
     log_config_module (shared)
     mime_module (shared)
     negotiation_module (shared)
     setenvif_module (shared)
     status_module (shared)
     userdir_module (shared)
     asis_module (shared)
     imagemap_module (shared)
     reqtimeout_module (shared)
     authn_core_module (shared)
     authz_core_module (shared)
     socache_shmcb_module (shared)
     php7_module (shared)
    /etc/apache2/conf.d/php7.conf:
    Code:
    <IfModule mod_php7.c>
           <FilesMatch "\.ph(p[345]?|tml)$">
               SetHandler application/x-httpd-php
           </FilesMatch>
           <FilesMatch "\.php[345]?s$">
               SetHandler application/x-httpd-php-source
           </FilesMatch>
            DirectoryIndex index.php4
            DirectoryIndex index.php5
            DirectoryIndex index.php
    </IfModule>

  2. #2
    Join Date
    Jun 2008
    Location
    Groningen, Netherlands
    Posts
    20,925
    Blog Entries
    14

    Default Re: I'm crazy with PHP7 and Leap 15

    Hi, tried to mimic your procedure. Installed the Lamp pattern + yast2-http-server. Used the latter to fire up the apache server, enabled php7, restarted apache and as a test started a Joomla install. Works as expected. Did you restart apache after enabling php7 ?
    ° Appreciate my reply? Click the star and let me know why.

    ° Perfection is not gonna happen. No way.

    http://en.opensuse.org/User:Knurpht
    http://nl.opensuse.org/Gebruiker:Knurpht

  3. #3

    Default Re: I'm crazy with PHP7 and Leap 15

    I surely restarted apache after enabling php. Today made again clean install just exactly your way, enabled php7, restarted apache, default index.html in /srv/www/htdocs is ok in browser (http://localhost/), but very simple test.php (http://localhost/test.php)
    Code:
    <?php phpinfo(); ?>
    browser still offers me to open in Leafpad or save

  4. #4
    xen82a NNTP User

    Default Re: I'm crazy with PHP7 and Leap 15

    I get confused from OpenSUSE's apache config but......

    make sure php7.conf is actually loaded?

    And check /var/log/apache2/error_log

  5. #5

    Default Re: I'm crazy with PHP7 and Leap 15

    Today I've checked /var/log/apache2/error_log, here it is:
    Code:
    [Fri Jun 08 09:02:38.643735 2018] [mpm_prefork:notice] [pid 4213] AH00163: Apache/2.4.33 (Linux/SUSE) configured -- resuming normal operations
    [Fri Jun 08 09:02:38.644410 2018] [core:notice] [pid 4213] AH00094: Command line: '/usr/sbin/httpd-prefork -D SYSCONFIG -C PidFile /var/run/httpd.pid -C Include /etc/apache2/sysconfig.d//loadmodule.conf -C Include /etc/apache2/sysconfig.d//global.conf -f /etc/apache2/httpd.conf -c Include /etc/apache2/sysconfig.d//include.conf -D SYSTEMD -D FOREGROUND'
    [Fri Jun 08 09:09:40.616008 2018] [mpm_prefork:notice] [pid 4213] AH00170: caught SIGWINCH, shutting down gracefully
    [Fri Jun 08 09:09:40.930340 2018] [mpm_prefork:notice] [pid 4622] AH00163: Apache/2.4.33 (Linux/SUSE) PHP/7.2.5 configured -- resuming normal operations
    [Fri Jun 08 09:09:40.930781 2018] [core:notice] [pid 4622] AH00094: Command line: '/usr/sbin/httpd-prefork -D SYSCONFIG -C PidFile /var/run/httpd.pid -C Include /etc/apache2/sysconfig.d//loadmodule.conf -C Include /etc/apache2/sysconfig.d//global.conf -f /etc/apache2/httpd.conf -c Include /etc/apache2/sysconfig.d//include.conf -D SYSTEMD -D FOREGROUND'
    [Fri Jun 08 09:43:47.341334 2018] [mpm_prefork:notice] [pid 4622] AH00170: caught SIGWINCH, shutting down gracefully
    [Fri Jun 08 09:43:47.580255 2018] [mpm_prefork:notice] [pid 5073] AH00163: Apache/2.4.33 (Linux/SUSE) PHP/7.2.5 configured -- resuming normal operations
    [Fri Jun 08 09:43:47.580666 2018] [core:notice] [pid 5073] AH00094: Command line: '/usr/sbin/httpd-prefork -D SYSCONFIG -C PidFile /var/run/httpd.pid -C Include /etc/apache2/sysconfig.d//loadmodule.conf -C Include /etc/apache2/sysconfig.d//global.conf -f /etc/apache2/httpd.conf -c Include /etc/apache2/sysconfig.d//include.conf -D SYSTEMD -D FOREGROUND'
    [Fri Jun 08 10:48:34.462793 2018] [mpm_prefork:notice] [pid 5073] AH00170: caught SIGWINCH, shutting down gracefully
    [Fri Jun 08 10:49:53.623850 2018] [mpm_prefork:notice] [pid 1582] AH00163: Apache/2.4.33 (Linux/SUSE) PHP/7.2.5 configured -- resuming normal operations
    [Fri Jun 08 10:49:53.670665 2018] [core:notice] [pid 1582] AH00094: Command line: '/usr/sbin/httpd-prefork -D SYSCONFIG -C PidFile /var/run/httpd.pid -C Include /etc/apache2/sysconfig.d//loadmodule.conf -C Include /etc/apache2/sysconfig.d//global.conf -f /etc/apache2/httpd.conf -c Include /etc/apache2/sysconfig.d//include.conf -D SYSTEMD -D FOREGROUND'
    [Fri Jun 08 11:19:54.141559 2018] [mpm_prefork:notice] [pid 1582] AH00170: caught SIGWINCH, shutting down gracefully
    [Fri Jun 08 11:19:54.402620 2018] [mpm_prefork:notice] [pid 23965] AH00163: Apache/2.4.33 (Linux/SUSE) PHP/7.2.5 configured -- resuming normal operations
    [Fri Jun 08 11:19:54.402974 2018] [core:notice] [pid 23965] AH00094: Command line: '/usr/sbin/httpd-prefork -D SYSCONFIG -C PidFile /var/run/httpd.pid -C Include /etc/apache2/sysconfig.d//loadmodule.conf -C Include /etc/apache2/sysconfig.d//global.conf -f /etc/apache2/httpd.conf -c Include /etc/apache2/sysconfig.d//include.conf -D SYSTEMD -D FOREGROUND'
    [Sat Jun 09 06:39:46.009765 2018] [mpm_prefork:notice] [pid 23965] AH00170: caught SIGWINCH, shutting down gracefully
    [Sat Jun 09 06:39:46.250091 2018] [mpm_prefork:notice] [pid 28501] AH00163: Apache/2.4.33 (Linux/SUSE) PHP/7.2.5 configured -- resuming normal operations
    [Sat Jun 09 06:39:46.250561 2018] [core:notice] [pid 28501] AH00094: Command line: '/usr/sbin/httpd-prefork -D SYSCONFIG -C PidFile /var/run/httpd.pid -C Include /etc/apache2/sysconfig.d//loadmodule.conf -C Include /etc/apache2/sysconfig.d//global.conf -f /etc/apache2/httpd.conf -c Include /etc/apache2/sysconfig.d//include.conf -D SYSTEMD -D FOREGROUND'
    Yesterday I did restart apache several times without any sense, but today after apache restart - PHP works!
    I didn't change anything today, I just left the computer switched on till the morning and made last attempt to restart apache and check the log before giving up and installing well known Leap 42.

    So, if to wait one day before PHP starts to work under Leap 15 is the solution, then the problem is solved

Posting Permissions

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