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. Unable to access file publicly

Unable to access file publicly

Scheduled Pinned Locked Moved Solved LAMP
5 Posts 2 Posters 675 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.
  • S Offline
    S Offline
    shrey
    wrote on last edited by
    #1

    Hi.
    This might be something trivial, but i'm unable to figure out why i'm not able to access/execute a .php file, located in /app/data/public/ from outside?

    I have a file, say abc.php, that i wish to access like so:
    GET my-domain/abc.php/test/1.

    But, every time i try this, i get a 500 Error.

    1 Reply Last reply
    0
    • girishG girish

      @shrey said in Unable to access file publicly:

      PHP Fatal error: Uncaught Error: Class "Tqdev\PhpCrudApi\Config" not found in

      The above is the error. There is no such class.

      S Offline
      S Offline
      shrey
      wrote on last edited by
      #5

      @girish said in Unable to access file publicly:

      @shrey said in Unable to access file publicly:

      PHP Fatal error: Uncaught Error: Class "Tqdev\PhpCrudApi\Config" not found in

      The above is the error. There is no such class.

      Indeed, there's some issue in the code of the api.php itself, which is the main cause.

      Thanks!

      1 Reply Last reply
      1
      • girishG Offline
        girishG Offline
        girish
        Staff
        wrote on last edited by girish
        #2

        Are you able to access just https://my-domain/abc.php ? Did you put some custom htaccess or apache configuration ? What is it saying in the logs?

        S 1 Reply Last reply
        0
        • girishG girish

          Are you able to access just https://my-domain/abc.php ? Did you put some custom htaccess or apache configuration ? What is it saying in the logs?

          S Offline
          S Offline
          shrey
          wrote on last edited by
          #3

          @girish

          These are the files, in the public folder:
          f1148de8-5798-484b-baa7-802b163d87e3-image.png

          There is no .htaccess yet.

          I'm able to access my-domain/index.html & my-domain/a.txt, but not my-domain/api.php.

          Error logs:

          Nov 09 21:53:43[Thu Nov 09 16:23:43.458067 2023] [php:error] [pid 34] [client 122.180.29.153:43096] PHP Fatal error: Uncaught Error: Class "Tqdev\\PhpCrudApi\\Config" not found in /app/data/public/api.php:12740\nStack trace:\n#0 {main}\n thrown in /app/data/public/api.php on line 12740
          Nov 09 21:53:43122.180.29.153 - - [09/Nov/2023:16:23:43 +0000] "GET /api.php HTTP/1.1" 500 - "-" "PostmanRuntime/7.34.0"
          
          girishG 1 Reply Last reply
          0
          • S shrey

            @girish

            These are the files, in the public folder:
            f1148de8-5798-484b-baa7-802b163d87e3-image.png

            There is no .htaccess yet.

            I'm able to access my-domain/index.html & my-domain/a.txt, but not my-domain/api.php.

            Error logs:

            Nov 09 21:53:43[Thu Nov 09 16:23:43.458067 2023] [php:error] [pid 34] [client 122.180.29.153:43096] PHP Fatal error: Uncaught Error: Class "Tqdev\\PhpCrudApi\\Config" not found in /app/data/public/api.php:12740\nStack trace:\n#0 {main}\n thrown in /app/data/public/api.php on line 12740
            Nov 09 21:53:43122.180.29.153 - - [09/Nov/2023:16:23:43 +0000] "GET /api.php HTTP/1.1" 500 - "-" "PostmanRuntime/7.34.0"
            
            girishG Offline
            girishG Offline
            girish
            Staff
            wrote on last edited by
            #4

            @shrey said in Unable to access file publicly:

            PHP Fatal error: Uncaught Error: Class "Tqdev\PhpCrudApi\Config" not found in

            The above is the error. There is no such class.

            S 1 Reply Last reply
            1
            • girishG girish

              @shrey said in Unable to access file publicly:

              PHP Fatal error: Uncaught Error: Class "Tqdev\PhpCrudApi\Config" not found in

              The above is the error. There is no such class.

              S Offline
              S Offline
              shrey
              wrote on last edited by
              #5

              @girish said in Unable to access file publicly:

              @shrey said in Unable to access file publicly:

              PHP Fatal error: Uncaught Error: Class "Tqdev\PhpCrudApi\Config" not found in

              The above is the error. There is no such class.

              Indeed, there's some issue in the code of the api.php itself, which is the main cause.

              Thanks!

              1 Reply Last reply
              1
              • S shrey has marked this topic as solved on
              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