Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Start HTTP server on port 8000 #73

Merged
merged 2 commits into from
Apr 30, 2024
Merged

Conversation

UNILORN
Copy link
Contributor

@UNILORN UNILORN commented Apr 30, 2024

#71 could not start the server on port 80 if you are not a privileged user due to the following error
In the case of Docker Container, there is little need for the server port to be port 80, so we have changed it to port 8000.

2024-04-30 01:25:38,428 INFO success: octane_00 entered RUNNING state, process has stayed up for > than 1 seconds (startsecs)                                                                                                                                                        
                                                                                                                                                                                                                                                                                     
   INFO  Server running…                                                                                                                                                                                                                                                             
                                                                                                                                                                                                                                                                                     
  Local: http://0.0.0.0:80                                                                                                                                                                                                                                                           
                                                                                                                                                                                                                                                                                     
  Press Ctrl+C to stop the server                                                                                                                                                                                                                                                    
                                                                                                                                                                                                                                                                                     
PHP Fatal error:  Uncaught Swoole\Exception: failed to listen server port[0.0.0.0:80], Error: Permission denied[13] in /var/www/html/vendor/laravel/octane/bin/createSwooleServer.php:10                                                                                             
Stack trace:                                                                                                                                                                                                                                                                         
#0 /var/www/html/vendor/laravel/octane/bin/createSwooleServer.php(10): Swoole\Server->__construct()                                                                                                                                                                                  
#1 /var/www/html/vendor/laravel/octane/bin/swoole-server(35): require('...')                                                                                                                                                                                                         
#2 {main}                                                                                                                                                                                                                                                                            
  thrown in /var/www/html/vendor/laravel/octane/bin/createSwooleServer.php on line 10                                                                                                                                                                                                
Fatal error: Uncaught Swoole\Exception: failed to listen server port[0.0.0.0:80], Error: Permission denied[13] in /var/www/html/vendor/laravel/octane/bin/createSwooleServer.php:10

@smortexa smortexa changed the title 🐛 fix: start swoole server 80 to 8000 Start HTTP server on port 8000 Apr 30, 2024
@smortexa smortexa merged commit 860a6fb into exaco:main Apr 30, 2024
6 checks passed
@smortexa
Copy link
Member

Thanks!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants