title: The zend-expressive-api is all set. How can I get it to work on my apache webserver?
body: <p>So I just finished the implementation of a REST API for my business client using this proposed skeleton as a start:
  <a href="https://github.com/ezimuel/zend-expressive-api" rel="nofollow noreferrer">https://github.com/ezimuel/zend-expressive-api</a></p>
  
  <p>After programming the API as I was required by my client, I managed to get it to work on localhost by opening a console terminal in the root folder of the project and typing:</p>
  
  <p>php -S 0.0.0.0:8080 -t c:/wamp64/www/myAPI/public/</p>
  
  <p>After that, all I had to do in order to see it working was through a HTTPie window by tiping:</p>
  
  <p>http GET :8080/api/users</p>
  
  <p>...and so on. Works like a charm.</p>
  
  <p>So now I have got to publish it on my Apache Webserver, shared hosting, which means no root access whatsoever.</p>
  
  <p>The problem is, I can't get it to work because when I try direct access to the folder <a href="http://myswebsite.com/myapi/public" rel="nofollow noreferrer">http://myswebsite.com/myapi/public</a> the script returns:</p>
  
  <p>Cannot GET <a href="http://myswebsite.com/myapi/public/" rel="nofollow noreferrer">http://myswebsite.com/myapi/public/</a></p>
  
  <p>I expected to see an output in hal+json containing the list of users.
  When in localhost I can do:</p>
  
  <p>http GET :8080/api/users</p>
  
  <p>The script then returns:</p>
  
  <p>HTTP/1.1 200 OK
  Connection: close
  Content-Type: application/hal+json
  Date: Mon, 07 May 2018 14:54:46 +0200
  Host: localhost:8080</p>
  
  <pre><code>{
      "_embedded": {
          "users": [
              {
                  "_links": {
                      "self": {
                          "href": "http://localhost:8080/api/users/1"
                      }
                  },
                  "email": "foo@host.com",
                  "id": "1",
                  "name": "Foo"
              }
          ]
      },
      "_links": {
              "self": {
                  "href": "http://localhost:8080/api/users?page=1"
              }
          },
          "_page": 1,
          "_page_count": 1,
          "_total_items": 1
  }
  </code></pre>
  
  <p>My goal: I would like to be able to have the same results when accessing via URL on internet, PHP + Apache + MySql shared hosting.</p>
  
  <p>Any help would be appreciated. Thanks in advance.</p>