Changing the default Port

Discussion in 'General' started by impact1560, Jun 29, 2007.

  1. impact1560

    impact1560 New Member

    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
  2. falko

    falko Super Moderator ISPConfig Developer

    In your main Apache configuration you must change
    Listen 80
    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.
  3. impact1560

    impact1560 New Member

    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.
  4. falko

    falko Super Moderator ISPConfig Developer

    Did you change Vhosts_ispconfig.conf as well?

    That's the function I'm talking about. :)

    Any errors in Apache's error log? What's the output of
    httpd -t
  5. impact1560

    impact1560 New Member

    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

    When I run the httpd -t command it say Syntax OK
  6. till

    till Super Moderator Staff Member ISPConfig Developer

    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.

    Thats a bad idea. Never change this file manually, all your changes will be removed by ISPConfig.

Share This Page