Change http port in bitnami stack

本文介绍了一位用户在安装Bitnami红矿(Redmine)及WordPress过程中遇到的问题,即HTTP服务默认使用的80端口被占用。文章详细记录了将已占用的80端口释放,并重新配置Bitnami堆栈中Apache服务使用80端口的方法。

摘要生成于 C知道 ,由 DeepSeek-R1 满血版支持, 前往体验 >

My case goes like this.

I installed bitnami redmine first with port 80 for http service, but got problems and failed. 

However, when I tried to give a second shot, I was told that port 80 was not available, so instead I used port 81. The app, redmine, worked fine with an IP addr + port 81.

but recently as I want to install bitnami wordpress upon the bitnami stack, the domain has to go with the port 81, which seems really ugly.  

so I decided to change the port 81 back to 80, the default port http used. Here are the steps to follow.

1. find the 80 port user, stop it

a couple of tools can be found in this page.

netstat -tulpn | grep :80

the output could be like:

tcp        0      0 0.0.0.0:80              0.0.0.0:*               LISTEN      1607/apache2

kill the PID 1607 or stop the httpd service.

 

2. change the port in the configure files

2.1 find the bitnami http.conf file

should be in the apache2/conf/ folder

>vim httpd.conf

#Listen 12.34.56.78:80
Listen 80

change the linstenning port to 80.

2.2 find the bitnami.conf

should be in the /apache2/conf/bitnami/ folder

>vim bitnami.conf

<IfVersion < 2.3 >
  NameVirtualHost *:80
  NameVirtualHost *:444
</IfVersion>

<VirtualHost _default_:80>
  DocumentRoot "/opt/redmine/apache2/htdocs"
  <Directory "/opt/redmine/apache2/htdocs">

change the, NameVirtualHost, VirtualHost _default_,   into 80.

 

3. restart bitnami stack

ctlscript.sh restart

now the httpd port was reset to the default 80 again.

 

Tricky thing here is that you use bitnami stack, if you only change the httpd.conf, it won't work.

blog written in linux os.

 

 

 

转载于:https://www.cnblogs.com/geosky/p/bitnami_http_port.html

评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值