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.

最新文章

  1. 【转】成为Java顶尖程序员 ,看这10本书就够了
  2. python---tuple元祖
  3. opencv单目摄像机标定(一)
  4. Mac下载安装Android Studio教程
  5. 线程池原理及创建(C++实现)
  6. 【poj1061-青蛙的约会】拓展欧几里得-不定方程
  7. js,正则应用
  8. umask设置导致程序权限不足的问题
  9. IDL实现主成分变化(PCA)
  10. 九章算法系列(#2 Binary Search)-课堂笔记
  11. APICloud界面间跳转
  12. 前端架构之路:使用Vue.js开始第一个项目
  13. github 项目绑定自己的域名
  14. 5.volatile的应用
  15. C# DataTable抽取Distinct数据(不重复数据)
  16. Apex 中操作用户和组
  17. 笔记本电脑没有Pause键,远程桌面无法全屏
  18. 怎样从外网访问内网Web?
  19. execl 导入
  20. ubuntu安装中文输入法必看

热门文章

  1. 【Oracle】ORA-00600: [kfgFinalize_2]
  2. 在C++中使用golang的协程
  3. Java Web目录
  4. php与mysql的链接到底用mysql 还是mysqli,pdo
  5. MAMP Pro3.5注册码
  6. javascript冷知识
  7. 3.6html学习笔记之样式选择
  8. C#三大支柱之继承
  9. 【Shell脚本学习14】Shell echo命令
  10. linux服务监控脚本