View Full Version : Changing the default Port
impact1560
29th June 2007, 06:41
Question I looked at a couple of forums on how to get the default port from 80 to 8080 without luck. Can somebody please explain how to do this? Thank You
falko
29th June 2007, 19:51
In your main Apache configuration you must change Listen 80 to Listen 8080
Change 80 to 8080 in Vhosts_ispconfig.conf as well.
Restart Apache afterwards. And in the function make_vhost() in /root/ispconfig/scripts/lib/config.lib.php, you must change 80 to 8080,too.
impact1560
29th June 2007, 21:51
OK I changed the port in the Apache listen from 80 to 8080
then when i went to the /root/ispconfig/scripts/lib/config.lib.php to look for the other port to change i only found one place that I can change the port 80to 8080
if($apache_version == 2){
$fp_resource_config = "";
$fp_access_config = "";
$web_port = ":8080";
in the make_vhost() I don't have any port 80 there. I do have function make_vhost($server_id). When I now go back to the console the web server says it's offline. I did restart the server.
falko
30th June 2007, 17:34
OK I changed the port in the Apache listen from 80 to 8080Did you change Vhosts_ispconfig.conf as well?
I do have function make_vhost($server_id).That's the function I'm talking about. :)
When I now go back to the console the web server says it's offline. I did restart the server.Any errors in Apache's error log? What's the output of httpd -t?
impact1560
30th June 2007, 18:00
When I change make_vhost($server_id) do it suppost to look like this make_vhost($8080) or make_vhost(8080)?
Yes I change all the ports 80 to port 8080 in the
/etc/httpd/conf/vhosts/Vhosts_ispconfig.conf
When I run the httpd -t command it say Syntax OK
till
30th June 2007, 18:34
When I change make_vhost($server_id) do it suppost to look like this make_vhost($8080) or make_vhost(8080)?
You can not set the port number as parameter of the make_vhost function!
You must change the code inside this functoon to write the port 8080 instead of 80.
Yes I change all the ports 80 to port 8080 in the
/etc/httpd/conf/vhosts/Vhosts_ispconfig.conf
Thats a bad idea. Never change this file manually, all your changes will be removed by ISPConfig.
vBulletin® v3.8.4, Copyright ©2000-2009, Jelsoft Enterprises Ltd.