Announcement

Collapse
No announcement yet.

phpinfo problems

Collapse
This topic is closed.
X
X
 
  • Filter
  • Time
  • Show
Clear All
new posts

    phpinfo problems

    I can't get phpinfo to work in 16.04. It just displays the code for phpinfo.php. If I surround that with <html><body>, as someone suggested, it doesn't display anything.

    Will wordpress and stuff like that work with php7?
    'I must have a prodigious quantity of mind; it takes me as much as a week sometimes to make it up.' Mark Twain

    #2
    Yes, Wordpress supports php7. What server are you using?

    Comment


      #3
      That wasn't my principle question. Why does it not work in 16.04?

      I removed and reinstalled php (php7). If I direct my browse to localhost/phpinfo.php (which is in /var/www/html):

      - chrome show me the contents of the file, and

      - firefox shows me a blank page.

      So my php is not working.
      'I must have a prodigious quantity of mind; it takes me as much as a week sometimes to make it up.' Mark Twain

      Comment


        #4
        whatthefunk was asking which web server you are running

        sent from my LG V10 using Tapatalk

        Comment


          #5
          Sorry, I did not understand. I am running apache2 and php, which in this case is php7.
          'I must have a prodigious quantity of mind; it takes me as much as a week sometimes to make it up.' Mark Twain

          Comment


            #6
            How are you trying to see phpinfo? Did you just open a file in the browser? Virtual host? What does your file look like?

            Comment


              #7
              I used Firefox or Chrome to go tolocalhost/phpinfo.php, which contains<?php

              // Show all information, defaults to INFO_ALL
              phpinfo();

              // Show just the module information.
              // phpinfo(8) yields identical results.
              phpinfo(INFO_MODULES);

              ?>

              That has always worked before I went to K16.04 with php7. Are you running php7 without pb? Otherwise, maybe I should try php5, if that is possible.

              Thanks for your assistance!
              'I must have a prodigious quantity of mind; it takes me as much as a week sometimes to make it up.' Mark Twain

              Comment


                #8
                Sorry, "<?php" should have been on the next iine. It's part of the file -- of course.
                'I must have a prodigious quantity of mind; it takes me as much as a week sometimes to make it up.' Mark Twain

                Comment


                  #9
                  Hmmm... I wish I could help, but I have no idea. Maybe your server isnt configured correctly? Yes, Im on php7 and have no problems at all.

                  Comment


                    #10
                    I finally found a hint on another site. After installing

                    libapache2-mod-php

                    it works! Thanks for your input.
                    'I must have a prodigious quantity of mind; it takes me as much as a week sometimes to make it up.' Mark Twain

                    Comment


                      #11
                      Glad you got it working!

                      Comment

                      Working...
                      X