Php 7.2.15 doesn't load correctlyPhp doesn't work on Apache serverApache doesn't load .php filesApache not showing PHP Pages correctlyPHP mysqli extension in Ubuntu 16.04 not working after upgrade to version 7.0.6PHP Warning: PHP Startup: Unable to load dynamic libraryApache does not load php filesPHP doesn't work on Ubuntu 16.04phpmyadmin installed but the page not rendered correctly by phpPhp doesn't workUnable to load dynamic library '/usr/lib/php/20151012/xsl.so'

Does this AnyDice function accurately calculate the number of ogres you make unconcious with three 4th-level castings of Sleep?

PTIJ: Who should pay for Uber rides: the child or the parent?

My adviser wants to be the first author

Sword in the Stone story where the sword was held in place by electromagnets

It's a yearly task, alright

What options are left, if Britain cannot decide?

Have researchers managed to "reverse time"? If so, what does that mean for physics?

Is it possible that AIC = BIC?

Check this translation of Amores 1.3.26

Informing my boss about remarks from a nasty colleague

Provisioning profile doesn't include the application-identifier and keychain-access-groups entitlements

Fill color and outline color with the same value

Is a lawful good "antagonist" effective?

Meaning of "SEVERA INDEOVI VAS" from 3rd Century slab

Why is stat::st_size 0 for devices but at the same time lseek defines the device size correctly?

Counting certain elements in lists

Can anyone tell me why this program fails?

I need to drive a 7/16" nut but am unsure how to use the socket I bought for my screwdriver

What is a good source for large tables on the properties of water?

Where is the 1/8 CR apprentice in Volo's Guide to Monsters?

Instead of Universal Basic Income, why not Universal Basic NEEDS?

Why using two cd commands in bash script does not execute the second command

Schematic conventions for different supply rails

Why are there 40 737 Max planes in flight when they have been grounded as not airworthy?



Php 7.2.15 doesn't load correctly


Php doesn't work on Apache serverApache doesn't load .php filesApache not showing PHP Pages correctlyPHP mysqli extension in Ubuntu 16.04 not working after upgrade to version 7.0.6PHP Warning: PHP Startup: Unable to load dynamic libraryApache does not load php filesPHP doesn't work on Ubuntu 16.04phpmyadmin installed but the page not rendered correctly by phpPhp doesn't workUnable to load dynamic library '/usr/lib/php/20151012/xsl.so'













0















I have been having problems with Apache2 loading php. First it printed raw code to the screen. Then I ran sudo apt-get install php libapache2-mod-php and sudo a2enmod mpm_prefork && sudo a2enmod php7.0. The 2nd command appeared to be unneeded but the 1st moved the issue forward slightly.



Running this test file in the browser (from /var/www/html):



// http://localhost/test.php
<?
phpinfo();


shows this:



1024) // // $bandwidth = round($bandwidth / 1024 , 2); 
// $bandwidth .= " MB"; // //else // // $bandwidth .= " KB";
// // //switch (@$_GET['download']) // //if
($object->bandwidth > 0) // // error_reporting(E_NONE); // $b
= intval(implode('',file('bandwidth.txt'))) + $object-
>bandwidth; // $f = fopen('bandwidth.txt','wb'); //
fwrite($f,$b); // fclose($f); // exit; // // //function
test_auth($user,$pass) //test authentication function // if
($user == 'user' && $pass == 'pass') return true; // return
false; // // //?> -->


Black text on white background. No formating.



Going to the root of a wordpress directory (with an index.php file) shows this (black text white background):



<?php
/**
* Front to the WordPress application. This file doesn't do anything, but loads
* wp-blog-header.php which does and tells WordPress to load the theme.
*
* @package WordPress
*/

/**
* Tells WordPress to load the WordPress theme and output it.
*
* @var bool
*/
define( 'WP_USE_THEMES', true );

/** Loads the WordPress Environment and Template */
require( dirname( __FILE__ ) . '/wp-blog-header.php' );


I've tried to remove/purse and install both apache2 and php several times. I also tried stopping and restarting the apache2 service.



Does anyone know what the issue could be?



Here are my versions:



owner@G700:/var/www/wptest1$ apache2 -v
Server version: Apache/2.4.29 (Ubuntu)
Server built: 2018-10-10T18:59:25

owner@G700:/var/www/wptest1$ php -v
PHP 7.2.15-0ubuntu0.18.04.1 (cli) (built: Feb 8 2019 14:54:22) ( NTS )
Copyright (c) 1997-2018 The PHP Group
Zend Engine v3.2.0, Copyright (c) 1998-2018 Zend Technologies
with Zend OPcache v7.2.15-0ubuntu0.18.04.1, Copyright (c) 1999-2018, by Zend Technologies


I'm on Lubuntu 18.04










share|improve this question




























    0















    I have been having problems with Apache2 loading php. First it printed raw code to the screen. Then I ran sudo apt-get install php libapache2-mod-php and sudo a2enmod mpm_prefork && sudo a2enmod php7.0. The 2nd command appeared to be unneeded but the 1st moved the issue forward slightly.



    Running this test file in the browser (from /var/www/html):



    // http://localhost/test.php
    <?
    phpinfo();


    shows this:



    1024) // // $bandwidth = round($bandwidth / 1024 , 2); 
    // $bandwidth .= " MB"; // //else // // $bandwidth .= " KB";
    // // //switch (@$_GET['download']) // //if
    ($object->bandwidth > 0) // // error_reporting(E_NONE); // $b
    = intval(implode('',file('bandwidth.txt'))) + $object-
    >bandwidth; // $f = fopen('bandwidth.txt','wb'); //
    fwrite($f,$b); // fclose($f); // exit; // // //function
    test_auth($user,$pass) //test authentication function // if
    ($user == 'user' && $pass == 'pass') return true; // return
    false; // // //?> -->


    Black text on white background. No formating.



    Going to the root of a wordpress directory (with an index.php file) shows this (black text white background):



    <?php
    /**
    * Front to the WordPress application. This file doesn't do anything, but loads
    * wp-blog-header.php which does and tells WordPress to load the theme.
    *
    * @package WordPress
    */

    /**
    * Tells WordPress to load the WordPress theme and output it.
    *
    * @var bool
    */
    define( 'WP_USE_THEMES', true );

    /** Loads the WordPress Environment and Template */
    require( dirname( __FILE__ ) . '/wp-blog-header.php' );


    I've tried to remove/purse and install both apache2 and php several times. I also tried stopping and restarting the apache2 service.



    Does anyone know what the issue could be?



    Here are my versions:



    owner@G700:/var/www/wptest1$ apache2 -v
    Server version: Apache/2.4.29 (Ubuntu)
    Server built: 2018-10-10T18:59:25

    owner@G700:/var/www/wptest1$ php -v
    PHP 7.2.15-0ubuntu0.18.04.1 (cli) (built: Feb 8 2019 14:54:22) ( NTS )
    Copyright (c) 1997-2018 The PHP Group
    Zend Engine v3.2.0, Copyright (c) 1998-2018 Zend Technologies
    with Zend OPcache v7.2.15-0ubuntu0.18.04.1, Copyright (c) 1999-2018, by Zend Technologies


    I'm on Lubuntu 18.04










    share|improve this question


























      0












      0








      0








      I have been having problems with Apache2 loading php. First it printed raw code to the screen. Then I ran sudo apt-get install php libapache2-mod-php and sudo a2enmod mpm_prefork && sudo a2enmod php7.0. The 2nd command appeared to be unneeded but the 1st moved the issue forward slightly.



      Running this test file in the browser (from /var/www/html):



      // http://localhost/test.php
      <?
      phpinfo();


      shows this:



      1024) // // $bandwidth = round($bandwidth / 1024 , 2); 
      // $bandwidth .= " MB"; // //else // // $bandwidth .= " KB";
      // // //switch (@$_GET['download']) // //if
      ($object->bandwidth > 0) // // error_reporting(E_NONE); // $b
      = intval(implode('',file('bandwidth.txt'))) + $object-
      >bandwidth; // $f = fopen('bandwidth.txt','wb'); //
      fwrite($f,$b); // fclose($f); // exit; // // //function
      test_auth($user,$pass) //test authentication function // if
      ($user == 'user' && $pass == 'pass') return true; // return
      false; // // //?> -->


      Black text on white background. No formating.



      Going to the root of a wordpress directory (with an index.php file) shows this (black text white background):



      <?php
      /**
      * Front to the WordPress application. This file doesn't do anything, but loads
      * wp-blog-header.php which does and tells WordPress to load the theme.
      *
      * @package WordPress
      */

      /**
      * Tells WordPress to load the WordPress theme and output it.
      *
      * @var bool
      */
      define( 'WP_USE_THEMES', true );

      /** Loads the WordPress Environment and Template */
      require( dirname( __FILE__ ) . '/wp-blog-header.php' );


      I've tried to remove/purse and install both apache2 and php several times. I also tried stopping and restarting the apache2 service.



      Does anyone know what the issue could be?



      Here are my versions:



      owner@G700:/var/www/wptest1$ apache2 -v
      Server version: Apache/2.4.29 (Ubuntu)
      Server built: 2018-10-10T18:59:25

      owner@G700:/var/www/wptest1$ php -v
      PHP 7.2.15-0ubuntu0.18.04.1 (cli) (built: Feb 8 2019 14:54:22) ( NTS )
      Copyright (c) 1997-2018 The PHP Group
      Zend Engine v3.2.0, Copyright (c) 1998-2018 Zend Technologies
      with Zend OPcache v7.2.15-0ubuntu0.18.04.1, Copyright (c) 1999-2018, by Zend Technologies


      I'm on Lubuntu 18.04










      share|improve this question
















      I have been having problems with Apache2 loading php. First it printed raw code to the screen. Then I ran sudo apt-get install php libapache2-mod-php and sudo a2enmod mpm_prefork && sudo a2enmod php7.0. The 2nd command appeared to be unneeded but the 1st moved the issue forward slightly.



      Running this test file in the browser (from /var/www/html):



      // http://localhost/test.php
      <?
      phpinfo();


      shows this:



      1024) // // $bandwidth = round($bandwidth / 1024 , 2); 
      // $bandwidth .= " MB"; // //else // // $bandwidth .= " KB";
      // // //switch (@$_GET['download']) // //if
      ($object->bandwidth > 0) // // error_reporting(E_NONE); // $b
      = intval(implode('',file('bandwidth.txt'))) + $object-
      >bandwidth; // $f = fopen('bandwidth.txt','wb'); //
      fwrite($f,$b); // fclose($f); // exit; // // //function
      test_auth($user,$pass) //test authentication function // if
      ($user == 'user' && $pass == 'pass') return true; // return
      false; // // //?> -->


      Black text on white background. No formating.



      Going to the root of a wordpress directory (with an index.php file) shows this (black text white background):



      <?php
      /**
      * Front to the WordPress application. This file doesn't do anything, but loads
      * wp-blog-header.php which does and tells WordPress to load the theme.
      *
      * @package WordPress
      */

      /**
      * Tells WordPress to load the WordPress theme and output it.
      *
      * @var bool
      */
      define( 'WP_USE_THEMES', true );

      /** Loads the WordPress Environment and Template */
      require( dirname( __FILE__ ) . '/wp-blog-header.php' );


      I've tried to remove/purse and install both apache2 and php several times. I also tried stopping and restarting the apache2 service.



      Does anyone know what the issue could be?



      Here are my versions:



      owner@G700:/var/www/wptest1$ apache2 -v
      Server version: Apache/2.4.29 (Ubuntu)
      Server built: 2018-10-10T18:59:25

      owner@G700:/var/www/wptest1$ php -v
      PHP 7.2.15-0ubuntu0.18.04.1 (cli) (built: Feb 8 2019 14:54:22) ( NTS )
      Copyright (c) 1997-2018 The PHP Group
      Zend Engine v3.2.0, Copyright (c) 1998-2018 Zend Technologies
      with Zend OPcache v7.2.15-0ubuntu0.18.04.1, Copyright (c) 1999-2018, by Zend Technologies


      I'm on Lubuntu 18.04







      server 18.04 lubuntu apache2 php






      share|improve this question















      share|improve this question













      share|improve this question




      share|improve this question








      edited 2 hours ago







      Sean Dezoysa

















      asked 2 hours ago









      Sean DezoysaSean Dezoysa

      1205




      1205




















          0






          active

          oldest

          votes











          Your Answer








          StackExchange.ready(function()
          var channelOptions =
          tags: "".split(" "),
          id: "89"
          ;
          initTagRenderer("".split(" "), "".split(" "), channelOptions);

          StackExchange.using("externalEditor", function()
          // Have to fire editor after snippets, if snippets enabled
          if (StackExchange.settings.snippets.snippetsEnabled)
          StackExchange.using("snippets", function()
          createEditor();
          );

          else
          createEditor();

          );

          function createEditor()
          StackExchange.prepareEditor(
          heartbeatType: 'answer',
          autoActivateHeartbeat: false,
          convertImagesToLinks: true,
          noModals: true,
          showLowRepImageUploadWarning: true,
          reputationToPostImages: 10,
          bindNavPrevention: true,
          postfix: "",
          imageUploader:
          brandingHtml: "Powered by u003ca class="icon-imgur-white" href="https://imgur.com/"u003eu003c/au003e",
          contentPolicyHtml: "User contributions licensed under u003ca href="https://creativecommons.org/licenses/by-sa/3.0/"u003ecc by-sa 3.0 with attribution requiredu003c/au003e u003ca href="https://stackoverflow.com/legal/content-policy"u003e(content policy)u003c/au003e",
          allowUrls: true
          ,
          onDemand: true,
          discardSelector: ".discard-answer"
          ,immediatelyShowMarkdownHelp:true
          );



          );













          draft saved

          draft discarded


















          StackExchange.ready(
          function ()
          StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2faskubuntu.com%2fquestions%2f1125734%2fphp-7-2-15-doesnt-load-correctly%23new-answer', 'question_page');

          );

          Post as a guest















          Required, but never shown

























          0






          active

          oldest

          votes








          0






          active

          oldest

          votes









          active

          oldest

          votes






          active

          oldest

          votes















          draft saved

          draft discarded
















































          Thanks for contributing an answer to Ask Ubuntu!


          • Please be sure to answer the question. Provide details and share your research!

          But avoid


          • Asking for help, clarification, or responding to other answers.

          • Making statements based on opinion; back them up with references or personal experience.

          To learn more, see our tips on writing great answers.




          draft saved


          draft discarded














          StackExchange.ready(
          function ()
          StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2faskubuntu.com%2fquestions%2f1125734%2fphp-7-2-15-doesnt-load-correctly%23new-answer', 'question_page');

          );

          Post as a guest















          Required, but never shown





















































          Required, but never shown














          Required, but never shown












          Required, but never shown







          Required, but never shown

































          Required, but never shown














          Required, but never shown












          Required, but never shown







          Required, but never shown







          Popular posts from this blog

          Are there any comparative studies done between Ashtavakra Gita and Buddhim?How is it wrong to believe that a self exists, or that it doesn't?Can you criticise or improve Ven. Bodhi's description of MahayanaWas the doctrine of 'Anatta', accepted as doctrine by modern Buddhism, actually taught by the Buddha?Relationship between Buddhism, Hinduism and Yoga?Comparison of Nirvana, Tao and Brahman/AtmaIs there a distinction between “ego identity” and “craving/hating”?Are there many differences between Taoism and Buddhism?Loss of “faith” in buddhismSimilarity between creation in Abrahamic religions and beginning of life in Earth mentioned Agganna Sutta?Are there studies about the difference between meditating in the morning versus in the evening?Can one follow Hinduism and Buddhism at the same time?Are there any prohibitions on participating in other religion's practices?Psychology of 'flow'

          Where else does the Shulchan Aruch quote an authority by name?Parashat Metzora+HagadolPesach/PassoverShulchan Aruch UTF-8Anonymous glosses in the Shulchan AruchWhy is the Shulchan Aruch definitive?Siman 32, Kitzur Shulchan Aruch: UntranslatedLitvaks/Yeshivish and Shulchan AruchBuying a Shulchan AruchEnglish version of SHULCHAN ARUCHIs there any place where Shulchan Aruch rules with the Rosh against the Rif and Rambam?Are there practices where Sepharadim do not hold by Shulchan Aruch?5th part of the shulchan aruch

          fallocate: fallocate failed: Text file busy in Ubuntu 17.04? Announcing the arrival of Valued Associate #679: Cesar Manara Planned maintenance scheduled April 17/18, 2019 at 00:00UTC (8:00pm US/Eastern)defragmenting and increasing performance of old lubuntu system with swap partitionIssue with increasing the root partition from the swapthis /usr/bin/dpkg returned error || ubuntu-16.04, 64bitDefault 17.04 swap file locationHow to Resize Ubuntu 17.04 Zesty Swap file size?Ubuntu freezes from online formsMy Laptop is not starting after upgrade ubuntu 16.04 (Kernel 4.8.0-38 to 04.10.0-36)hcp: ERROR: FALLOCATE FAILED!Not sure my swap is being usedWine 3.0 asking for more virtual free swap