PDA

View Full Version : Changing HTTPd Port


BlueStream
27th January 2007, 05:16
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.

TIA,
Shawn.

falko
28th January 2007, 19:50
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.

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

BlueStream
29th January 2007, 02:56
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?

till
29th January 2007, 07:51
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