Port 80 (http) printing php code

#1
Hello,

I've very new to Litespeed and so far love it! All works amazingly fast on port 443(HTTPS), but on port 80 (HTTP) the browser prints the PHP code rather than executing it.

Screenshot 2022-05-25 at 16.21.11.png

Can anyone point me in the right direction, I'm a bit of a noob and very new to servers.

Here's what's on port 80,

Code:
root@openlitespeed-yter-vm:/home/info# netstat -tulpn | grep :80
tcp        0      0 0.0.0.0:8088            0.0.0.0:*               LISTEN      22981/openlitespeed
tcp        0      0 0.0.0.0:8088            0.0.0.0:*               LISTEN      22981/openlitespeed
tcp        0      0 0.0.0.0:8088            0.0.0.0:*               LISTEN      22981/openlitespeed
tcp        0      0 0.0.0.0:8088            0.0.0.0:*               LISTEN      22981/openlitespeed
tcp        0      0 0.0.0.0:8088            0.0.0.0:*               LISTEN      22981/openlitespeed
tcp        0      0 0.0.0.0:8088            0.0.0.0:*               LISTEN      22981/openlitespeed
tcp        0      0 0.0.0.0:8088            0.0.0.0:*               LISTEN      22981/openlitespeed
tcp        0      0 0.0.0.0:8088            0.0.0.0:*               LISTEN      22981/openlitespeed
tcp6       0      0 :::80                   :::*                    LISTEN      606/apache2
And port 443,

Code:
root@openlitespeed-uytu-vm:/home/info# netstat -tulpn | grep :443
tcp        0      0 0.0.0.0:443             0.0.0.0:*               LISTEN      23011/openlitespeed
tcp        0      0 0.0.0.0:443             0.0.0.0:*               LISTEN      23011/openlitespeed
tcp        0      0 0.0.0.0:443             0.0.0.0:*               LISTEN      23011/openlitespeed
tcp        0      0 0.0.0.0:443             0.0.0.0:*               LISTEN      23011/openlitespeed
tcp        0      0 0.0.0.0:443             0.0.0.0:*               LISTEN      23011/openlitespeed
tcp        0      0 0.0.0.0:443             0.0.0.0:*               LISTEN      23011/openlitespeed
tcp        0      0 0.0.0.0:443             0.0.0.0:*               LISTEN      23011/openlitespeed
tcp        0      0 0.0.0.0:443             0.0.0.0:*               LISTEN      23011/openlitespeed
udp        0      0 0.0.0.0:443             0.0.0.0:*                           23011/openlitespeed
udp        0      0 0.0.0.0:443             0.0.0.0:*                           23011/openlitespeed
udp        0      0 0.0.0.0:443             0.0.0.0:*                           23011/openlitespeed
udp        0      0 0.0.0.0:443             0.0.0.0:*                           23011/openlitespeed
udp        0      0 0.0.0.0:443             0.0.0.0:*                           23011/openlitespeed
udp        0      0 0.0.0.0:443             0.0.0.0:*                           23011/openlitespeed
udp        0      0 0.0.0.0:443             0.0.0.0:*                           23011/openlitespeed
udp        0      0 0.0.0.0:443             0.0.0.0:*                           23011/openlitespeed
Many thanks
William



EDIT:

This is now fixed. I stopped the apache server and then restarted litespeed. This then attached litespeed to port 80.
 
Last edited:
Top