Changing HTTPd Port

Discussion in 'Tips/Tricks/Mods' started by BlueStream, Jan 27, 2007.

  1. BlueStream

    BlueStream New Member

    I want to change the httpd port. (not the Control Panel httpd port) How do I do so?

    I tried changing /etc/httpd/conf/httpd.conf to 8887 (what I want it to be) and after configuring the firewall and restarting httpd, it "works" but the page that appears is the default Fedora Core page.

    I also tried changing all the lines in the vhosts_ispconfig.conf file even though I didn't think that was the right place to change but that didn't work either.

    I even tried putting the custom directive of Listen 8887 for my website. But it didn't work.

    After reading similar questions from the past, I find either they do not work or refer to files that do not exist.

  2. falko

    falko Super Moderator ISPConfig Developer

    Your changes get overwritten by ISPConfig. You must change the port in the function make_vhost() in /root/ispconfig/scripts/lib/config.lib.php.
  3. BlueStream

    BlueStream New Member

    Hi Falko..

    Thanks for that. After changing both the "Listen" directive in /etc/httpd/conf/httpd.conf and every line in /root/ispconfig/scripts/lib/config.lib.php with the word 80, it now works.

    But now my control panel tells me that the webserver is offline. It's just a minor annoyance though because I know httpd is running. I'm guessing that it's just the monitoring software looking at the wrong port. Where might I change that too?
  4. till

    till Super Moderator Staff Member ISPConfig Developer

    You can change the port in the checkservices plugin in /home/admispconfig/ispconfig/lib/plugins/check_services.plugin.php and /home/admispconfig/ispconfig/lib/plugins/check_services_adm.plugin.php

Share This Page