surveyjs-php icon indicating copy to clipboard operation
surveyjs-php copied to clipboard

Not able to run in the browser

Open erickvasilev opened this issue 2 years ago • 0 comments

Hello, I'm following the installation instructions until it able to running from the terminal:

root@ip-172-6-1-8:/var/www/surveyjs-php# composer start
Do not run Composer as root/super user! See https://getcomposer.org/root for details
Continue as root/super user [yes]? yes
> php -S localhost:8000 -t public
[Thu Sep 14 23:36:26 2023] PHP 8.1.23 Development Server (http://localhost:8000) started

I already open the port 8000

Nmap scan report for localhost (127.0.0.1)
Host is up (0.000068s latency).
Not shown: 997 closed ports
PORT     STATE SERVICE
22/tcp   open  ssh
443/tcp  open  https
8000/tcp open  http-alt

but fail to connect when accessing from the browser, ex: 123.456.789:8000 is this installation require nginx or apache in the server to run?

I tried by changing "localhost" to my server IP address in the composer.json, and tried by changing the port to 80, also not working:

> php -S 123.456.789:8000 -t public
[Thu Sep 14 23:50:00 2023] Failed to listen on 123.456.789:8000 (reason: Cannot assign requested address)
Script php -S 13.212.138.168:8000 -t public handling the start event returned with error code 1

thanks

erickvasilev avatar Sep 15 '23 00:09 erickvasilev