Cloudron makes it easy to run web apps like WordPress, Nextcloud, GitLab on your server. Find out more or install now.


Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Bookmarks
  • Search
Skins
  • Light
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (No Skin)
  • No Skin
Collapse
Brand Logo

Cloudron Forum

Apps | Demo | Docs | Install
  1. Cloudron Forum
  2. LAMP
  3. php not loading

php not loading

Scheduled Pinned Locked Moved LAMP
9 Posts 2 Posters 1.3k Views 2 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • andreasduerenA Offline
    andreasduerenA Offline
    andreasdueren
    wrote on last edited by
    #1

    For one of my LAMP stacks I can't access the myphp page because it won't load the code but instead just print the text. Any ideas?

    Screenshot 2022-10-31 at 22.38.21.png

    girishG 1 Reply Last reply
    0
    • andreasduerenA andreasdueren

      For one of my LAMP stacks I can't access the myphp page because it won't load the code but instead just print the text. Any ideas?

      Screenshot 2022-10-31 at 22.38.21.png

      girishG Offline
      girishG Offline
      girish
      Staff
      wrote on last edited by
      #2

      @andreasdueren said in php not loading:

      because it won't load the code but instead just print the text

      I guess you mean that the browser is displaying the php itself ? This usually points to apache configuration issue. Did you change the default?

      andreasduerenA 1 Reply Last reply
      0
      • girishG Offline
        girishG Offline
        girish
        Staff
        wrote on last edited by
        #3

        I would also test with a very basic PHP hello world. IIRC, the file also needs the .php filename extension. Otherwise, apache may not execute it as php.

        1 Reply Last reply
        0
        • girishG girish

          @andreasdueren said in php not loading:

          because it won't load the code but instead just print the text

          I guess you mean that the browser is displaying the php itself ? This usually points to apache configuration issue. Did you change the default?

          andreasduerenA Offline
          andreasduerenA Offline
          andreasdueren
          wrote on last edited by
          #4

          @girish I don't remember changing it. It's also identical to a clean LAMP stack I created and the root directory of my LAMP stack is working corretly, just not the phpmyadmin

          girishG 1 Reply Last reply
          0
          • andreasduerenA andreasdueren

            @girish I don't remember changing it. It's also identical to a clean LAMP stack I created and the root directory of my LAMP stack is working corretly, just not the phpmyadmin

            girishG Offline
            girishG Offline
            girish
            Staff
            wrote on last edited by
            #5

            @andreasdueren So, for a start, I would create a new file say hello.php with the following contents:

            <?php echo '<p>hello world<p>' ?>
            

            Then, if you visit hello.php, what do you see? The file contents or did the PHP get executed?

            andreasduerenA 1 Reply Last reply
            0
            • girishG girish

              @andreasdueren So, for a start, I would create a new file say hello.php with the following contents:

              <?php echo '<p>hello world<p>' ?>
              

              Then, if you visit hello.php, what do you see? The file contents or did the PHP get executed?

              andreasduerenA Offline
              andreasduerenA Offline
              andreasdueren
              wrote on last edited by
              #6

              @girish a new php file with this single print command in the regular LAMP folder correctly executes the php and just prints the "hello world"

              girishG 1 Reply Last reply
              0
              • andreasduerenA andreasdueren

                @girish a new php file with this single print command in the regular LAMP folder correctly executes the php and just prints the "hello world"

                girishG Offline
                girishG Offline
                girish
                Staff
                wrote on last edited by
                #7

                @andreasdueren I would then start editing your PHP file slowly step by step to see where it fails. For a start, just replace index.php will the hello world example and see if that works and take it from there. Maybe there is some file content encoding issue? Not sure.

                andreasduerenA 1 Reply Last reply
                0
                • girishG girish

                  @andreasdueren I would then start editing your PHP file slowly step by step to see where it fails. For a start, just replace index.php will the hello world example and see if that works and take it from there. Maybe there is some file content encoding issue? Not sure.

                  andreasduerenA Offline
                  andreasduerenA Offline
                  andreasdueren
                  wrote on last edited by
                  #8

                  @girish I‘m running a complete sendy.co instance on the LAMP stack which seems to work fine. I just can’t access the phpmyadmin

                  Preferably I would like to just migrate to a clean LAMP stack since something is fishy with this container. How can I smoothly transfer my database without my terminal knowledge?

                  girishG 1 Reply Last reply
                  0
                  • andreasduerenA andreasdueren

                    @girish I‘m running a complete sendy.co instance on the LAMP stack which seems to work fine. I just can’t access the phpmyadmin

                    Preferably I would like to just migrate to a clean LAMP stack since something is fishy with this container. How can I smoothly transfer my database without my terminal knowledge?

                    girishG Offline
                    girishG Offline
                    girish
                    Staff
                    wrote on last edited by
                    #9

                    @andreasdueren Oh, I went back and read what you said in the initial post. I guess "myphp page" meant PHPMyAdmin ? Didn't occur to me, I read that is "my php app". Are you accessing PHPMyAdmin via https://app.domain.com//phpmyadmin .

                    1 Reply Last reply
                    0
                    Reply
                    • Reply as topic
                    Log in to reply
                    • Oldest to Newest
                    • Newest to Oldest
                    • Most Votes


                    • Login

                    • Don't have an account? Register

                    • Login or register to search.
                    • First post
                      Last post
                    0
                    • Categories
                    • Recent
                    • Tags
                    • Popular
                    • Bookmarks
                    • Search