hosted by liquidweb


Go Back   Web Hosting Talk : Web Hosting Main Forums : Hosting Software and Control Panels : Change Apache Default Port in Plesk
Reply

Forum Jump

Change Apache Default Port in Plesk

Reply Post New Thread In Hosting Software and Control Panels Subscription
 
Send news tip View All Posts Thread Tools Search this Thread Display Modes
  #1  
Old
Junior Guru Wannabe
 
Join Date: Jun 2007
Posts: 55

Change Apache Default Port in Plesk


Struggling to change the default port for Apache in Plesk.

I know I can change the "Listen" directive in httpd.conf but this does not reflect in the <virtualhost IP:80> entry in httpd.include for the specific domains and I know that directly changing it there is useless as Plesk will overwrite this sooner or later.

Nosing around the conf.d directory, I notice all of the plesk generated files have 80 in them and that this remains so after changing the "Listen" directive in httpd.conf and restarting Apache which seems to suggest that port 80 may be hard coded into the Plesk php files.

I hope this is not the case and that it is possible to change this.

Thanks



Sponsored Links
  #2  
Old
New Member
 
Join Date: Aug 2009
Posts: 3
Just add another Listen directive to /etc/httpd/conf/httpd.conf, or create another config file in /etc/httpd/conf.d/

  #3  
Old
Junior Guru Wannabe
 
Join Date: Jun 2007
Posts: 55
Thanks for replying.

Do you mean add "Listen 81" in addition to what is already in httpd.conf or to create a conf file in the conf.d directive with this in it?

Am I right in understanding that with this, when I run websrvmng and/or restart apache, the necessary directives etc will all be changed.

Thanks again

Sponsored Links
  #4  
Old
Support Facility
 
Join Date: Jun 2009
Posts: 2,317
You can change it through the etc/httpd/conf/httpd.conf. Any how if you change it, plesk will change it back to default port.

__________________
Support Facility | 24/7 web hosting technical support services
Technical support | Server management | Data migration

Technical Articles

  #5  
Old
Your support partner
 
Join Date: Apr 2005
Location: Queen of Arabian Sea
Posts: 2,428
Quote:
Originally Posted by inspiron View Post
You can change it through the etc/httpd/conf/httpd.conf. Any how if you change it, plesk will change it back to default port.
Well... not until you run websrvmng binary or update plesk from the control panel

__________________
Sam
Supportlobby.com - Specialist in Windows Server Management
Spiralbean.com - Custom Software Development

  #6  
Old
Junior Guru Wannabe
 
Join Date: Jun 2007
Posts: 55
Quote:
Originally Posted by inspiron View Post
You can change it through the etc/httpd/conf/httpd.conf. Any how if you change it, plesk will change it back to default port.
Yes I know this. My OP says ....

Quote:
Originally Posted by dayo View Post
...but this does not reflect in the <virtualhost IP:80> entry in httpd.include for the specific domains and I know that directly changing it there is useless as Plesk will overwrite this sooner or later.

  #7  
Old
Junior Guru Wannabe
 
Join Date: Jun 2007
Posts: 55
Got some tips on the atomic rocket turtle forum.

Event triggers calling ....

Code:
#!/bin/bash
MY_FILEPATH="/var/www/vhosts"
MY_FILE="httpd.include"
MY_REPLACE=":new-ip"
find $MY_FILEPATH  -name $MY_FILE -exec perl -p -i -e "s[:80][$MY_REPLACE]g" {} \;
service httpd restart
... is the way to go. This can be amended to deal with other files where changes are needed and I'll expand this start point for flexibility.

  #8  
Old
Web Hosting Evangelist
 
Join Date: Sep 2008
Posts: 544

Reply

Similar Threads
Thread Thread Starter Forum Replies Last Post
change default IP address of Plesk server noahlau Hosting Software and Control Panels 1 12-25-2006 08:17 AM
How do I change the default SSL certificate in Plesk? wa7son Hosting Software and Control Panels 4 03-21-2006 08:36 AM
Help! How to change port default of MySQL And SSL HoangJav@ Hosting Security and Technology 2 01-26-2006 05:15 PM
Default Apache Port Ricky Smith Dedicated Server 0 09-14-2005 07:31 PM
Plesk 5 .. default TTL .. how to change? Goni Hosting Software and Control Panels 1 12-05-2002 04:13 AM

Related posts from TheWhir.com
Title Type Date Posted
IT Monitoring Solution Anturis Adds Parallels Plesk Integration Web Hosting News 2014-02-26 09:58:52
Nginx to be Included in Upcoming Ubuntu Release Web Hosting News 2014-01-08 15:17:12
Researchers Urge System Admins to Check for New Apache Web Server Backdoor Malware Web Hosting News 2013-05-01 11:35:53
Cisco Researcher Discovers Possible Exploit Vector for DarkLeech Attacks Web Hosting News 2013-04-26 10:19:35
Serguei Beloussov Shares his Vision for the Future in Parallels Summit Keynote Web Hosting News 2013-02-06 20:22:52


Tags
apache, plesk, port

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes
Postbit Selector

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off

Forum Jump
Login:
Log in with your username and password
Username:
Password:



Forgot Password?
WHT Host Brief Email:

We respect your privacy. We will never sell, rent, or give away your address to any outside party, ever.

Advertisement:
Web Hosting News:
WHT Membership
WHT Membership



 

X

Welcome to WebHostingTalk.com

Create your username to jump into the discussion!

WebHostingTalk.com is the largest, most influentual web hosting community on the Internet. Join us by filling in the form below.


(4 digit year)

Already a member?