Nov 21, 2009

Apache Default Port - How to change it?

free web hosting
Open Discussion > MODERATED AREA > Computers > Programming Languages > PHP Programming

Apache Default Port - How to change it?

SamiFX
I need help to know how to change the port number of Apache server which is I think Port:80, note that I'm using XAMPP Control Panel.

and thanks in advance smile.gif

Comment/Reply (w/o sign-up)

rvalkass
I don't know how to do it with XAMPP control panel, but I do know how to do it the old fashioned way smile.gif

If you are on windows, open C:\Program Files\Apache Software Foundation\Apache2.2\conf and look for a file called httpd.conf. In that file, find the following section (line 53):

QUOTE
#
# Listen: Allows you to bind Apache to specific IP addresses and/or
# ports, instead of the default. See also the <VirtualHost>
# directive.
#
# Change this to Listen on specific IP addresses as shown below to
# prevent Apache from glomming onto all bound IP addresses (0.0.0.0)
#
#Listen 12.34.56.78:80
Listen 80


Simply change the number after the word Listen to the port you want it to use. Save the file and restart Apache. Be aware though that you will have to reconfigure any firewalls and routers to forward requests to your new port. Also, some people may have problems accessing your website if it is not on port 80 or the alternative 8080.

 

 

 


Comment/Reply (w/o sign-up)

Blessed
Greetings
thanx fot the nice answer man,
this helps me allot,
i will tri this later it think biggrin.gifbiggrin.gif

have a nice day peeps blessings

Comment/Reply (w/o sign-up)

Imtay22
A faster way to get to the httpd.conf file is if you are using Windows, go to

QUOTE
Start-> All Programs-> Apache HTTP Server 2.2.x-> Configure Apache Server-> Edit the httpd.conf Configuration File.


I believe that is faster. And thanks I always wondered how to do that.

Comment/Reply (w/o sign-up)

truefusion
When you change the port number from 80 (the default) to 8080, in order to access your website, you would have to include the port number in the address, for instance: http://localhost:8080/

Comment/Reply (w/o sign-up)

(G)XiM
Thanks:D - how to change the default apache port
Apache Default Port

Thanks for the tips :D

Ive been searchin for this for a long time...



Comment/Reply (w/o sign-up)

k_nitin_r
QUOTE (SamiFX @ May 31 2007, 02:48 PM) *
I need help to know how to change the port number of Apache server which is I think Port:80, note that I'm using XAMPP Control Panel.

and thanks in advance smile.gif



You have 2 files to change, one for the HTTP port 80 and another for the HTTPS port 443 so look for the configuration directive that starts with the keyword "Listen". The configuration files to look at are:
* C:\xampp\apache\conf\httpd.conf (Look for "Listen 80")
* C:\xampp\apache\conf\extra\httpd-ssl.conf (Look for "Listen 443")

Regards,
Nitin

Comment/Reply (w/o sign-up)

(G)rachi
how to change the port
Apache Default Port

I have tried all the ways, written above. But I found the same message. (Apache2 is used by(inetinfo.Exe) Please help -reply by rachi

Comment/Reply (w/o sign-up)



Got an Opinion! Express your Views! (no registration):-
Add your Reply/ Opinion/ Views/ Comments/ Suggestion/ Questions/ Queries etc.
Posts with decent grammar & English will be accepted and please refrain from profanities.
For asking a Question, We recommend you to sign-up (for free) so that you can track the topic easily.

Nature of your Post*: Opinion/ Reply/ Comments
Question/Query
Feedback to us.
       
Name   Email
Title/Question*

This textarea will convert to Rich-Text automatically (IE, Firefox, Chrome)

Similar Topics

Keywords : apache, default, port, change,

  1. Linux/ Apache /mod_rewrite Issue
    Error when accessing a file (4)
  2. Wamp Packages Needed To Test Scripts
    Set up Apache, PHP, etc on your machine (1)
    In order to test php scripts on your localhost machine, you require a system that includes php
    parsing. A WAMP set-up 'usually' includes a database server, and a database manager, too.
    For Windows machines, theses are usually referred to as WAMP because they include Apache, Mysql, and
    PHP for Windows, hence the acronym WAMP. Wikipedia has a listing of the available packages with
    details about the included versions and often a link to the wikipedia article describing them. The
    list can be found at http://en.wikipedia.org/wiki/Comparison_of_WAMPs Personally, I....
  3. Eclipse Php And Apache
    Eclipse php and Apache (1)
    Hi, I have apacher server installed already and was wondering if I can use it for Eclipse php
    testing. Is there a away to tell Eclipse php to use existing apache? I've looked in the
    preference of Eclipse and I can't find a standard apacher server (Apache HTTP Server Version
    2.2); it has like tom cat and other servers. ....
  4. Php Pages Permission On Apache Server
    PHP pages permission on Apache Server (1)
    Hello, I want to know what permissions for PHP pages should be given on Apache web server so that
    PHP pages can be executed. If PHP pages are in a folder, what permissions should be given for that
    folder? ....
  5. Php, Mysql, Apache
    (4)
    ok, i am hosting a smf (simple machines forum) and in order to do so, i need apache, mysql and php
    installed. so i got apachefriends xampp. it works, but idk where to go from there. am i ready to
    just host and stuff. or do i need to do a couple more things. basically what i need is a guide on
    how to set up a php website. or just confirmation that all i have to do is load the files onto the
    website, then im ready to go. thank you....
  6. Installing Apache/php/mysql
    Good Tutorial I found. (6)
    The first step is to download the packages : * Apache : apache.org * PHP : php.net
    * MySQL : mysql.com You should get the latest version of each packages. As for the example in
    this tutorial i'm using Apache 2.0.50 ( apache_2.0.50-win32-x86-no_ssl.msi ), PHP 4.3.10 (
    php-4.3.10-Win32.zip ) and MySQL 4.0.18 ( mysql-4.0.18-win.zip ). Now let's start the
    installation process one by one. * Installing Apache * Installing PHP * Modifying
    Apache Configuration * Installing MySQL * Modifying PHP Configuration File Installing Apac....
  7. Php5 And Apache Tomcat 5.x
    PHP5 with Apache Tomcat 5.x (3)
    Hello I'm working with JAVA and i want to use in the same application some of the prefabricated
    alications like Drupal, or PHPNuke, that are made with PHP, to make this i have to install PHP5
    (last version) and make it ork with my tomcat web server(ver 5.5.9 last version too, i think), but
    in the documentatio of PHP they mention tomcat versions 1.x and 2.x not the 5.x version. So the
    big question here is: How to makes work PHP5 with Apache Tomcat 5.x??? any help?? Thanks....
  8. Table Column Default Align Center?
    This is an easy question... (1)
    I'm just starting to use PHP, and I started with the CODE It worked, but it made the
    alignment to the center where I had originally left it as default (left align). Why? And how can I
    change this easily without having to edit all my pages. Thanks.....
  9. Installing Apache + Php5 + Mysql
    On Windows Sistems (0)
    We will use Apache 1.3.*, because it's not recommended that we run PHP on Apache 2.0 on wondows
    sistems. First, download the following programs: - Apache 1.3.* - MySQL 4.1.9 - PHP 5.0.3 2.
    Installation - Execute Apache's installation program and install it wherever you want, with the
    default options. - Extract the MySQL database on the same folder of apache (the same folder than
    htdocs) - Extract PHP on C:\php5 3. PHP Configurations Go to c:\php5 eand copy the file php5ts.dll
    to the following folders, according to your windows: - c:\windows\system (on Windo....
  10. Php & Apache Server
    PHP & Apache Server (7)
    I want to install PHP. For this I have downloaded Apache Server. But I am not able to configure it.
    If anybody knows how to configure it, please let me know. Without Apache Server I am not able to
    configure PHP. I have also tried one of the installation file available on internet which
    automatically performs all installation tasks, but it also does not solve my problem.....
  11. Restarting Apache With Exec Command
    apache restart (0)
    Hey im trying to restart apache throug a script and so far none of the php or perl scripts have
    worked and its just driving me mental restarting apache in the command window in windows is a
    simple as just typing apache -k restart and when i do that i works , but when i create a script to
    execute that command it fails, and when i try to create a script to execute a batch file that does
    exactly that it still fails, so im stranded will someone help me out please, coz this is really
    getting annoying.....

    1. Looking for apache, default, port, change,

Searching Video's for apache, default, port, change,
See Also,
advertisement


Apache Default Port - How to change it?

Affordable Web Hosting, Low cost Web Hosting - ComputingHost.com