I want to run the Laravel API with a specified port 5000. Because there is another websocket also running on port 8090.
I have done this regular way on Ubuntu 18.04 server with the following vhosts
/etc/apache2/sites-available/206.189.xxx.xxx.conf
/etc/hosts
/etc/ports.conf
How can I add these configurations to WHM and cPanel?
I have done this regular way on Ubuntu 18.04 server with the following vhosts
/etc/apache2/sites-available/206.189.xxx.xxx.conf
Code:
<VirtualHost *:5000>
ServerName 206.189.xxx.xxx
ServerAdmin webmaster@localhost
DocumentRoot /var/www/myapi/public
ErrorLog ${APACHE_LOG_DIR}/error.log
CustomLog ${APACHE_LOG_DIR}/access.log combined
<Directory /var/www/myapi>
AllowOverride All
</Directory>
</VirtualHost>
Code:
127.0.0.1 206.189.xxx.xxx
Code:
Listen 5000 #Newly added
How can I add these configurations to WHM and cPanel?
Last edited by a moderator: