Jul 25, 2008

Apache Default Port - How to change it?

Free Web Hosting, No Ads > CONTRIBUTE > Computers > Programming Languages > PHP Programming

free web hosting

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

Reply

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.

 

 

 


Reply

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

Reply

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.

Reply

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/

Reply



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*

(Maximum characters: 10,000)
You have characters left.
Confirm Code:

Recent Queries:-
  1. change apache port number - 3.60 hr back. (1)
  2. how to change xamp default port? - 5.96 hr back. (2)
  3. apache 2.2 windows change port - 8.38 hr back. (1)
  4. apache2 set default port - 9.27 hr back. (1)
  5. change port apache to 8080 - 10.55 hr back. (1)
  6. how to change port for apache from 80 to 8080 - 13.84 hr back. (1)
  7. change default port apache2 - 15.31 hr back. (1)
  8. how to start apache with different port in xampp - 18.33 hr back. (1)
  9. change apache default port in xampp - 24.27 hr back. (1)
  10. how to change port in apache - 6.96 hr back. (2)
  11. apache change port 80 8080 - 27.57 hr back. (1)
  12. default port, apache - 33.22 hr back. (1)
  13. change port apache windows - 34.36 hr back. (2)
  14. how to change port apache - 35.05 hr back. (1)
Similar Topics

Keywords : apache, default, port, change,

  1. Wamp Packages Needed To Test Scripts
    Set up Apache, PHP, etc on your machine (1)
  2. 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. ....
  3. 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? ....
  4. 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....
  5. 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....
  6. Php5 And Apache Tomcat 5.x
    PHP5 with Apache Tomcat 5.x (1)
    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....
  7. Table Column Default Align Center?
    This is an easy question... (1)
    I'm just starting to use PHP, and I started with the CODE <?php
    include("page.html"); ?> 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.....
  8. 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&#....
  9. 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.....
  10. 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,
advertisement



Apache Default Port - How to change it?



 

 

 

 

ADD REPLY / Got an Opinion! Remove these ADs! RAPID SEARCH! Free Web Hosting [X]
Express your Opinions, Thoughts or Contribute more info. to help others.
Ask your Doubts & Queries to get answers, So that "Together We can help others!"
Register FREE for AD-FREE forum, Create your own topics, Ask Questions, track topics, setup subscriptions & notifications and Get a Free Website w/ Email and FTP.
500MB Space *No Ads*, CPanel, FTP, PHP, MySQL, EMails - 100% FREE