Be part of JetBrains PHPverse 2026 on June 9 – a free online event bringing PHP devs worldwide together.

iboosensei's avatar

Laragon port trouble

Hello, I have a trouble qith Laragon. The Apache server can't start because the port 80 is used by another service. when I change the port to 8000, 8080 or 81, I get a "This page of the [SiteAddress] site was not found". But when I type : "SiteAddress:81" for example, its works.

I don't understand what's going wrong.

0 likes
3 replies
tykus's avatar

Port 80 is implied but not explicit in all non-secure browser requests; whenever you choose to use an unused port (e.g. 81), you must tell the browser to connect on that port instead of the default.

vincej's avatar

Have you looked at your virtual hosts file? These stipulate the port you are using. Perhaps try changing the virtual hosts fie to an alternative port. Right click Apache and select 'sites enabled'

iboosensei's avatar

here is the content of one of my 'site enabled' files :

<VirtualHost *:81> 
    DocumentRoot "C:/laragon/www/novatest6/public/"
    ServerName novatest6.test
    ServerAlias *.novatest6.test
    <Directory "C:/laragon/www/novatest6/public/">
        AllowOverride All
        Require all granted
    </Directory>
</VirtualHost>

# If you want to use SSL, enable it by going to Menu > Apache > SSL > Enabled

I tried to delete the '81' but it didn't work.

Please or to participate in this conversation.