• Categories
    Category
    {{ postCtrl.tags }}
    • {{ category.tag_type }}

      • {{tag.tag_name}}
      • View more
  • Categories
    Category
    {{ postCtrl.tags }}
    • {{ category.tag_type }}

      • {{tag.tag_name}}
      • View more
  • News
  • Tutorials
  • Forums
  • Tags
  • Users
Tutorial News Comments FAQ Related Articles

How to Change the Default Port Number of Lighttpd Web Server 1.4.54 on CentOS 7.6

  • 01:18 lighttpd -version
  • 01:24 systemctl status lighttpd
  • 01:34 netstat -tulpn | grep lighttpd
  • 01:44 vim /etc/lighttpd/lighttpd.conf
  • 02:03 systemctl restart lighttpd.service
  • 02:10 netstat -tulpn | grep lighttpd
{{postValue.id}}

Change the default port number of Lighttpd 1.4.54

Information

Document root Directory /var/www

Main COnfiguration file /etc/lighttpd/lighttpd.conf

Customised Configuration file /etc/lighttpd/conf.d/<*>.conf

Log /var/log/lighttpd

Default port number 80

Procedure:

Check the version of lighttpd as follows

root@linuxhelp ~]# lighttpd -version
lighttpd/1.4.54 (ssl) - a light and fast webserver

Check the status of lighttpd service

root@linuxhelp ~]# systemctl status lighttpd
● lighttpd.service - Lightning Fast Webserver With Light System Requirements
   Loaded: loaded (/usr/lib/systemd/system/lighttpd.service; enabled; vendor preset: disabled)
   Active: active (running) since Wed 2019-06-19 15:46:16 IST; 1h 19min ago
 Main PID: 559 (lighttpd)
    Tasks: 1
   CGroup: /system.slice/lighttpd.service
           └─559 /usr/sbin/lighttpd -D -f /etc/lighttpd/lighttpd.conf

Check the listening port number of lighttpd using netstat

[root@linuxhelp ~]# netstat -tulpn | grep lighttpd
tcp6       0      0 :::80                   :::*                    LISTEN      559/lighttpd        

Edit the configuration file of lighttpd

[root@linuxhelp ~]# vim /etc/lighttpd/lighttpd.conf
Server port=8989

Restart the service of Lighttpd as follows

[root@linuxhelp ~]# systemctl restart lighttpd.service

Verify the listening port number of lighttpd

[root@linuxhelp ~]# netstat -tulpn | grep lighttpd
tcp6       0      0 :::8989                 :::*                    LISTEN      3708/lighttpd       

Open the browser and type “localhost:8989” as follows. Snap (1) Verify the lighttpd with port number 80 Snap (2) With this,Default port number of Lighttpd web server 1.4.54 version has been changed successfully and the process ends here.

Tags:
isaac
Author: 

Comments ( 0 )

No comments available

Add a comment
{{postCtrl.cmtErrMsg}}

Frequently asked questions ( 5 )

Q

What does Ruby On Rails used for in lighttpd?

A

Ruby on rails is an open source framework for web development in ruby which is an Object oriented programming language in lighttpd.

Q

Where could i access the logs of lighttpd?

A

Under /var/log/lighttpd ,you could access the logs of lighttpd

Q

How to change the port number of lighttpd?

A

Edit the line "server port= in the /etc/lighttpd/lighttpd.conf and save the file to change the port number of lighttpd by restarting the service of lighttpd.

Q

What does FASTCGI server in lighttpd?

A

FASTCGI program manages multiple CGI requests within a single proccess which saves program instructions for each request in lighttpd.

Q

What does CGI mean in lighttpd?

A

The COmmon gateway Interface is a standard way for a web server which passes web user's request to an application program and gets the data from the application to the user in lighttpd.

Load more

Back To Top!
Rank
User
Points

Top Contributers

userNamenaveelansari
135850

Top Contributers

userNameayanbhatti
92510

Top Contributers

userNamehamzaahmed
32150

Top Contributers

1
userNamelinuxhelp
31040

Top Contributers

userNamemuhammadali
24500
Can you help David Lopez Guillen ?
Ayuda urgente instale SSL para servidor Opensuse y ahora no funciona tengo servicio web

hola segui este tutorial para tener un certificado ssl y ahora no se ve mi app en la red, espero alguien pueda ayudarme, tengo M9oodle en3.5 en un servidor open suse y ahora no funciona por favor ayuda.

https://www.linuxhelp.com/how-to-create-ssl-certificate-in-opensuse

Networking
  • Routing
  • trunk
  • Netmask
  • Packet Capture
  • domain
  • HTTP Proxy
Server Setup
  • NFS
  • KVM
  • Memory
  • Sendmail
  • WebDAV
  • LXC
Shell Commands
  • Cloud commander
  • Command line archive tools
  • last command
  • Shell
  • terminal
  • Throttle
Desktop Application
  • Linux app
  • Pithos
  • Retrospect
  • Scribe
  • TortoiseHg
  • 4Images
Monitoring Tool
  • Monit
  • Apache Server Monitoring
  • EtherApe 
  • Arpwatch Tool
  • Auditd
  • Barman
Web Application
  • Nutch
  • Amazon VPC
  • FarmWarDeployer
  • Rukovoditel
  • Mirror site
  • Chef
Contact Us | Terms of Use| Privacy Policy| Disclaimer
© 2025 LinuxHelp.com All rights reserved. Linux™ is the registered trademark of Linus Torvalds. This site is not affiliated with linus torvalds in any way.