Change http port in bitnami stack

时间:2021-09-08 12:06:09

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 :

the output could be like:

tcp               0.0.0.0:              0.0.0.0:*               LISTEN      /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 *:
NameVirtualHost *:
</IfVersion> <VirtualHost _default_:>
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.

Change http port in bitnami stack的更多相关文章

  1. CHANGE DEFAULT FTP PORT FOR VSFTP

    http://twincreations.co.uk/change-default-ftp-port-for-vsftp/ http://www.cnblogs.com/kuliuheng/p/320 ...

  2. GitLab一键式安装bitnami

    https://bitnami.com/stack/gitlab/installer https://bitnami.com/redirect/to/96764/bitnami-gitlab-8.5. ...

  3. GitLab一键式安装bitnami 专题

    git lab developer角色不能提交到master分支的问题 错误提示: git -c diff.mnemonicprefix=false -c core.quotepath=false p ...

  4. Changing SharePoint Default port &lpar; 80 &rpar; to another port &lpar; 79 &rpar;&period;

      Introduction In this How-To I will change my port from 80 to 79, probably because I want to host s ...

  5. Seeking USB Serial Com Port in Windows Automatically &colon; via PID VID

    After you read previous article, you might know how to operate a com port in Windows.    But that ex ...

  6. Linux Tomcat 80端口 Port 80 required by Tomcat v8&period;5 Server at localhost is already in use&period;

    Port 80 required by Tomcat v8.5 Server at localhost is already in use. The server may already be run ...

  7. Several ports &lpar;8005&comma; 8080&comma; 8009&rpar; required by Tomcat v8&period;5 Server at localhost are already in use&period; The server may already be running in another process&comma; or a system process may be using the port&period; To sta

    eclipse出现:Several ports (8005, 8080, 8009) required by Tomcat v8.5 Server at localhost are already i ...

  8. 《Note --- Unreal --- MemPro (CONTINUE&period;&period;&period; &period;&period;&period;)》

    Mem pro 是一个主要集成内存泄露检测的工具,其具有自身的源码和GUI,在GUI中利用"Launch" button进行加载自己待检测的application,目前支持的平台为 ...

  9. How to Modify Public Network Information including VIP in Oracle Clusterware &lpar;文档 ID 276434&period;1&rpar;

    APPLIES TO: Oracle Database - Enterprise Edition - Version 11.2.0.3 to 12.1.0.2 [Release 11.2 to 12. ...

随机推荐

  1. 解决Ubuntu &quot&semi;E&colon; 软件包 vim 还没有可供安装的候选者&quot&semi;问题

    sudo apt-get update 试着运行这段代码后再尝试sudo apt-get install 安装语句

  2. Linux下python升级至2&period;7

    1. 下载python源码包 wget http://www.python.org/ftp/python/2.7.3/Python-2.7.3.tgz2. 解压 tar -xjf Python-2.7 ...

  3. 关于read only file system问题解决方案

    切换到超级用户sudo -sadb kill-serveradb rebootadb remount

  4. RPI学习--wiringpi&lowbar;API

    reference: https://projects.drogon.net/raspberry-pi/wiringpi/functions/ Functions (API) Some of the ...

  5. uva 10817 Headmaster&amp&semi;&num;39&semi;s Headache 出发dp 位计算

    出发dp,用在一些议题的操作非常~  给出s个课程.m个教师.n个求职者,教师必须招聘.然后招聘一些求职者,使得每一门课都至少有两个老师能教.问题就转换成了招聘哪些求职者使得花费最少.由于s范围小于8 ...

  6. 进行API开发选gRPC还是HTTP APIs&quest;

    上一篇文章我带着大家体验了一把<ASP.NET Core 3.0 上的gRPC服务模板初体验(多图)>,如果有兴趣的可以点击链接进行查看,相信跟着做的你,也是可以跑起来的.这篇文章我们将一 ...

  7. firewall-cmd 常用命令

    # 开启防火墙 systemctl start firewalld.service # 防火墙开机启动 systemctl enable firewalld.service # 关闭防火墙 syste ...

  8. oracle可重复执行脚本&lpar;添加字段&rpar;

    --添加债券期限字段 declare cn integer; begin cn := 0; select count(*) into cn from user_tab_cols t where t.t ...

  9. &lbrack;No0000117&rsqb;visual studio 调试WebForm 显示 HTTP Error 403&period;14 - Forbidden Web 服务器被配置为不列出此目录的内容。

    调试界面如下: 解决办法1:右键设置起始页. 影响文件: 解决方案2:Web.config中添加默认页面配置: <system.webServer> <defaultDocument ...

  10. Ecshop表结构 order&lowbar;info

    CREATE TABLE IF NOT EXISTS `ecs_order_info` (  `order_id` mediumint(8) unsigned NOT NULL AUTO_INCREM ...