• Categories
    Category
  • Categories
    Category
  • News
  • Tutorials
  • Forums
  • Tags
  • Users
Tutorial 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
5791

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

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

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

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

How To Install AnyDesk on Centos 7
How To Install AnyDesk on Centos 7
Apr 2, 2018
How to install Tiki Wiki CMS Groupware on CentOS 7
How to install Tiki Wiki CMS Groupware on CentOS 7
May 31, 2018
How to install PHP ImageMagick on CentOS 7
How to install PHP ImageMagick on CentOS 7
Nov 4, 2017
How to Upgrade and Downgrade the PHP Versions on CentOS 7.6
How to Upgrade and Downgrade the PHP Versions on CentOS 7.6
Jun 4, 2019
How to install Apache from Source Code on CentOS 7
How to install Apache from Source Code on CentOS 7
Oct 21, 2017
How to enable or disable repositories in CentOS
How to enable or disable repositories in CentOS
Mar 28, 2018
How to install AWStats on CentOS 7
How to install AWStats on CentOS 7
Dec 8, 2017
How to install Apache JMeter in CentOS 7
How to install Apache JMeter in CentOS 7
Mar 24, 2017

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

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

CentOS
connor class=
How To Completely Remove Apache package On CentOS 7.6
May 14, 2019
CentOS
ceriaimmaculate class=
setfacl : command not found
Jan 3, 2018
CentOS
mason class=
Error getting authority: Error initializing authority: Could not connect: No such file or directory (g-io-error-quark, 1)
Nov 20, 2018
CentOS
landon class=
Command to find SNMP Version
May 28, 2018
CentOS
arjitharon class=
cannot start minio service help
Mar 10, 2018
Apache tomcat
AadrikaAnshu class=
Cannot find ./catalina.sh The file is absent or does not have execute permission This file is needed to run this program
Jun 17, 2019
gitlab
caden class=
Insufficient space in download directory /var/cache/yum/x86_64/6/base/packages
Jul 22, 2019
OpenVAS
frank class=
Could not retrieve mirrorlist http://mirrorlist.centos.org/?release=7&arch=x86_64&repo=os&infra=stock error was 14: curl#6 - "Could not resolve host: mirrorlist.centos.org; Unknown error"
Dec 20, 2018
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 legeek ?
Installation of the call center module

hello

I wish to install a call center in virtual with issabel, I downloaded the latest version of it , but I don' t arrive to install the call center module in issabel. please help me

thanks!

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.